Commits

Andriy Kornatskyy committed 16ad495

Fixed po files processing for default locale.

Comments (0)

Files changed (1)

demos/template/Makefile

 po:
 	xgettext --join-existing --sort-by-file --omit-header \
 		--language=Python \
-		-o i18n/shared.po \
+		-o i18n/en/LC_MESSAGES/shared.po \
 		content/templates-jinja2/shared/**/*.html \
 		content/templates-mako/shared/**/*.html \
 		content/templates-tenjin/shared/**/*.html \
 		content/templates-wheezy/shared/**/*.html
 	xgettext --join-existing --sort-by-file --omit-header \
 		--language=Python \
-		-o i18n/public.po src/public/**/*.py \
+		-o i18n/en/LC_MESSAGES/public.po src/public/**/*.py \
 		content/templates-jinja2/public/*.html \
 		content/templates-mako/public/*.html \
 		content/templates-tenjin/public/*.html \
 		content/templates-wheezy/public/*.html
 	xgettext --join-existing --sort-by-file --omit-header \
 		--language=Python \
-		-o i18n/membership.po src/membership/**/*.py \
+		-o i18n/en/LC_MESSAGES/membership.po src/membership/**/*.py \
 		content/templates-jinja2/membership/*.html \
 		content/templates-mako/membership/*.html \
 		content/templates-tenjin/membership/*.html \
 		content/templates-preprocessor/membership/*.html \
 		content/templates-wheezy/membership/*.html
-	cp i18n/*.po i18n/en/LC_MESSAGES
 	for l in `ls -d i18n/*/ | cut -d / -f 2`; do \
 		echo -n "$$l => "; \
 		msgfmt -v i18n/$$l/LC_MESSAGES/public.po \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.