From 3b47350624ad38704ad23a2750ea9d99b01e9e0d Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 22 Jul 2016 14:53:06 +0000 Subject: [PATCH] Some refactoring in translation files. --- WEB-INF/resources/de.lang.php | 6 ++++-- WEB-INF/resources/en.lang.php | 3 ++- WEB-INF/resources/es.lang.php | 5 +++-- WEB-INF/resources/fa.lang.php | 4 +++- WEB-INF/resources/fi.lang.php | 4 +++- WEB-INF/resources/fr.lang.php | 4 +++- WEB-INF/resources/he.lang.php | 4 +++- WEB-INF/resources/nl.lang.php | 4 +++- WEB-INF/resources/pl.lang.php | 4 +++- WEB-INF/resources/pt-br.lang.php | 4 +++- WEB-INF/resources/ru.lang.php | 15 +++++++++------ WEB-INF/resources/sk.lang.php | 4 +++- WEB-INF/resources/sr.lang.php | 4 +++- WEB-INF/templates/profile_edit.tpl | 2 +- cf_monthly_quota.php | 2 +- 15 files changed, 47 insertions(+), 22 deletions(-) diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index 00123766..39b42eea 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -187,10 +187,12 @@ $i18n_key_words = array( 'label.role_manager' => '(Manager)', 'label.role_comanager' => '(Co-Manager)', 'label.role_admin' => '(Administrator)', -// Translate the following string. +// Translate the following. // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Benutzerfelder', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Typ', 'label.type_dropdown' => 'Ausklappen', 'label.type_text' => 'Text', @@ -245,7 +247,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Daten exportieren', 'title.import' => 'Daten importieren', 'title.options' => 'Optionen', diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index 054a622a..d3b5375d 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -187,6 +187,7 @@ $i18n_key_words = array( 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Custom fields', +'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Type', 'label.type_dropdown' => 'dropdown', 'label.type_text' => 'text', @@ -239,7 +240,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Adding Notification', 'title.edit_notification' => 'Editing Notification', 'title.delete_notification' => 'Deleting Notification', -'title.monthly_quota' => 'Monthly quota', +'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exporting Team Data', 'title.import' => 'Importing Team Data', 'title.options' => 'Options', diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index 1fde7e7d..46427758 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -219,8 +219,9 @@ $i18n_key_words = array( // Translate the following string. // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). -// TODO: translate the following strings. +// TODO: translate the following. // 'label.custom_fields' => 'Custom fields', +// 'label.monthly_quotas' => 'Monthly quotas', // 'label.type' => 'Type', // 'label.type_dropdown' => 'dropdown', // 'label.type_text' => 'text', @@ -286,7 +287,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportar datos', 'title.import' => 'Importar datos', 'title.options' => 'Opciones', diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index 25e41165..ff52ae62 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -199,6 +199,8 @@ $i18n_key_words = array( // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'فیلدهای سفارشی', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'نوع', 'label.type_dropdown' => 'منو کشویی', 'label.type_text' => 'متن', @@ -258,7 +260,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'پشتیانی گرفتن از اطلاعات تیم', 'title.import' => 'وارد کردن اطلاعات تیم', 'title.options' => 'گزینه ها', diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 175e4947..98fb02d7 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -186,6 +186,8 @@ $i18n_key_words = array( 'label.page' => 'Sivu', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Omat kentät', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Tyyppi', 'label.type_dropdown' => 'pudotusvalikko', 'label.type_text' => 'teksti', @@ -242,7 +244,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Ilmoituksen lisäys', 'title.edit_notification' => 'Ilmoituksen muokkaus', 'title.delete_notification' => 'Ilmoituksen poisto', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Tiimitietojen vienti', 'title.import' => 'Tiimitietojen tunti', 'title.options' => 'Optiot', diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index e7932a41..4381ac62 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -204,6 +204,8 @@ $i18n_key_words = array( // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Champs personalisés', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Type', 'label.type_dropdown' => 'liste déroulante', 'label.type_text' => 'texte', @@ -266,7 +268,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exporter les données', // TODO: use a noun. 'title.import' => 'Importer les données', // TODO: use a noun. 'title.options' => 'Options', diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 35aa6d33..f3325c3d 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -204,6 +204,8 @@ $i18n_key_words = array( // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'שדות אישיים', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'סוג', 'label.type_dropdown' => 'רשימה', 'label.type_text' => 'טקסט', @@ -264,7 +266,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'ייצוא נתוני צוות', 'title.import' => 'ייבוא נתוני צוות', 'title.options' => 'אפשרויות', diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index 3bd10db8..683b4499 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -187,6 +187,8 @@ $i18n_key_words = array( 'label.page' => 'Pagina', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Eigen velden', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Type', 'label.type_dropdown' => 'uitklapbaar', 'label.type_text' => 'tekst', @@ -243,7 +245,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Notificatie toevoegen', 'title.edit_notification' => 'Notificatie bewerken', 'title.delete_notification' => 'Notificatie verwijderen', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exporteer teamgegevens', 'title.import' => 'Importeer teamgegevens', 'title.options' => 'Opties', diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index a7b2d843..3627205d 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -192,6 +192,8 @@ $i18n_key_words = array( // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Niestandardowe pola', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Rodzaj', 'label.type_dropdown' => 'lista rozwijana', 'label.type_text' => 'tekst', @@ -248,7 +250,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Dodawanie powiadomienia', 'title.edit_notification' => 'Edytowanie powiadomienia', 'title.delete_notification' => 'Usuwanie powiadomienia', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Eksport danych zespołu', 'title.import' => 'Import danych zespołu', 'title.options' => 'Opcje', diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index 8f7e01ae..8f84e025 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -186,6 +186,8 @@ $i18n_key_words = array( 'label.page' => 'Página', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Campos personalizados', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Tipo', 'label.type_dropdown' => 'lista suspensa', 'label.type_text' => 'texto', @@ -242,7 +244,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Adicionando notificação', 'title.edit_notification' => 'Editando notificação', 'title.delete_notification' => 'Apagando notificação', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportando dados de equipe', 'title.import' => 'Importando dados de equipe', 'title.options' => 'Opções', diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index ff53b43e..d0686229 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -187,6 +187,7 @@ $i18n_key_words = array( 'label.page' => 'Стр', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Дополнительные поля', +'label.monthly_quotas' => 'Месячные квоты', 'label.type' => 'Тип', 'label.type_dropdown' => 'комбо', 'label.type_text' => 'текст', @@ -194,11 +195,6 @@ $i18n_key_words = array( 'label.fav_report' => 'Стандартный отчёт', 'label.cron_schedule' => 'Расписание cron', 'label.what_is_it' => 'Что это?', -'label.year' => 'Год', -'label.month' => 'Месяц', -'label.quota' => 'Квота', -'label.workdayHours' => 'Количество часов в рабочем дне', -'label.quota_config_hint' => 'При пустых значениях квоты автоматически определяются из длительности рабочего дня и праздников.', // Form titles. 'title.login' => 'Вход в систему', @@ -244,7 +240,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Добавление уведомления', 'title.edit_notification' => 'Редактирование уведомления', 'title.delete_notification' => 'Удаление уведомления', -// 'title.monthly_quota' => 'Monthly quota', +'title.monthly_quotas' => 'Месячные квоты', 'title.export' => 'Экспортирование данных команды', 'title.import' => 'Импортирование данных команды', 'title.options' => 'Опции', @@ -403,4 +399,11 @@ $i18n_key_words = array( 'form.mail.footer' => 'Anuko Time Tracker - это открытая (open source), простая и лёгкая в использовании система трекинга рабочего времени. Подробности на сайте www.anuko.com.', 'form.mail.report_sent' => 'Отчёт отправлен.', 'form.mail.invoice_sent' => 'Счёт отправлен.', + +// Quota configuration form. +'form.quota.year' => 'Год', +'form.quota.month' => 'Месяц', +'form.quota.quota' => 'Квота', +'form.quota.workdayHours' => 'Количество часов в рабочем дне', +'form.quota.hint' => 'При пустых значениях квоты автоматически определяются из длительности рабочего дня и праздников.', ); diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index 3d731bd0..520f1bf0 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -201,6 +201,8 @@ $i18n_key_words = array( // 'label.page' => 'Page', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Vlastné polia', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Typ', 'label.type_dropdown' => 'rozbaľovacie pole', 'label.type_text' => 'text', @@ -261,7 +263,7 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportovanie údajov o tíme', 'title.import' => 'Importovanie údajov o tíme', 'title.options' => 'Nastavenia', diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index 02828376..29427729 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -188,6 +188,8 @@ $i18n_key_words = array( 'label.page' => 'Strana', // Labels for plugins (extensions to Time Tracker that provide additional features). 'label.custom_fields' => 'Dodatna polja', +// Translate the following. +// 'label.monthly_quotas' => 'Monthly quotas', 'label.type' => 'Tipovi', 'label.type_dropdown' => 'odaberi', 'label.type_text' => 'text', @@ -244,7 +246,7 @@ $i18n_key_words = array( 'title.add_notification' => 'Dodavanje napomene', 'title.edit_notification' => 'Izmena napomene', 'title.delete_notification' => 'Brisanje napomene', -// 'title.monthly_quota' => 'Monthly quota', +// 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Izvoz podataka tim-a', 'title.import' => 'Uvoz podataka tim-a', 'title.options' => 'Opcije', diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 2da8041d..8c8e27ae 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -194,7 +194,7 @@ function handlePluginCheckboxes() { {$forms.profileForm.monthly_quota.control} - {$i18n.label.configure} + {$i18n.label.configure} {/if} diff --git a/cf_monthly_quota.php b/cf_monthly_quota.php index 6b94cfda..0518c57e 100644 --- a/cf_monthly_quota.php +++ b/cf_monthly_quota.php @@ -83,6 +83,6 @@ for ($i=0; $i < count($months); $i++) { $form->addInput(array('type'=>'text', 'name'=>'dailyWorkingHours', 'value'=>$quota->getDailyWorkingHours(), 'style'=>'width:50px')); $smarty->assign('months', $months); $smarty->assign('forms', array($form->getName()=>$form->toArray())); -$smarty->assign('title', $i18n->getKey('title.monthly_quota')); +$smarty->assign('title', $i18n->getKey('title.monthly_quotas')); $smarty->assign('content_page_name', 'cf_monthly_quota.tpl'); $smarty->display('index.tpl'); -- 2.20.1