From 829c817466211ee05b05c68db278a8613ceba5b3 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 28 Mar 2013 16:37:12 +0100 Subject: [PATCH] i18n fixes --- webui/config.php | 3 +- webui/controller/accounting/accounting.php | 4 +- webui/language/de/messages.php | 408 ++++++++++++++++++ webui/language/en/messages.php | 7 + webui/language/hu/messages.iso-8859-2.php | 7 + webui/language/hu/messages.php | 7 + webui/language/pt/messages.php | 8 + .../templates/accounting/accounting.tpl | 20 +- 8 files changed, 451 insertions(+), 13 deletions(-) create mode 100644 webui/language/de/messages.php diff --git a/webui/config.php b/webui/config.php index 7aaa5f0b..8f66037c 100644 --- a/webui/config.php +++ b/webui/config.php @@ -139,7 +139,8 @@ $config['DATA_PARTITION'] = '/var'; $langs = array( 'hu', 'en', - 'pt' + 'pt', + 'de' ); diff --git a/webui/controller/accounting/accounting.php b/webui/controller/accounting/accounting.php index 11914756..683ab0c6 100644 --- a/webui/controller/accounting/accounting.php +++ b/webui/controller/accounting/accounting.php @@ -57,14 +57,14 @@ class ControllerAccountingAccounting extends Controller { // get type of accounting view if(@$this->request->get['view'] == "email") { $this->data['view'] = 'email'; - $this->data['viewname'] = "Emails"; + $this->data['viewname'] = $this->data['text_email']; $this->data['accounting'] = $counters->get_accounting('email',$this->data['search'], $this->data['page'], $this->data['page_len'], $this->data['sort'], $this->data['order']); $this->data['total_records'] = $counters->count_accounting('email',$this->data['search']); } if(@$this->request->get['view'] == "domain") { $this->data['view'] = 'domain'; - $this->data['viewname'] = "Domains"; + $this->data['viewname'] = $this->data['text_domain']; $this->data['accounting'] = $counters->get_accounting('domain',$this->data['search'], $this->data['page'], $this->data['page_len'], $this->data['sort'], $this->data['order']); $this->data['total_records'] = $counters->count_accounting('domain',$this->data['search']); } diff --git a/webui/language/de/messages.php b/webui/language/de/messages.php new file mode 100644 index 00000000..676a17bd --- /dev/null +++ b/webui/language/de/messages.php @@ -0,0 +1,408 @@ + diff --git a/webui/language/en/messages.php b/webui/language/en/messages.php index e277f290..b475f1c1 100644 --- a/webui/language/en/messages.php +++ b/webui/language/en/messages.php @@ -398,4 +398,11 @@ $_['text_working'] = 'Working...'; $_['text_use_browser_settings'] = 'Use browser settings'; +$_['text_sent'] = 'Sent'; +$_['text_received'] = 'Received'; +$_['text_oldest_record'] = 'Oldest record'; +$_['text_newest_record'] = 'Newest Record'; +$_['text_items'] = 'Items'; +$_['text_average_size'] = 'Avg size'; + ?> diff --git a/webui/language/hu/messages.iso-8859-2.php b/webui/language/hu/messages.iso-8859-2.php index 854fb7bb..d683ba72 100644 --- a/webui/language/hu/messages.iso-8859-2.php +++ b/webui/language/hu/messages.iso-8859-2.php @@ -399,4 +399,11 @@ $_['text_working'] = 'Keres $_['text_use_browser_settings'] = 'Bngsz belltsainak hasznlata'; +$_['text_sent'] = 'Kldtt'; +$_['text_received'] = 'Fogadott'; +$_['text_oldest_record'] = 'Legrgebbi rekord'; +$_['text_newest_record'] = 'Legjabb rekord'; +$_['text_items'] = 'Ttelek'; +$_['text_average_size'] = 'tlag mret'; + ?> diff --git a/webui/language/hu/messages.php b/webui/language/hu/messages.php index 7ca2b354..d077bc1c 100644 --- a/webui/language/hu/messages.php +++ b/webui/language/hu/messages.php @@ -399,4 +399,11 @@ $_['text_working'] = 'Keresés...'; $_['text_use_browser_settings'] = 'Böngésző beállításainak használata'; +$_['text_sent'] = 'Küldött'; +$_['text_received'] = 'Fogadott'; +$_['text_oldest_record'] = 'Legrégebbi rekord'; +$_['text_newest_record'] = 'Legújabb rekord'; +$_['text_items'] = 'Tételek'; +$_['text_average_size'] = 'Átlag méret'; + ?> diff --git a/webui/language/pt/messages.php b/webui/language/pt/messages.php index 99442260..007c4137 100644 --- a/webui/language/pt/messages.php +++ b/webui/language/pt/messages.php @@ -398,4 +398,12 @@ $_['text_working'] = 'Working...'; $_['text_use_browser_settings'] = 'Use browser settings'; +$_['text_sent'] = 'Sent'; +$_['text_received'] = 'Received'; +$_['text_oldest_record'] = 'Oldest record'; +$_['text_newest_record'] = 'Newest Record'; +$_['text_items'] = 'Items'; +$_['text_average_size'] = 'Avg size'; + + ?> diff --git a/webui/view/theme/default/templates/accounting/accounting.tpl b/webui/view/theme/default/templates/accounting/accounting.tpl index 91e17b9c..4c5f5826 100644 --- a/webui/view/theme/default/templates/accounting/accounting.tpl +++ b/webui/view/theme/default/templates/accounting/accounting.tpl @@ -22,23 +22,23 @@
 
 
 
-
Sent
+
 
 
-
Received
+
 
 
-
Oldest Record
-
Newest Record
-
Items
-
Size
-
Avg Size
-
Items
-
Size
-
Avg Size
+
+
+
+
+
+
+
+