diff options
author | Frank Bergkemper <frank.bergkemper@bareos.com> | 2016-11-28 15:14:06 +0300 |
---|---|---|
committer | Frank Bergkemper <frank.bergkemper@bareos.com> | 2016-12-01 20:09:16 +0300 |
commit | 80b682bcc183ab97b4bdd785ec958c159c4b36f7 (patch) | |
tree | b892197bfe7cbfc33f3e57e2cb6cd695f453725d | |
parent | 4b45202d23a3f194fd4040f29538f2861722e9c2 (diff) |
Italian language integration
-rw-r--r-- | module/Application/language/Makefile.am | 4 | ||||
-rw-r--r-- | module/Application/language/it_IT.mo | bin | 0 -> 10959 bytes | |||
-rw-r--r-- | module/Auth/src/Auth/Form/LoginForm.php | 19 | ||||
-rw-r--r-- | public/js/dataTables/language/Italian.json | 23 | ||||
-rw-r--r-- | public/js/datatables.functions.js | 8 | ||||
-rw-r--r-- | public/js/locale/Makefile.am | 4 | ||||
-rw-r--r-- | public/js/locale/it_IT/LC_MESSAGES/it_IT.mo | bin | 0 -> 2809 bytes |
7 files changed, 48 insertions, 10 deletions
diff --git a/module/Application/language/Makefile.am b/module/Application/language/Makefile.am index f6dfcfc..d990fdd 100644 --- a/module/Application/language/Makefile.am +++ b/module/Application/language/Makefile.am @@ -10,8 +10,8 @@ update-po: $(PO) update-all: webui.pot @(echo 'Updating all *.po files ...';) - @(for i in de_DE en_EN fr_FR ru_RU; do msgmerge --backup=none -U $$i.po $< && touch $$i.po; done;) + @(for i in de_DE en_EN fr_FR it_IT ru_RU; do msgmerge --backup=none -U $$i.po $< && touch $$i.po; done;) msgfmt-all: webui.pot @(echo 'Generating all *.mo files ...';) - @(for i in de_DE en_EN fr_FR ru_RU; do msgfmt $$i.po --output-file=$$i.mo; done;) + @(for i in de_DE en_EN fr_FR it_IT ru_RU; do msgfmt $$i.po --output-file=$$i.mo; done;) diff --git a/module/Application/language/it_IT.mo b/module/Application/language/it_IT.mo Binary files differnew file mode 100644 index 0000000..67ff80e --- /dev/null +++ b/module/Application/language/it_IT.mo diff --git a/module/Auth/src/Auth/Form/LoginForm.php b/module/Auth/src/Auth/Form/LoginForm.php index bf41c31..c5886dc 100644 --- a/module/Auth/src/Auth/Form/LoginForm.php +++ b/module/Auth/src/Auth/Form/LoginForm.php @@ -212,12 +212,6 @@ class LoginForm extends Form } switch($language) { - case 'de_DE': - $l['de_DE'] = 'German'; - break; - case 'de': - $l['de_DE'] = 'German'; - break; case 'en_EN': $l['en_EN'] = 'English'; break; @@ -236,6 +230,18 @@ class LoginForm extends Form case 'fr_FR': $l['fr_FR'] = 'French'; break; + case 'de_DE': + $l['de_DE'] = 'German'; + break; + case 'de': + $l['de_DE'] = 'German'; + break; + case 'it': + $l['it_IT'] = 'Italian'; + break; + case 'it_IT': + $l['it_IT'] = 'Italian'; + break; case 'ru_RU': $l['ru_RU'] = 'Russian'; break; @@ -256,6 +262,7 @@ class LoginForm extends Form $locales['en_EN'] = "English"; $locales['fr_FR'] = "French"; $locales['de_DE'] = "German"; + $locales['it_IT'] = "Italian"; $locales['ru_RU'] = "Russian"; return $locales; diff --git a/public/js/dataTables/language/Italian.json b/public/js/dataTables/language/Italian.json new file mode 100644 index 0000000..23cd07c --- /dev/null +++ b/public/js/dataTables/language/Italian.json @@ -0,0 +1,23 @@ +{ + "sEmptyTable": "Nessun dato presente nella tabella", + "sInfo": "Vista da _START_ a _END_ di _TOTAL_ elementi", + "sInfoEmpty": "Vista da 0 a 0 di 0 elementi", + "sInfoFiltered": "(filtrati da _MAX_ elementi totali)", + "sInfoPostFix": "", + "sInfoThousands": ".", + "sLengthMenu": "Visualizza _MENU_ elementi", + "sLoadingRecords": "Caricamento...", + "sProcessing": "Elaborazione...", + "sSearch": "Cerca:", + "sZeroRecords": "La ricerca non ha portato alcun risultato.", + "oPaginate": { + "sFirst": "Inizio", + "sPrevious": "Precedente", + "sNext": "Successivo", + "sLast": "Fine" + }, + "oAria": { + "sSortAscending": ": attiva per ordinare la colonna in ordine crescente", + "sSortDescending": ": attiva per ordinare la colonna in ordine decrescente" + } +} diff --git a/public/js/datatables.functions.js b/public/js/datatables.functions.js index 000b212..965bf03 100644 --- a/public/js/datatables.functions.js +++ b/public/js/datatables.functions.js @@ -39,6 +39,10 @@ function setDtLocale(val) { case 'de_DE': dt_locale = 'de_DE'; break; + case 'it': + case 'it_IT': + dt_locale = 'it_IT'; + break; case 'ru': case 'ru_RU': dt_locale = 'ru_RU'; @@ -379,6 +383,10 @@ function getLocale(locale) { case 'de_DE': lang = 'German.json'; break; + case 'it': + case 'it_IT': + lang = 'Italian.json'; + break; case 'ru': case 'ru_RU': lang = 'Russian.json'; diff --git a/public/js/locale/Makefile.am b/public/js/locale/Makefile.am index ea6dab8..0f366a8 100644 --- a/public/js/locale/Makefile.am +++ b/public/js/locale/Makefile.am @@ -10,8 +10,8 @@ update-po: $(PO) update-all: webui-datatables.pot @(echo 'Updating all *.po files ...';) - @(for i in de_DE en_EN fr_FR ru_RU; do msgmerge --backup=none -U $$i/LC_MESSAGES/$$i.po $< && touch $$i/LC_MESSAGES/$$i.po; done;) + @(for i in de_DE en_EN fr_FR it_IT ru_RU; do msgmerge --backup=none -U $$i/LC_MESSAGES/$$i.po $< && touch $$i/LC_MESSAGES/$$i.po; done;) msgfmt-all: webui-datatables.pot @(echo 'Generating all *.mo files ...';) - @(for i in de_DE en_EN fr_FR ru_RU; do msgfmt $$i/LC_MESSAGES/$$i.po --output-file=$$i/LC_MESSAGES/$$i.mo; done;) + @(for i in de_DE en_EN fr_FR it_IT ru_RU; do msgfmt $$i/LC_MESSAGES/$$i.po --output-file=$$i/LC_MESSAGES/$$i.mo; done;) diff --git a/public/js/locale/it_IT/LC_MESSAGES/it_IT.mo b/public/js/locale/it_IT/LC_MESSAGES/it_IT.mo Binary files differnew file mode 100644 index 0000000..1d488d7 --- /dev/null +++ b/public/js/locale/it_IT/LC_MESSAGES/it_IT.mo |