Skip to content

Commit 9539ceb

Browse files
author
filip
committed
Add translations of values in select boxes (first, in customer modules)
Updated english languages files Updated czech languages files
1 parent 1b9dcca commit 9539ceb

19 files changed

+73
-21
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ function getHTML($record, $tab, $action = 'NEW') {
379379
if(is_array($field['value'])) {
380380
foreach($field['value'] as $k => $v) {
381381
$selected = ($k == $val)?' SELECTED':'';
382+
if(!empty($this->wordbook[$v]))
383+
$v = $this->wordbook[$v];
382384
$out .= "<option value='$k'$selected>$v</option>\r\n";
383385
}
384386
}
@@ -492,6 +494,8 @@ function getHTML($record, $tab, $action = 'NEW') {
492494
$out = '';
493495
foreach($field['value'] as $k => $v) {
494496
$selected = ($k == $field["default"])?' SELECTED':'';
497+
if(!empty($this->wordbook[$v]))
498+
$v = $this->wordbook[$v];
495499
$out .= "<option value='$k'$selected>$v</option>\r\n";
496500
}
497501
}

interface/web/mail/form/mail_user_filter.tform.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@
8181
'datatype' => 'VARCHAR',
8282
'formtype' => 'SELECT',
8383
'default' => '',
84-
'value' => array('Subject' => 'Subject','From'=>'From','To'=>'To')
84+
'value' => array('Subject' => 'subject_txt','From'=>'from_txt','To'=>'to_txt')
8585
),
8686
'op' => array (
8787
'datatype' => 'VARCHAR',
8888
'formtype' => 'SELECT',
8989
'default' => '',
90-
'value' => array('contains'=>'Contains','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with')
90+
#'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with')
91+
'value' => array('contains'=>'contains_txt','is' => 'is_txt','begins'=>'begins_with_txt','ends'=>'ends_with_txt')
9192
),
9293
'searchterm' => array (
9394
'datatype' => 'VARCHAR',
@@ -104,7 +105,7 @@
104105
'datatype' => 'VARCHAR',
105106
'formtype' => 'SELECT',
106107
'default' => '',
107-
'value' => array('move' => 'Move to','delete'=>'Delete')
108+
'value' => array('move' => 'move_to_txt','delete'=>'delete_txt')
108109
),
109110
'target' => array (
110111
'datatype' => 'VARCHAR',

interface/web/mail/lib/lang/cz_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ $wb['autoresponder_active'] = 'Povolit automatický odpovídač';
4040
$wb['cc_txt'] = 'Přeposílat na';
4141
$wb['cc_error_isemail'] = 'Adresa uvedená v poli "Přeposílat na" je neplatná';
4242
$wb['domain_txt'] = 'Doména';
43+
$wb['now_txt']='Nyní';
4344
?>

interface/web/mail/lib/lang/cz_mail_user_filter.lng

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ $wb['action_txt'] = 'Akce';
44
$wb['target_txt'] = 'Složka';
55
$wb['active_txt'] = 'Aktivní';
66
$wb['rulename_error_empty'] = 'Název je prázdný.';
7-
$wb['searchterm_is_empty'] = 'Vyhledávací žádek je prázdný.';
7+
$wb['searchterm_is_empty'] = 'Vyhledávací řádek je prázdný.';
88
$wb['source_txt'] = 'Zdroj';
99
$wb['target_error_regex'] = 'Cíl může obsahovat jen tyto znaky: a-z, 0-9, -, ., _, a {mezeru}';
10+
$wb['subject_txt'] = 'Předmět';
11+
$wb['from_txt'] = 'Odesílatel';
12+
$wb['to_txt'] = 'Adresát';
13+
$wb['contains_txt'] = 'Obsahuje';
14+
$wb['is_txt'] = 'Je';
15+
$wb['begins_with_txt'] = 'Začíná na';
16+
$wb['ends_with_txt'] = 'Končí na';
17+
$wb['move_to_txt'] = 'Přesunout do';
18+
$wb['delete_txt'] = 'Smazat';
1019
?>

interface/web/mail/lib/lang/cz_mail_whitelist.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ $wb['active_txt'] = 'Aktivní';
66
$wb['source_error_notempty'] = 'Adresa je prázdná.';
77
$wb['type_txt'] = 'Typ';
88
$wb['limit_mailfilter_txt'] = 'Dosažen maximální počet email filtrů pro Váš účet.';
9+
$wb['sender_txt'] = 'Odesílatel';
10+
$wb['client_txt'] = 'Klient';
911
?>

interface/web/mail/lib/lang/en_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ $wb['autoresponder_active'] = 'Enable the autoresponder';
4040
$wb['cc_txt'] = 'Send copy to';
4141
$wb['cc_error_isemail'] = 'The "Send copy to" field does not conatin a valid email address';
4242
$wb['domain_txt'] = 'Domain';
43+
$wb['now_txt']='Now';
4344
?>

interface/web/mail/lib/lang/en_mail_user_filter.lng

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,13 @@ $wb["rulename_error_empty"] = 'Name is empty.';
77
$wb["searchterm_is_empty"] = 'Search term is empty.';
88
$wb["source_txt"] = 'Source';
99
$wb["target_error_regex"] = 'The target may only contain these characters: a-z, 0-9, -, ., _, and {space}';
10+
$wb['subject_txt'] = 'Subject';
11+
$wb['from_txt'] = 'From';
12+
$wb['to_txt'] = 'To';
13+
$wb['contains_txt'] = 'Contains';
14+
$wb['is_txt'] = 'Is';
15+
$wb['begins_with_txt'] = 'Begins with';
16+
$wb['ends_with_txt'] = 'Ends with';
17+
$wb['move_to_txt'] = 'Move to';
18+
$wb['delete_txt'] = 'Delete';
1019
?>

interface/web/mail/list/mail_whitelist.list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
'prefix' => "",
8989
'suffix' => "",
9090
'width' => "",
91-
'value' => array('recipient' => 'Recipient', 'sender' => 'Sender', 'client' => 'Client'));
91+
'value' => array('recipient' => 'recipient_txt', 'sender' => 'sender_txt', 'client' => 'client_txt'));
9292

9393

94-
?>
94+
?>

interface/web/mail/templates/mail_user_autoresponder_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
1818

1919
<p style="margin-bottom: 3px;">
2020
<label for="autoresponder_start_date[day]" style="width: 55px;">{tmpl_var name='autoresponder_start_date_txt'}</label>
21-
{tmpl_var name='autoresponder_start_date'}&nbsp;<a href="javascript:AR_SetNow();">now</a></p>
21+
{tmpl_var name='autoresponder_start_date'}&nbsp;<a href="javascript:AR_SetNow();">{tmpl_var name='now_txt'}</a></p>
2222

2323
<label for="password" style="width: 55px;">{tmpl_var name='autoresponder_end_date_txt'}</label>
2424
{tmpl_var name='autoresponder_end_date'}
@@ -34,4 +34,4 @@ <h2><tmpl_var name="list_head_txt"></h2>
3434
</div>
3535
</div>
3636

37-
</div>
37+
</div>

interface/web/sites/form/web_aliasdomain.tform.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
'datatype' => 'VARCHAR',
107107
'formtype' => 'SELECT',
108108
'default' => 'y',
109-
'value' => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L')
109+
'value' => array('' => 'no_redirect_txt', 'no' => 'no_flag_txt', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L')
110110
),
111111
'redirect_path' => array (
112112
'datatype' => 'VARCHAR',
@@ -124,7 +124,7 @@
124124
'datatype' => 'VARCHAR',
125125
'formtype' => 'SELECT',
126126
'default' => 'y',
127-
'value' => array('none' => 'none', 'www' => 'www.', '*' => '*.')
127+
'value' => array('none' => 'none_txt', 'www' => 'www.', '*' => '*.')
128128
),
129129
'active' => array (
130130
'datatype' => 'VARCHAR',
@@ -139,4 +139,4 @@
139139
);
140140

141141

142-
?>
142+
?>

0 commit comments

Comments
 (0)