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

Commit

Permalink
Localization: Czech integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Jul 10, 2017
1 parent 9ccad0b commit 974b217
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 19 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 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 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 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 it_IT nl_BE ru_RU sk_SK tr_TR; do msgfmt $$i.po --output-file=$$i.mo; done;)
26 changes: 19 additions & 7 deletions module/Application/language/Makefile.in
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.13.4 from Makefile.am.
# Makefile.in generated by automake 1.15 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# Copyright (C) 1994-2014 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
Expand All @@ -14,7 +14,17 @@

@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
Expand Down Expand Up @@ -76,11 +86,11 @@ NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = module/Application/language
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
Expand All @@ -104,6 +114,7 @@ am__can_run_installinfo = \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
Expand Down Expand Up @@ -196,7 +207,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign module/Application/language/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign module/Application/language/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
Expand Down Expand Up @@ -364,6 +374,8 @@ uninstall-am:
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am tags-am uninstall uninstall-am

.PRECIOUS: Makefile

all: update-pot update-all msgfmt-all

update-pot:
Expand All @@ -376,11 +388,11 @@ update-po: $(PO)

update-all: webui.pot
@(echo 'Updating all *.po files ...';)
@(for i in cn_CN 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 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 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 it_IT nl_BE ru_RU sk_SK tr_TR; do msgfmt $$i.po --output-file=$$i.mo; done;)

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
Expand Down
Binary file added module/Application/language/cs_CZ.mo
Binary file not shown.
7 changes: 7 additions & 0 deletions module/Auth/src/Auth/Form/LoginForm.php
Expand Up @@ -218,6 +218,12 @@ private function determineLanguage($default = "en_EN") {
case 'cn_CN':
$l['cn_CN'] = 'Chinese';
break;
case 'cs':
$l['cs_CZ'] = 'Czech';
break;
case 'cs_CZ':
$l['cs_CZ'] = 'Czech';
break;
case 'en_EN':
$l['en_EN'] = 'English';
break;
Expand Down Expand Up @@ -287,6 +293,7 @@ private function getAvailableLocales()
$locales = array();

$locales['cn_CN'] = "Chinese";
$locales['cs_CZ'] = "Czech";
$locales['nl_BE'] = "Dutch/Belgium";
$locales['en_EN'] = "English";
$locales['fr_FR'] = "French";
Expand Down
10 changes: 9 additions & 1 deletion public/js/datatables.functions.js
Expand Up @@ -30,6 +30,10 @@ function setDtLocale(val) {
case 'cn_CN':
dt_locale = 'cn_CN';
break;
case 'cs':
case 'cs_CZ':
dt_locale = 'cs_CZ';
break;
case 'en':
case 'en_EN':
dt_locale = 'en_EN';
Expand Down Expand Up @@ -65,7 +69,7 @@ function setDtLocale(val) {
case 'sk':
case 'sk_SK':
dt_locale = 'sk_SK';
break;
break;
default:
dt_locale = 'en_EN';
}
Expand Down Expand Up @@ -419,6 +423,10 @@ function getLocale(locale) {
case 'cn_CN':
lang = 'Chinese.json';
break;
case 'cs':
case 'cs_CZ':
lang = 'Czech.json';
break;
case 'en':
case 'en_EN':
lang = 'English.json';
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 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 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 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 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;)
26 changes: 19 additions & 7 deletions public/js/locale/Makefile.in
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.13.4 from Makefile.am.
# Makefile.in generated by automake 1.15 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# Copyright (C) 1994-2014 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
Expand All @@ -14,7 +14,17 @@

@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
Expand Down Expand Up @@ -76,11 +86,11 @@ NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = public/js/locale
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
Expand All @@ -104,6 +114,7 @@ am__can_run_installinfo = \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
Expand Down Expand Up @@ -196,7 +207,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign public/js/locale/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign public/js/locale/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
Expand Down Expand Up @@ -364,6 +374,8 @@ uninstall-am:
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am tags-am uninstall uninstall-am

.PRECIOUS: Makefile

all: update-pot update-all msgfmt-all

update-pot:
Expand All @@ -376,11 +388,11 @@ update-po: $(PO)

update-all: webui-datatables.pot
@(echo 'Updating all *.po files ...';)
@(for i in cn_CN 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 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 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 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;)

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
Expand Down
Binary file added public/js/locale/cs_CZ/LC_MESSAGES/cs_CZ.mo
Binary file not shown.

0 comments on commit 974b217

Please sign in to comment.