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

Commit

Permalink
Localization: updates
Browse files Browse the repository at this point in the history
- webui.pot and *.po translation updates
- *.po & *.mo update automation adjustments
  • Loading branch information
fbergkemper committed Jun 23, 2016
1 parent 3469a21 commit 227b060
Show file tree
Hide file tree
Showing 48 changed files with 4,433 additions and 2,384 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -2,3 +2,6 @@ composer.lock
config.ini
*.swp
*.cache
Makefile
config.log
config.status
2 changes: 1 addition & 1 deletion Makefile.am
@@ -1,4 +1,4 @@
SUBDIRS = module/Application/language
SUBDIRS = module/Application/language public/js/locale

install: install-am
mkdir -p $(DESTDIR)$(pkgdatadir)
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -262,7 +262,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = module/Application/language
SUBDIRS = module/Application/language public/js/locale
all: all-recursive

.SUFFIXES:
Expand Down
3 changes: 2 additions & 1 deletion configure
Expand Up @@ -2353,7 +2353,7 @@ fi



ac_config_files="$ac_config_files Makefile module/Application/language/Makefile"
ac_config_files="$ac_config_files Makefile module/Application/language/Makefile public/js/locale/Makefile"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
Expand Down Expand Up @@ -3074,6 +3074,7 @@ do
case $ac_config_target in
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"module/Application/language/Makefile") CONFIG_FILES="$CONFIG_FILES module/Application/language/Makefile" ;;
"public/js/locale/Makefile") CONFIG_FILES="$CONFIG_FILES public/js/locale/Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -23,5 +23,5 @@ fi
AC_SUBST(HTTPD_CONF)

AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_FILES(Makefile module/Application/language/Makefile)
AC_CONFIG_FILES(Makefile module/Application/language/Makefile public/js/locale/Makefile)
AC_OUTPUT
6 changes: 3 additions & 3 deletions module/Application/language/Makefile.am
Expand Up @@ -2,15 +2,15 @@ all: update-pot update-all msgfmt-all

update-pot:
@(echo 'Updating webui.pot ...';)
@(find ../../ -name '*.ph*' | xargs xgettext --keyword=translate -L PHP --from-code=UTF-8 -o webui.pot;)
@(find ../../../ -regextype posix-egrep -regex '.*(php|phtml)$$' | grep -v vendor | grep -v tests | xargs xgettext --keyword=translate -L PHP --from-code=UTF-8 -o webui.pot;)

update-po: $(PO)
@(echo 'Updating $(PO) file ...';)
@(msgmerge -U $(PO) webui.pot);
@(msgmerge --backup=none -U $(PO) webui.pot)

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

msgfmt-all: webui.pot
@(echo 'Generating all *.mo files ...';)
Expand Down
4 changes: 2 additions & 2 deletions module/Application/language/Makefile.in
Expand Up @@ -368,11 +368,11 @@ all: update-pot update-all msgfmt-all

update-pot:
@(echo 'Updating webui.pot ...';)
@(find ../../ -name '*.ph*' | xargs xgettext --keyword=translate -L PHP --from-code=UTF-8 -o webui.pot;)
@(find ../../../ -regextype posix-egrep -regex '.*(php|phtml)$$' | grep -v vendor | grep -v tests | xargs xgettext --keyword=translate -L PHP --from-code=UTF-8 -o webui.pot;)

update-po: $(PO)
@(echo 'Updating $(PO) file ...';)
@(msgmerge --backup=none -U $(PO) webui.pot);
@(msgmerge --backup=none -U $(PO) webui.pot)

update-all: webui.pot
@(echo 'Updating all *.po files ...';)
Expand Down
Binary file modified module/Application/language/de_DE.mo
Binary file not shown.

0 comments on commit 227b060

Please sign in to comment.