Commits

Andriy Kornatskyy committed b1ae566

Improved makefile po target.

Comments (0)

Files changed (2)

 po:
 	xgettext --join-existing --sort-by-file --omit-header \
 		--add-comments \
-		-o i18n/validation.po src/wheezy/validation/*.py
-	cp i18n/validation.po i18n/en/LC_MESSAGES
-	for l in `ls --hide *.po i18n`; do \
+		-o i18n/en/LC_MESSAGES/validation.po src/wheezy/validation/*.py
+	for l in `ls -d i18n/*/ | cut -d / -f 2`; do \
 		echo -n "$$l => "; \
 		msgfmt -v i18n/$$l/LC_MESSAGES/validation.po \
 			-o i18n/$$l/LC_MESSAGES/validation.mo; \

i18n/validation.po

-# Messages for ``wheezy.validation``.
-# 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-11-02 14:13+0200\n"
-"PO-Revision-Date: 2012-05-23 11:14+0300\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"
-
-#. thousands separator
-#: src/wheezy/validation/format.py:7 src/wheezy/validation/i18n.py:6
-msgid ","
-msgstr ","
-
-#. decimal point separator
-#: src/wheezy/validation/format.py:9 src/wheezy/validation/i18n.py:8
-msgid "."
-msgstr "."
-
-#. default date input format: 2008/5/18.
-#: src/wheezy/validation/format.py:11 src/wheezy/validation/i18n.py:10
-msgid "%Y/%m/%d"
-msgstr "%Y/%m/%d"
-
-#. fallback date input formats: 5/18/2008. Use | to separate multiple values.
-#: src/wheezy/validation/format.py:14 src/wheezy/validation/format.py:15
-#: src/wheezy/validation/i18n.py:13
-msgid "%m/%d/%Y|%Y-%m-%d|%m/%d/%y"
-msgstr "%m/%d/%Y|%Y-%m-%d|%m/%d/%y"
-
-#. default time input format: 16:34.
-#: src/wheezy/validation/format.py:16 src/wheezy/validation/format.py:17
-#: src/wheezy/validation/i18n.py:15
-msgid "%H:%M"
-msgstr "%H:%M"
-
-#. fallback time input formats: 16:34:52. Use | to separate multiple values.
-#: src/wheezy/validation/format.py:18 src/wheezy/validation/format.py:21
-#: src/wheezy/validation/i18n.py:17
-msgid "%H:%M:%S"
-msgstr "%H:%M:%S"
-
-#. default datetime input format: 2008/5/18 16:34
-#: src/wheezy/validation/format.py:20 src/wheezy/validation/format.py:23
-#: src/wheezy/validation/i18n.py:19
-msgid "%Y/%m/%d %H:%M"
-msgstr "%Y/%m/%d %H:%M"
-
-#. fallback datetime input formats: 2008/5/18 16:34:52. Use | to separate.
-#: src/wheezy/validation/format.py:23 src/wheezy/validation/format.py:27
-#: src/wheezy/validation/i18n.py:22
-msgid ""
-"%Y/%m/%d %H:%M:%S|%m/%d/%Y %H:%M|%m/%d/%Y %H:%M:%S|%Y-%m-%d %H:%M|%Y-%m-%d "
-"%H:%M:%S|%m/%d/%y %H:%M|%m/%d/%y %H:%M:%S"
-msgstr ""
-"%Y/%m/%d %H:%M:%S|%m/%d/%Y %H:%M|%m/%d/%Y %H:%M:%S|%Y-%m-%d %H:%M|%Y-%m-%d "
-"%H:%M:%S|%m/%d/%y %H:%M|%m/%d/%y %H:%M:%S"
-
-#: src/wheezy/validation/model.py:131 src/wheezy/validation/model.py:135
-msgid "Multiple input was not in a correct format."
-msgstr "Multiple input was not in a correct format."
-
-#: src/wheezy/validation/model.py:144 src/wheezy/validation/model.py:161
-msgid "Input was not in a correct format."
-msgstr "Input was not in a correct format."
-
-#: src/wheezy/validation/rules.py:26
-msgid "Required field cannot be left blank."
-msgstr "Required field cannot be left blank."
-
-#: src/wheezy/validation/rules.py:79
-msgid "Field cannot have a value."
-msgstr "Field cannot have a value."
-
-#: src/wheezy/validation/rules.py:150
-#, python-format
-msgid "Required to be a minimum of %(min)d characters in length."
-msgstr "Required to be a minimum of %(min)d characters in length."
-
-#: src/wheezy/validation/rules.py:155
-#, python-format
-msgid "The length must be exactly %(len)d characters."
-msgstr "The length must be exactly %(len)d characters."
-
-#: src/wheezy/validation/rules.py:156 src/wheezy/validation/rules.py:161
-#, python-format
-msgid "The length must fall within the range %(min)d - %(max)d characters."
-msgstr "The length must fall within the range %(min)d - %(max)d characters."
-
-#: src/wheezy/validation/rules.py:163 src/wheezy/validation/rules.py:167
-#, python-format
-msgid "Exceeds maximum length of %(max)d."
-msgstr "Exceeds maximum length of %(max)d."
-
-#: src/wheezy/validation/rules.py:297 src/wheezy/validation/rules.py:330
-#, python-format
-msgid "The value failed equality comparison with \"%(comparand)s\"."
-msgstr "The value failed equality comparison with \"%(comparand)s\"."
-
-#: src/wheezy/validation/rules.py:303 src/wheezy/validation/rules.py:336
-#, python-format
-msgid "The value failed not equal comparison with \"%(comparand)s\"."
-msgstr "The value failed not equal comparison with \"%(comparand)s\"."
-
-#: src/wheezy/validation/rules.py:389 src/wheezy/validation/rules.py:422
-msgid "Required to satisfy validation predicate condition."
-msgstr "Required to satisfy validation predicate condition."
-
-#: src/wheezy/validation/rules.py:420 src/wheezy/validation/rules.py:453
-msgid "Required to not match validation pattern."
-msgstr "Required to not match validation pattern."
-
-#: src/wheezy/validation/rules.py:424 src/wheezy/validation/rules.py:457
-msgid "Required to match validation pattern."
-msgstr "Required to match validation pattern."
-
-#: src/wheezy/validation/rules.py:479 src/wheezy/validation/rules.py:512
-msgid ""
-"Invalid slug. The value must consist of letters, digits, underscopes and/or "
-"hyphens."
-msgstr ""
-"Invalid slug. The value must consist of letters, digits, underscopes and/or "
-"hyphens."
-
-#: src/wheezy/validation/rules.py:510 src/wheezy/validation/rules.py:512
-#: src/wheezy/validation/rules.py:545
-msgid "Required to be a valid email address."
-msgstr "Required to be a valid email address."
-
-#: src/wheezy/validation/rules.py:557 src/wheezy/validation/rules.py:559
-#: src/wheezy/validation/rules.py:592
-#, python-format
-msgid "Required to be greater or equal to %(min)s."
-msgstr "Required to be greater or equal to %(min)s."
-
-#: src/wheezy/validation/rules.py:562 src/wheezy/validation/rules.py:564
-#: src/wheezy/validation/rules.py:597
-#, python-format
-msgid "The value must fall within the range %(min)s - %(max)s"
-msgstr "The value must fall within the range %(min)s - %(max)s"
-
-#: src/wheezy/validation/rules.py:569 src/wheezy/validation/rules.py:571
-#: src/wheezy/validation/rules.py:604
-#, python-format
-msgid "Exceeds maximum allowed value of %(max)s."
-msgstr "Exceeds maximum allowed value of %(max)s."
-
-#: src/wheezy/validation/rules.py:810 src/wheezy/validation/rules.py:812
-#: src/wheezy/validation/rules.py:845
-msgid "The value does not belong to the list of known items."
-msgstr "The value does not belong to the list of known items."
-
-#: src/wheezy/validation/rules.py:841 src/wheezy/validation/rules.py:843
-#: src/wheezy/validation/rules.py:876
-msgid "Required to be above a minimum allowed."
-msgstr "Required to be above a minimum allowed."
-
-#: src/wheezy/validation/rules.py:846 src/wheezy/validation/rules.py:848
-#: src/wheezy/validation/rules.py:881
-msgid "Must fall within a valid range."
-msgstr "Must fall within a valid range."
-
-#: src/wheezy/validation/rules.py:852 src/wheezy/validation/rules.py:854
-#: src/wheezy/validation/rules.py:887
-msgid "Exceeds maximum allowed."
-msgstr "Exceeds maximum allowed."