Andriy Kornatskyy avatar Andriy Kornatskyy committed 9ab00ed

Translated demo template public and shared resources.

Comments (0)

Files changed (9)

demos/template/Makefile

 VERSION=2.7
 PYPI=http://pypi.python.org/simple
 ENV=../../env
-TEMPLATE_ENGINE=wheezy.template
+TEMPLATE_ENGINE=wheezy.preprocessor
 
 PYTHON=$(ENV)/bin/python$(VERSION)
 EASY_INSTALL=$(ENV)/bin/easy_install-$(VERSION)
 po:
 	xgettext --join-existing --sort-by-file --omit-header \
 		--language=Python \
+		-o i18n/shared.po \
+		content/templates-jinja2/shared/**/*.html \
+		content/templates-mako/shared/**/*.html \
+		content/templates-tenjin/shared/**/*.html \
+		content/templates-wheezy/preprocessor/shared/**/*.html \
+		content/templates-wheezy/shared/**/*.html
+	xgettext --join-existing --sort-by-file --omit-header \
+		--language=Python \
+		-o i18n/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 \
 		content/templates-jinja2/membership/*.html \
 		content/templates-mako/membership/*.html \
 		content/templates-tenjin/membership/*.html \
 		content/templates-wheezy/preprocessor/membership/*.html \
 		content/templates-wheezy/membership/*.html
-	cp i18n/membership.po i18n/en/LC_MESSAGES
-	cp i18n/validation.po i18n/en/LC_MESSAGES
+	cp i18n/*.po i18n/en/LC_MESSAGES
 	for l in `ls --hide *.po i18n`; do \
 		echo -n "$$l => "; \
+		msgfmt -v i18n/$$l/LC_MESSAGES/public.po \
+			i18n/$$l/LC_MESSAGES/shared.po \
+			-o i18n/$$l/LC_MESSAGES/public.mo; \
 		msgfmt -v i18n/$$l/LC_MESSAGES/membership.po \
+			i18n/$$l/LC_MESSAGES/shared.po \
 			-o i18n/$$l/LC_MESSAGES/membership.mo; \
 		msgfmt -v i18n/$$l/LC_MESSAGES/validation.po \
 			-o i18n/$$l/LC_MESSAGES/validation.mo; \
 profile:
 	echo $(TEMPLATE_ENGINE) ; export TEMPLATE_ENGINE=$(TEMPLATE_ENGINE) ; \
 	$(NOSE) -qs -m benchmark --with-profile \
-		--profile-stats-file=public.pstats src/membership
+		--profile-stats-file=profile.pstats src/public
 
 gropf:
-	gprof2dot.py -f pstats public.pstats | dot -Tpng -o public.png
+	gprof2dot.py -f pstats profile.pstats | dot -Tpng -o profile.png

demos/template/i18n/en/LC_MESSAGES/membership.po

-# Messages for ``demos.public``.
-# Copyright (C) 2011 Andriy Kornatskyy
-# Andriy Kornatskyy <andriy.kornatskyy@live.com>, 2011.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: wheezy.validation\n"
-"Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
-"POT-Creation-Date: 2011-12-21 18:39+0200\n"
-"PO-Revision-Date: 2011-12-21 18:39+0200\n"
-"Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
-"Language: US English\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
 #: content/templates-jinja2/membership/signup.html:41
 #: content/templates-mako/membership/signup.html:40
 #: content/templates-wheezy/membership/signup.html:47

demos/template/i18n/en/LC_MESSAGES/public.po

+#: content/templates-jinja2/public/about.html:2
+#: content/templates-jinja2/public/about.html:5
+#: content/templates-tenjin/public/about.html:2
+#: content/templates-tenjin/public/about.html:4
+#: content/templates-wheezy/public/about.html:5
+#: content/templates-wheezy/public/about.html:10
+msgid "About"
+msgstr "About"
+
+#: content/templates-jinja2/public/home.html:2
+#: content/templates-mako/public/home.html:2
+#: content/templates-tenjin/public/home.html:2
+#: content/templates-wheezy/public/home.html:4
+#: content/templates-wheezy/public/home.html:5
+msgid "Home"
+msgstr "Home"
+
+#: content/templates-jinja2/public/home.html:5
+#: content/templates-mako/public/home.html:4
+#: content/templates-tenjin/public/home.html:4
+#: content/templates-wheezy/public/home.html:9
+#: content/templates-wheezy/public/home.html:10
+msgid "Welcome!"
+msgstr "Welcome!"

demos/template/i18n/en/LC_MESSAGES/shared.po

+# Messages for ``demos.public``.
+# Copyright (C) 2011 Andriy Kornatskyy
+# Andriy Kornatskyy <andriy.kornatskyy@live.com>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wheezy.demo.template\n"
+"Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"POT-Creation-Date: 2012-07-13 9:53+0200\n"
+"PO-Revision-Date: 2012-07-13 9:53+0200\n"
+"Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"Language: US English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: content/templates-jinja2/shared/master.html:4
+#: content/templates-jinja2/shared/master.html:12
+#: content/templates-mako/shared/master.html:7
+#: content/templates-mako/shared/master.html:15
+#: content/templates-tenjin/shared/master.html:5
+#: content/templates-tenjin/shared/master.html:16
+#: content/templates-wheezy/preprocessor/shared/master.html:4
+#: content/templates-wheezy/preprocessor/shared/master.html:15
+#: content/templates-wheezy/shared/master.html:5
+#: content/templates-wheezy/shared/master.html:16
+msgid "My Site"
+msgstr "My Site"
+
+#: content/templates-jinja2/shared/master.html:27
+#: content/templates-mako/shared/master.html:27
+#: content/templates-tenjin/shared/master.html:31
+#: content/templates-wheezy/preprocessor/shared/master.html:31
+#: content/templates-wheezy/shared/master.html:32
+msgid "Version"
+msgstr "Version"
+
+#: content/templates-jinja2/shared/snippet/menu-header.html:11
+#: content/templates-mako/shared/snippet/menu-header.html:14
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:18
+#: content/templates-wheezy/shared/snippet/menu-header.html:12
+msgid "s:Home"
+msgstr "Home"
+
+#: content/templates-jinja2/shared/snippet/menu-header.html:12
+#: content/templates-mako/shared/snippet/menu-header.html:15
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:19
+#: content/templates-wheezy/shared/snippet/menu-header.html:13
+msgid "s:About"
+msgstr "About"
+
+#: content/templates-jinja2/shared/snippet/menu-locale.html:2
+#: content/templates-mako/shared/snippet/menu-locale.html:5
+#: content/templates-tenjin/shared/snippet/menu-locale.html:2
+#: content/templates-wheezy/shared/snippet/menu-locale.html:3
+msgid "English"
+msgstr "English"
+
+#: content/templates-jinja2/shared/snippet/menu-locale.html:4
+#: content/templates-mako/shared/snippet/menu-locale.html:7
+#: content/templates-tenjin/shared/snippet/menu-locale.html:4
+#: content/templates-wheezy/shared/snippet/menu-locale.html:4
+msgid "Russian"
+msgstr "Русский"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:2
+#: content/templates-mako/shared/snippet/menu-signin.html:5
+#: content/templates-tenjin/shared/snippet/menu-signin.html:2
+#: content/templates-wheezy/shared/snippet/menu-signin.html:3
+msgid "Welcome"
+msgstr "Welcome"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:3
+#: content/templates-mako/shared/snippet/menu-signin.html:6
+#: content/templates-tenjin/shared/snippet/menu-signin.html:3
+#: content/templates-wheezy/shared/snippet/menu-signin.html:4
+msgid "Sign out"
+msgstr "Sign out"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:5
+#: content/templates-mako/shared/snippet/menu-signin.html:8
+#: content/templates-tenjin/shared/snippet/menu-signin.html:5
+#: content/templates-wheezy/shared/snippet/menu-signin.html:6
+msgid "Sign in"
+msgstr "Sign in"

demos/template/i18n/membership.po

-# Messages for ``demos.public``.
-# Copyright (C) 2011 Andriy Kornatskyy
-# Andriy Kornatskyy <andriy.kornatskyy@live.com>, 2011.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: wheezy.validation\n"
-"Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
-"POT-Creation-Date: 2011-12-21 18:39+0200\n"
-"PO-Revision-Date: 2011-12-21 18:39+0200\n"
-"Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
-"Language: US English\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
 #: content/templates-jinja2/membership/signup.html:41
 #: content/templates-mako/membership/signup.html:40
 #: content/templates-wheezy/membership/signup.html:47

demos/template/i18n/public.po

+#: content/templates-jinja2/public/about.html:2
+#: content/templates-jinja2/public/about.html:5
+#: content/templates-tenjin/public/about.html:2
+#: content/templates-tenjin/public/about.html:4
+#: content/templates-wheezy/public/about.html:5
+#: content/templates-wheezy/public/about.html:10
+msgid "About"
+msgstr "About"
+
+#: content/templates-jinja2/public/home.html:2
+#: content/templates-mako/public/home.html:2
+#: content/templates-tenjin/public/home.html:2
+#: content/templates-wheezy/public/home.html:4
+#: content/templates-wheezy/public/home.html:5
+msgid "Home"
+msgstr "Home"
+
+#: content/templates-jinja2/public/home.html:5
+#: content/templates-mako/public/home.html:4
+#: content/templates-tenjin/public/home.html:4
+#: content/templates-wheezy/public/home.html:9
+#: content/templates-wheezy/public/home.html:10
+msgid "Welcome!"
+msgstr "Welcome!"

demos/template/i18n/ru/LC_MESSAGES/public.po

+# Messages for ``demos.public``.
+# Copyright (C) 2011 Andriy Kornatskyy
+# Andriy Kornatskyy <andriy.kornatskyy@live.com>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wheezy.demo.template\n"
+"Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"POT-Creation-Date: 2012-07-13 9:53+0200\n"
+"PO-Revision-Date: 2012-07-13 9:53+0200\n"
+"Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"Language: US English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: content/templates-wheezy/public/home.html:4
+#: content/templates-wheezy/public/home.html:5
+msgid "Home"
+msgstr "Главная"
+
+#: content/templates-wheezy/public/home.html:9
+#: content/templates-wheezy/public/home.html:10
+msgid "Welcome!"
+msgstr "Добро пожаловать!"

demos/template/i18n/ru/LC_MESSAGES/shared.po

+#: content/templates-jinja2/shared/master.html:4
+#: content/templates-jinja2/shared/master.html:12
+#: content/templates-mako/shared/master.html:7
+#: content/templates-mako/shared/master.html:15
+#: content/templates-tenjin/shared/master.html:5
+#: content/templates-tenjin/shared/master.html:16
+#: content/templates-wheezy/preprocessor/shared/master.html:4
+#: content/templates-wheezy/preprocessor/shared/master.html:15
+#: content/templates-wheezy/shared/master.html:5
+#: content/templates-wheezy/shared/master.html:16
+msgid "My Site"
+msgstr "Мой Сайт"
+
+#: content/templates-jinja2/shared/master.html:27
+#: content/templates-mako/shared/master.html:27
+#: content/templates-tenjin/shared/master.html:31
+#: content/templates-wheezy/preprocessor/shared/master.html:31
+#: content/templates-wheezy/shared/master.html:32
+msgid "Version"
+msgstr "Версия"
+
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:18
+msgid "s:Home"
+msgstr "Главная"
+
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:19
+msgid "s:About"
+msgstr "О нас"
+
+#: content/templates-wheezy/shared/snippet/menu-locale.html:3
+msgid "English"
+msgstr "English"
+
+#: content/templates-wheezy/shared/snippet/menu-locale.html:4
+msgid "Russian"
+msgstr "Русский"
+
+#: content/templates-wheezy/shared/snippet/menu-signin.html:3
+msgid "Welcome"
+msgstr "Добро пожаловать"
+
+#: content/templates-wheezy/shared/snippet/menu-signin.html:4
+msgid "Sign out"
+msgstr "Выйти"
+
+#: content/templates-wheezy/shared/snippet/menu-signin.html:6
+msgid "Sign in"
+msgstr "Войти"

demos/template/i18n/shared.po

+# Messages for ``demos.public``.
+# Copyright (C) 2011 Andriy Kornatskyy
+# Andriy Kornatskyy <andriy.kornatskyy@live.com>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wheezy.demo.template\n"
+"Report-Msgid-Bugs-To: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"POT-Creation-Date: 2012-07-13 9:53+0200\n"
+"PO-Revision-Date: 2012-07-13 9:53+0200\n"
+"Last-Translator: Andriy Kornatskyy <andriy.kornatskyy@live.com>\n"
+"Language: US English\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: content/templates-jinja2/shared/master.html:4
+#: content/templates-jinja2/shared/master.html:12
+#: content/templates-mako/shared/master.html:7
+#: content/templates-mako/shared/master.html:15
+#: content/templates-tenjin/shared/master.html:5
+#: content/templates-tenjin/shared/master.html:16
+#: content/templates-wheezy/preprocessor/shared/master.html:4
+#: content/templates-wheezy/preprocessor/shared/master.html:15
+#: content/templates-wheezy/shared/master.html:5
+#: content/templates-wheezy/shared/master.html:16
+msgid "My Site"
+msgstr "My Site"
+
+#: content/templates-jinja2/shared/master.html:27
+#: content/templates-mako/shared/master.html:27
+#: content/templates-tenjin/shared/master.html:31
+#: content/templates-wheezy/preprocessor/shared/master.html:31
+#: content/templates-wheezy/shared/master.html:32
+msgid "Version"
+msgstr "Version"
+
+#: content/templates-jinja2/shared/snippet/menu-header.html:11
+#: content/templates-mako/shared/snippet/menu-header.html:14
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:18
+#: content/templates-wheezy/shared/snippet/menu-header.html:12
+msgid "s:Home"
+msgstr "Home"
+
+#: content/templates-jinja2/shared/snippet/menu-header.html:12
+#: content/templates-mako/shared/snippet/menu-header.html:15
+#: content/templates-wheezy/preprocessor/shared/snippet/menu-header.html:19
+#: content/templates-wheezy/shared/snippet/menu-header.html:13
+msgid "s:About"
+msgstr "About"
+
+#: content/templates-jinja2/shared/snippet/menu-locale.html:2
+#: content/templates-mako/shared/snippet/menu-locale.html:5
+#: content/templates-tenjin/shared/snippet/menu-locale.html:2
+#: content/templates-wheezy/shared/snippet/menu-locale.html:3
+msgid "English"
+msgstr "English"
+
+#: content/templates-jinja2/shared/snippet/menu-locale.html:4
+#: content/templates-mako/shared/snippet/menu-locale.html:7
+#: content/templates-tenjin/shared/snippet/menu-locale.html:4
+#: content/templates-wheezy/shared/snippet/menu-locale.html:4
+msgid "Russian"
+msgstr "Русский"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:2
+#: content/templates-mako/shared/snippet/menu-signin.html:5
+#: content/templates-tenjin/shared/snippet/menu-signin.html:2
+#: content/templates-wheezy/shared/snippet/menu-signin.html:3
+msgid "Welcome"
+msgstr "Welcome"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:3
+#: content/templates-mako/shared/snippet/menu-signin.html:6
+#: content/templates-tenjin/shared/snippet/menu-signin.html:3
+#: content/templates-wheezy/shared/snippet/menu-signin.html:4
+msgid "Sign out"
+msgstr "Sign out"
+
+#: content/templates-jinja2/shared/snippet/menu-signin.html:5
+#: content/templates-mako/shared/snippet/menu-signin.html:8
+#: content/templates-tenjin/shared/snippet/menu-signin.html:5
+#: content/templates-wheezy/shared/snippet/menu-signin.html:6
+msgid "Sign in"
+msgstr "Sign in"
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.