Merge pull request #154 from gjo/translation-ja-4

Translation ja 4
This commit is contained in:
Tres Seaver
2013-12-20 12:38:22 -08:00
4 changed files with 101 additions and 72 deletions

View File

@@ -423,11 +423,13 @@ def luhnok(node, value):
sum = _luhnok(value) sum = _luhnok(value)
except: except:
raise Invalid(node, raise Invalid(node,
'%r is not a valid credit card number' % value) _('"${val}" is not a valid credit card number',
mapping={'val': value}))
if not (sum % 10) == 0: if not (sum % 10) == 0:
raise Invalid(node, raise Invalid(node,
'%r is not a valid credit card number' % value) _('"${val}" is not a valid credit card number',
mapping={'val': value}))
def _luhnok(value): def _luhnok(value):
sum = 0 sum = 0

View File

@@ -3,135 +3,149 @@
# This file is distributed under the same license as the colander project. # This file is distributed under the same license as the colander project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2013. # FIRST AUTHOR <EMAIL@ADDRESS>, 2013.
# #
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: colander 1.0a3\n" "Project-Id-Version: colander 1.0b1\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2013-05-19 13:15+0200\n" "POT-Creation-Date: 2013-11-16 14:23+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.6\n" "Generated-By: Babel 1.3\n"
#: colander/__init__.py:233 #: colander/__init__.py:240
msgid "Invalid value" msgid "Invalid value"
msgstr "" msgstr ""
#: colander/__init__.py:270 #: colander/__init__.py:283
msgid "String does not match expected pattern" msgid "String does not match expected pattern"
msgstr "" msgstr ""
#: colander/__init__.py:287 #: colander/__init__.py:302
msgid "Invalid email address" msgid "Invalid email address"
msgstr "" msgstr ""
#: colander/__init__.py:315 #: colander/__init__.py:330
msgid "${val} is less than minimum value ${min}" msgid "${val} is less than minimum value ${min}"
msgstr "" msgstr ""
#: colander/__init__.py:316 #: colander/__init__.py:331
msgid "${val} is greater than maximum value ${max}" msgid "${val} is greater than maximum value ${max}"
msgstr "" msgstr ""
#: colander/__init__.py:348 #: colander/__init__.py:363
msgid "Shorter than minimum length ${min}" msgid "Shorter than minimum length ${min}"
msgstr "" msgstr ""
#: colander/__init__.py:354 #: colander/__init__.py:369
msgid "Longer than maximum length ${max}" msgid "Longer than maximum length ${max}"
msgstr "" msgstr ""
#: colander/__init__.py:367 #: colander/__init__.py:382
msgid "\"${val}\" is not one of ${choices}" msgid "\"${val}\" is not one of ${choices}"
msgstr "" msgstr ""
#: colander/__init__.py:377 #: colander/__init__.py:392
msgid "One or more of the choices you made was not acceptable" msgid "One or more of the choices you made was not acceptable"
msgstr "" msgstr ""
#: colander/__init__.py:423 #: colander/__init__.py:414 colander/__init__.py:419
msgid "\"${val}\" is not a valid credit card number"
msgstr ""
#: colander/__init__.py:440
msgid "Must be a URL" msgid "Must be a URL"
msgstr "" msgstr ""
#: colander/__init__.py:519 #: colander/__init__.py:536
msgid "\"${val}\" is not a mapping type: ${err}" msgid "\"${val}\" is not a mapping type: ${err}"
msgstr "" msgstr ""
#: colander/__init__.py:560 #: colander/__init__.py:578
msgid "Unrecognized keys in mapping: \"${val}\"" msgid "Unrecognized keys in mapping: \"${val}\""
msgstr "" msgstr ""
#: colander/__init__.py:656 colander/__init__.py:856 #: colander/__init__.py:674 colander/__init__.py:905
msgid "\"${val}\" is not iterable" msgid "\"${val}\" is not iterable"
msgstr "" msgstr ""
#: colander/__init__.py:664 #: colander/__init__.py:682
msgid "\"${val}\" has an incorrect number of elements (expected ${exp}, was ${was})" msgid "\"${val}\" has an incorrect number of elements (expected ${exp}, was ${was})"
msgstr "" msgstr ""
#: colander/__init__.py:803 #: colander/__init__.py:821 colander/__init__.py:852
msgid "${cstruct} is not iterable" msgid "${cstruct} is not iterable"
msgstr "" msgstr ""
#: colander/__init__.py:1075 #: colander/__init__.py:1124
msgid "${val} cannot be serialized: ${err}" msgid "${val} cannot be serialized: ${err}"
msgstr "" msgstr ""
#: colander/__init__.py:1093 #: colander/__init__.py:1142
msgid "${val} is not a string: ${err}" msgid "${val} is not a string: ${err}"
msgstr "" msgstr ""
#: colander/__init__.py:1113 colander/__init__.py:1124 #: colander/__init__.py:1162 colander/__init__.py:1173
msgid "\"${val}\" is not a number" msgid "\"${val}\" is not a number"
msgstr "" msgstr ""
#: colander/__init__.py:1268 #: colander/__init__.py:1317
msgid "${val} is not a string" msgid "${val} is not a string"
msgstr "" msgstr ""
#: colander/__init__.py:1279 #: colander/__init__.py:1328
msgid "\"${val}\" is neither in (${false_choices}) nor in (${true_choices})" msgid "\"${val}\" is neither in (${false_choices}) nor in (${true_choices})"
msgstr "" msgstr ""
#: colander/__init__.py:1339 colander/__init__.py:1356 colander/__init__.py:1366 #: colander/__init__.py:1388 colander/__init__.py:1405 colander/__init__.py:1415
msgid "relative name \"${val}\" irresolveable without package" msgid "relative name \"${val}\" irresolveable without package"
msgstr "" msgstr ""
#: colander/__init__.py:1396 #: colander/__init__.py:1445
msgid "\"${val}\" has no __name__" msgid "\"${val}\" has no __name__"
msgstr "" msgstr ""
#: colander/__init__.py:1405 #: colander/__init__.py:1454
msgid "\"${val}\" is not a string" msgid "\"${val}\" is not a string"
msgstr "" msgstr ""
#: colander/__init__.py:1414 #: colander/__init__.py:1463
msgid "The dotted name \"${name}\" cannot be imported" msgid "The dotted name \"${name}\" cannot be imported"
msgstr "" msgstr ""
#: colander/__init__.py:1462 colander/__init__.py:1538 #: colander/__init__.py:1511 colander/__init__.py:1587
msgid "Invalid date" msgid "Invalid date"
msgstr "" msgstr ""
#: colander/__init__.py:1478 #: colander/__init__.py:1527
msgid "\"${val}\" is not a datetime object" msgid "\"${val}\" is not a datetime object"
msgstr "" msgstr ""
#: colander/__init__.py:1549 #: colander/__init__.py:1598
msgid "\"${val}\" is not a date object" msgid "\"${val}\" is not a date object"
msgstr "" msgstr ""
#: colander/__init__.py:1610 #: colander/__init__.py:1659
msgid "Invalid time" msgid "Invalid time"
msgstr "" msgstr ""
#: colander/__init__.py:1621 #: colander/__init__.py:1670
msgid "\"${val}\" is not a time object" msgid "\"${val}\" is not a time object"
msgstr "" msgstr ""
#: colander/__init__.py:1878 colander/__init__.py:1880 #: colander/__init__.py:1795
msgid "Required" msgid "Required"
msgstr "" msgstr ""
#: colander/tests/test_colander.py:295 colander/tests/test_colander.py:302
msgid "fail ${val}"
msgstr ""
#: colander/tests/test_colander.py:469
msgid "${val}: ${choices}"
msgstr ""

View File

@@ -1,14 +1,14 @@
# Japanese translations for colander. # Japanese translations for colander.
# Copyright (C) 2012 ORGANIZATION # Copyright (C) 2012 ORGANIZATION
# This file is distributed under the same license as the colander project. # This file is distributed under the same license as the colander project.
# OCHIAI, Gouji <gjo.ext@gmail.com>, 2012. # OCHIAI, Gouji <gjo.ext@gmail.com>, 2012-2013.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: colander 0.8\n" "Project-Id-Version: colander 0.8\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2013-05-19 13:15+0200\n" "POT-Creation-Date: 2013-11-16 14:23+0900\n"
"PO-Revision-Date: 2012-03-28 01:12+0900\n" "PO-Revision-Date: 2013-11-16 14:30+0900\n"
"Last-Translator: OCHIAI, Gouji <gjo.ext@gmail.com>\n" "Last-Translator: OCHIAI, Gouji <gjo.ext@gmail.com>\n"
"Language-Team: ja <LL@li.org>\n" "Language-Team: ja <LL@li.org>\n"
"Plural-Forms: nplurals=1; plural=0\n" "Plural-Forms: nplurals=1; plural=0\n"
@@ -17,125 +17,138 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n" "Generated-By: Babel 1.3\n"
#: colander/__init__.py:233 #: colander/__init__.py:240
msgid "Invalid value" msgid "Invalid value"
msgstr "無効な値です" msgstr "無効な値です"
#: colander/__init__.py:270 #: colander/__init__.py:283
msgid "String does not match expected pattern" msgid "String does not match expected pattern"
msgstr "文字列がパターンに一致しません" msgstr "文字列がパターンに一致しません"
#: colander/__init__.py:287 #: colander/__init__.py:302
msgid "Invalid email address" msgid "Invalid email address"
msgstr "無効なメールアドレスです" msgstr "無効なメールアドレスです"
#: colander/__init__.py:315 #: colander/__init__.py:330
msgid "${val} is less than minimum value ${min}" msgid "${val} is less than minimum value ${min}"
msgstr "${val} は最小値 ${min} を下回っています" msgstr "${val} は最小値 ${min} を下回っています"
#: colander/__init__.py:316 #: colander/__init__.py:331
msgid "${val} is greater than maximum value ${max}" msgid "${val} is greater than maximum value ${max}"
msgstr "${val} は最大値 ${max} を超過しています" msgstr "${val} は最大値 ${max} を超過しています"
#: colander/__init__.py:348 #: colander/__init__.py:363
msgid "Shorter than minimum length ${min}" msgid "Shorter than minimum length ${min}"
msgstr "${min} 以上の長さが必要です" msgstr "${min} 以上の長さが必要です"
#: colander/__init__.py:354 #: colander/__init__.py:369
msgid "Longer than maximum length ${max}" msgid "Longer than maximum length ${max}"
msgstr "${max} より短くしてください" msgstr "${max} より短くしてください"
#: colander/__init__.py:367 #: colander/__init__.py:382
msgid "\"${val}\" is not one of ${choices}" msgid "\"${val}\" is not one of ${choices}"
msgstr "\"${val}\" は ${choices} のいずれかでなければなりません" msgstr "\"${val}\" は ${choices} のいずれかでなければなりません"
#: colander/__init__.py:377 #: colander/__init__.py:392
msgid "One or more of the choices you made was not acceptable" msgid "One or more of the choices you made was not acceptable"
msgstr "" msgstr "選択された値のいくつかが許容される値ではありません"
#: colander/__init__.py:423 #: colander/__init__.py:414 colander/__init__.py:419
msgid "\"${val}\" is not a valid credit card number"
msgstr "\"${val}\" は妥当なクレジットカード番号ではありません"
#: colander/__init__.py:440
msgid "Must be a URL" msgid "Must be a URL"
msgstr "" msgstr "URLでなければなりません"
#: colander/__init__.py:519 #: colander/__init__.py:536
msgid "\"${val}\" is not a mapping type: ${err}" msgid "\"${val}\" is not a mapping type: ${err}"
msgstr "\"${val}\" はマップ型でなければなりません: ${err}" msgstr "\"${val}\" はマップ型でなければなりません: ${err}"
#: colander/__init__.py:560 #: colander/__init__.py:578
msgid "Unrecognized keys in mapping: \"${val}\"" msgid "Unrecognized keys in mapping: \"${val}\""
msgstr "未定義のキーがマップに含まれています: \"${val}\"" msgstr "未定義のキーがマップに含まれています: \"${val}\""
#: colander/__init__.py:656 colander/__init__.py:856 #: colander/__init__.py:674 colander/__init__.py:905
msgid "\"${val}\" is not iterable" msgid "\"${val}\" is not iterable"
msgstr "\"${val}\" は iterable でなければなりません" msgstr "\"${val}\" は iterable でなければなりません"
#: colander/__init__.py:664 #: colander/__init__.py:682
msgid "" msgid ""
"\"${val}\" has an incorrect number of elements (expected ${exp}, was " "\"${val}\" has an incorrect number of elements (expected ${exp}, was "
"${was})" "${was})"
msgstr "\"${val}\" の要素数が正しくありません (${exp} 個のはずが ${was} 個)" msgstr "\"${val}\" の要素数が正しくありません (${exp} 個のはずが ${was} 個)"
#: colander/__init__.py:803 #: colander/__init__.py:821 colander/__init__.py:852
msgid "${cstruct} is not iterable" msgid "${cstruct} is not iterable"
msgstr "${cstruct} は iterable でなければなりません" msgstr "${cstruct} は iterable でなければなりません"
#: colander/__init__.py:1075 #: colander/__init__.py:1124
msgid "${val} cannot be serialized: ${err}" msgid "${val} cannot be serialized: ${err}"
msgstr "${val} が直列化できません: ${err}" msgstr "${val} が直列化できません: ${err}"
#: colander/__init__.py:1093 #: colander/__init__.py:1142
msgid "${val} is not a string: ${err}" msgid "${val} is not a string: ${err}"
msgstr "${val} は文字列ではありません: ${err}" msgstr "${val} は文字列ではありません: ${err}"
#: colander/__init__.py:1113 colander/__init__.py:1124 #: colander/__init__.py:1162 colander/__init__.py:1173
msgid "\"${val}\" is not a number" msgid "\"${val}\" is not a number"
msgstr "\"${val}\" は数値ではありません" msgstr "\"${val}\" は数値ではありません"
#: colander/__init__.py:1268 #: colander/__init__.py:1317
msgid "${val} is not a string" msgid "${val} is not a string"
msgstr "${val} は文字列ではありません" msgstr "${val} は文字列ではありません"
#: colander/__init__.py:1279 #: colander/__init__.py:1328
msgid "\"${val}\" is neither in (${false_choices}) nor in (${true_choices})" msgid "\"${val}\" is neither in (${false_choices}) nor in (${true_choices})"
msgstr "" msgstr "\"${val}\" が (${false_choices}) にも (${true_choices}) にも該当しません"
#: colander/__init__.py:1339 colander/__init__.py:1356 #: colander/__init__.py:1388 colander/__init__.py:1405
#: colander/__init__.py:1366 #: colander/__init__.py:1415
msgid "relative name \"${val}\" irresolveable without package" msgid "relative name \"${val}\" irresolveable without package"
msgstr "相対名 \"${val}\" はパッケージを指定しなければ名前解決できません" msgstr "相対名 \"${val}\" はパッケージを指定しなければ名前解決できません"
#: colander/__init__.py:1396 #: colander/__init__.py:1445
msgid "\"${val}\" has no __name__" msgid "\"${val}\" has no __name__"
msgstr "\"${val}\" には __name__ が含まれていません" msgstr "\"${val}\" には __name__ が含まれていません"
#: colander/__init__.py:1405 #: colander/__init__.py:1454
msgid "\"${val}\" is not a string" msgid "\"${val}\" is not a string"
msgstr "\"${val}\" は文字列ではありません" msgstr "\"${val}\" は文字列ではありません"
#: colander/__init__.py:1414 #: colander/__init__.py:1463
msgid "The dotted name \"${name}\" cannot be imported" msgid "The dotted name \"${name}\" cannot be imported"
msgstr "ドット区切り名 \"${name}\" がインポートできませんでした" msgstr "ドット区切り名 \"${name}\" がインポートできませんでした"
#: colander/__init__.py:1462 colander/__init__.py:1538 #: colander/__init__.py:1511 colander/__init__.py:1587
msgid "Invalid date" msgid "Invalid date"
msgstr "無効な日付です" msgstr "無効な日付です"
#: colander/__init__.py:1478 #: colander/__init__.py:1527
msgid "\"${val}\" is not a datetime object" msgid "\"${val}\" is not a datetime object"
msgstr "\"${val}\" は datetime オブジェクトではありません" msgstr "\"${val}\" は datetime オブジェクトではありません"
#: colander/__init__.py:1549 #: colander/__init__.py:1598
msgid "\"${val}\" is not a date object" msgid "\"${val}\" is not a date object"
msgstr "\"${val}\" は date オブジェクトではありません" msgstr "\"${val}\" は date オブジェクトではありません"
#: colander/__init__.py:1610 #: colander/__init__.py:1659
msgid "Invalid time" msgid "Invalid time"
msgstr "無効な時刻です" msgstr "無効な時刻です"
#: colander/__init__.py:1621 #: colander/__init__.py:1670
msgid "\"${val}\" is not a time object" msgid "\"${val}\" is not a time object"
msgstr "\"${val}\" は time オブジェクトではありません" msgstr "\"${val}\" は time オブジェクトではありません"
#: colander/__init__.py:1878 colander/__init__.py:1880 #: colander/__init__.py:1795
msgid "Required" msgid "Required"
msgstr "必須です" msgstr "必須です"
#: colander/tests/test_colander.py:295 colander/tests/test_colander.py:302
msgid "fail ${val}"
msgstr "失敗 ${val}"
#: colander/tests/test_colander.py:469
msgid "${val}: ${choices}"
msgstr "${val}: ${choices}"