Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Localization: Hungarian integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Mar 9, 2018
1 parent b22b6dc commit 990a2ef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions module/Application/language/Makefile.am
Expand Up @@ -10,8 +10,8 @@ update-po: $(PO)

update-all: webui.pot
@(echo 'Updating all *.po files ...';)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR it_IT nl_BE ru_RU sk_SK tr_TR; do msgmerge --backup=none -U $$i.po $< && touch $$i.po; done;)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR hu_HU it_IT nl_BE ru_RU sk_SK tr_TR; do msgmerge --backup=none -U $$i.po $< && touch $$i.po; done;)

msgfmt-all: webui.pot
@(echo 'Generating all *.mo files ...';)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR it_IT nl_BE ru_RU sk_SK tr_TR; do msgfmt $$i.po --output-file=$$i.mo; done;)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR hu_HU it_IT nl_BE ru_RU sk_SK tr_TR; do msgfmt $$i.po --output-file=$$i.mo; done;)
Binary file added module/Application/language/hu_HU.mo
Binary file not shown.
7 changes: 7 additions & 0 deletions module/Auth/src/Auth/Form/LoginForm.php
Expand Up @@ -248,6 +248,12 @@ private function determineLanguage($default = "en_EN") {
case 'de':
$l['de_DE'] = 'German';
break;
case 'hu':
$l['hu_HU'] = 'Hungarian';
break;
case 'hu_HU':
$l['hu_HU'] = 'Hungarian';
break;
case 'it':
$l['it_IT'] = 'Italian';
break;
Expand Down Expand Up @@ -298,6 +304,7 @@ private function getAvailableLocales()
$locales['en_EN'] = "English";
$locales['fr_FR'] = "French";
$locales['de_DE'] = "German";
$locales['hu_HU'] = "Hungarian";
$locales['it_IT'] = "Italian";
$locales['ru_RU'] = "Russian";
$locales['sk_SK'] = "Slovak";
Expand Down
4 changes: 2 additions & 2 deletions public/js/locale/Makefile.am
Expand Up @@ -10,8 +10,8 @@ update-po: $(PO)

update-all: webui-datatables.pot
@(echo 'Updating all *.po files ...';)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR it_IT nl_BE ru_RU tr_TR sk_SK; do msgmerge --backup=none -U $$i/LC_MESSAGES/$$i.po $< && touch $$i/LC_MESSAGES/$$i.po; done;)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR hu_HU it_IT nl_BE ru_RU tr_TR sk_SK; 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 cn_CN cs_CZ de_DE en_EN es_ES fr_FR it_IT nl_BE ru_RU tr_TR sk_SK; do msgfmt $$i/LC_MESSAGES/$$i.po --output-file=$$i/LC_MESSAGES/$$i.mo; done;)
@(for i in cn_CN cs_CZ de_DE en_EN es_ES fr_FR hu_HU it_IT nl_BE ru_RU tr_TR sk_SK; do msgfmt $$i/LC_MESSAGES/$$i.po --output-file=$$i/LC_MESSAGES/$$i.mo; done;)
Binary file added public/js/locale/hu_HU/LC_MESSAGES/hu_HU.mo
Binary file not shown.

0 comments on commit 990a2ef

Please sign in to comment.