Browse Source

#706: Add Japanese language package, thanks to @tsuyoshifujii

Phuoc Nguyen 11 years ago
parent
commit
0b1b30309c

+ 6 - 9
CHANGELOG.md

@@ -2,28 +2,28 @@
 
 ## v0.5.2 (not released yet)
 
-__New features__
+__New Features__
 * [#542](https://github.com/nghuuphuoc/bootstrapvalidator/issues/542), [#666](https://github.com/nghuuphuoc/bootstrapvalidator/pull/666): Add blank validator, thanks to [@bermo](https://github.com/bermo)
 * [#617](https://github.com/nghuuphuoc/bootstrapvalidator/issues/617): Add ```init``` and ```destroy``` methods to validator
 
 __Improvements__
-
 * [#345](https://github.com/nghuuphuoc/bootstrapvalidator/issues/345), [#454](https://github.com/nghuuphuoc/bootstrapvalidator/pull/454): The [different](http://bootstrapvalidator.com/validators/different/) validator allows more than a 2-way comparison, thanks to [@AlaskanShade](https://github.com/AlaskanShade)
 * [#557](https://github.com/nghuuphuoc/bootstrapvalidator/issues/557), [#569](https://github.com/nghuuphuoc/bootstrapvalidator/pull/569): The [container](http://bootstrapvalidator.com/settings/#form-container) option can be defined by a callback, thanks to [@mattrick](https://github.com/mattrick)
 * [#675](https://github.com/nghuuphuoc/bootstrapvalidator/pull/675): The [emailAddress](http://bootstrapvalidator.com/validators/emailAddress/) validator accepts multiple email addresses, thanks to [@kenny-evitt](https://github.com/kenny-evitt)
 
 __Bug Fixes__
-
 * [#687](https://github.com/nghuuphuoc/bootstrapvalidator/issues/687), [#711](https://github.com/nghuuphuoc/bootstrapvalidator/pull/711): Keep disabled validators VALID, thanks to [@talberti](https://github.com/talberti)
 
-__Language Packages__
+__Document__
+* [#709](https://github.com/nghuuphuoc/bootstrapvalidator/issues/709), [#715](https://github.com/nghuuphuoc/bootstrapvalidator/pull/715): Add [Bootstrap Select](http://bootstrapvalidator.com/examples/bootstrap-select/) and [Select2](http://bootstrapvalidator.com/examples/select2/) examples, thanks to [@Arkni](https://github.com/Arkni)
 
+__Language Packages__
+* [#706](https://github.com/nghuuphuoc/bootstrapvalidator/pull/706): Japanese language package, thanks to [@tsuyoshifujii](https://github.com/tsuyoshifujii)
 * [#712](https://github.com/nghuuphuoc/bootstrapvalidator/pull/712): Swedish language package, thanks to [@ulsa](https://github.com/ulsa)
 
 ## v0.5.1 (2014-08-22)
 
-__New features__
-
+__New Features__
 * [#218](https://github.com/nghuuphuoc/bootstrapvalidator/issues/218), [#531](https://github.com/nghuuphuoc/bootstrapvalidator/pull/531): Add meid validator, thanks to [@troymccabe](https://github.com/troymccabe)
 * [#267](https://github.com/nghuuphuoc/bootstrapvalidator/issues/267), [#532](https://github.com/nghuuphuoc/bootstrapvalidator/pull/532): Add imo validator, thanks to [@troymccabe](https://github.com/troymccabe)
 * [#510](https://github.com/nghuuphuoc/bootstrapvalidator/pull/510), [#646](https://github.com/nghuuphuoc/bootstrapvalidator/pull/646): Add French [phone number](http://bootstrapvalidator.com/validators/phone/) validator, thanks to [@dlucazeau](https://github.com/dlucazeau)
@@ -37,7 +37,6 @@ __New features__
 * [#650](https://github.com/nghuuphuoc/bootstrapvalidator/pull/650): Add Brazilian [VAT](http://bootstrapvalidator.com/validators/vat/) number validator, thanks to [@fhferreira](https://github.com/fhferreira)
 
 __Improvements__
-
 * [#502](https://github.com/nghuuphuoc/bootstrapvalidator/pull/502): Allowing sites without TLD to pass URI validation, thanks to [@troymccabe](https://github.com/troymccabe)
 * [#549](https://github.com/nghuuphuoc/bootstrapvalidator/pull/549), [#600](https://github.com/nghuuphuoc/bootstrapvalidator/pull/600): Change the CSS/JS path in ```demo/remote.html``` and ```demo/message.html```, thanks to [@leegtang](https://github.com/leegtang), [@Arkni](https://github.com/Arkni)
 * [#604](https://github.com/nghuuphuoc/bootstrapvalidator/pull/604): Fix the ```demo/date.html``` and ```demo/tab.html``` examples, thanks to [@Arkni](https://github.com/Arkni)
@@ -48,7 +47,6 @@ __Improvements__
 * [#698](https://github.com/nghuuphuoc/bootstrapvalidator/issues/698): Ignore type checking if the file type is empty
 
 __Bug Fixes__
-
 * [#284](https://github.com/nghuuphuoc/bootstrapvalidator/issues/284), [#294](https://github.com/nghuuphuoc/bootstrapvalidator/issues/294), [#441](https://github.com/nghuuphuoc/bootstrapvalidator/issues/441), [#516](https://github.com/nghuuphuoc/bootstrapvalidator/issues/516): The HTML 5 ```<input type="number" />``` input allows to input non-digits characters
 * [#548](https://github.com/nghuuphuoc/bootstrapvalidator/issues/548): Fix the issue when using [different](http://bootstrapvalidator.com/validators/different/) validator to compare with not existing field
 * [#550](https://github.com/nghuuphuoc/bootstrapvalidator/issues/550), [#551](https://github.com/nghuuphuoc/bootstrapvalidator/pull/551): Cannot validate against both ipv4 and ipv6 at the same time, thanks to [@beeglebug](https://github.com/beeglebug)
@@ -60,7 +58,6 @@ __Bug Fixes__
 * [#700](https://github.com/nghuuphuoc/bootstrapvalidator/issues/700): The [between](http://bootstrapvalidator.com/validators/between/), [greaterThan](http://bootstrapvalidator.com/validators/greaterThan/), [lessThan](http://bootstrapvalidator.com/validators/lessThan/) validators accept param which isn't number
 
 __Language Packages__
-
 * [#400](https://github.com/nghuuphuoc/bootstrapvalidator/pull/400): Italian language package, thanks to [@maramazza](https://github.com/maramazza)
 * [#503](https://github.com/nghuuphuoc/bootstrapvalidator/pull/503): French language package, thanks to [@dlucazeau](https://github.com/dlucazeau)
 * [#505](https://github.com/nghuuphuoc/bootstrapvalidator/pull/505): Czech language package, thanks to [@AdwinTrave](https://github.com/AdwinTrave)

+ 1 - 0
CONTRIBUTORS.md

@@ -66,6 +66,7 @@ I would like to give big thanks to the following contributors:
 * [@tiagofontella](https://github.com/tiagofontella)
 * [@tomByrer](https://github.com/tomByrer)
 * [@troymccabe](https://github.com/troymccabe)
+* [@tsuyoshifujii](https://github.com/tsuyoshifujii)
 * [@tureki](https://github.com/tureki)
 * [@ulsa](https://github.com/ulsa)
 * [@vadail](https://github.com/vadail)

+ 1 - 1
dist/css/bootstrapValidator.min.css

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-08-24 8:33:39 PM
+ * @version     v0.5.2-dev, built on 2014-08-25 12:41:21 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-08-24 8:33:39 PM
+ * @version     v0.5.2-dev, built on 2014-08-25 12:41:21 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 1 - 1
dist/js/bootstrapValidator.min.js

@@ -2,7 +2,7 @@
  * BootstrapValidator (http://bootstrapvalidator.com)
  * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
  *
- * @version     v0.5.2-dev, built on 2014-08-24 8:33:39 PM
+ * @version     v0.5.2-dev, built on 2014-08-25 12:41:21 PM
  * @author      https://twitter.com/nghuuphuoc
  * @copyright   (c) 2013 - 2014 Nguyen Huu Phuoc
  * @license     MIT

+ 342 - 0
dist/js/language/ja_JP.js

@@ -0,0 +1,342 @@
+(function($) {
+    /**
+     * Japanese language package
+     * Translated by @tsuyoshifujii
+     */
+    $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
+        base64: {
+            'default': '有効なBase64エンコードを入力してください'
+        },
+        between: {
+            'default': '%sから%sの間で入力してください',
+            notInclusive: '厳密に%sから%sの間で入力してください'
+        },
+        callback: {
+            'default': '有効な値を入力してください'
+        },
+        choice: {
+            'default': '有効な値を入力してください',
+            less: '最低でも%sを選択してください',
+            more: '最大でも%sを選択してください',
+            between: '%s - %s で選択してください'
+        },
+        creditCard: {
+            'default': '有効なクレジットカード番号を入力してください'
+        },
+        cusip: {
+            'default': '有効なCUSIP番号を入力してください'
+        },
+        cvv: {
+            'default': '有効なCVV番号を入力してください'
+        },
+        date: {
+            'default': '有効な日付を入力してください。'
+        },
+        different: {
+            'default': '異なる値を入力してください'
+        },
+        digits: {
+             'default': '数字のみで入力してください'
+        },
+        ean: {
+            'default': '有効なEANコードを入力してください'
+        },
+        emailAddress: {
+            'default': '有効なメールアドレスを入力してください'
+        },
+        file: {
+            'default': '有効なファイルを選択してください'
+        },
+        greaterThan: {
+            'default': '%sより大きい値を入力してください',
+            notInclusive: '%sより大きい値を入力してください'
+        },
+        grid: {
+            'default': '有効なGRIdコードを入力してください'
+        },
+        hex: {
+            'default': '有効な16進数を入力してください。'
+        },
+        hexColor: {
+            'default': '有効なカラーコード(RGB 16進数)を入力してください'
+        },
+        iban: {
+            'default': '有効なIBANコードを入力してください',
+            countryNotSupported: 'カントリーコード%sはサポートされていません',
+            country: '有効な%sのIBANコードを入力してください',
+            countries: {
+                AD: 'アンドラ',
+                AE: 'アラブ首長国連邦',
+                AL: 'アルバニア',
+                AO: 'アンゴラ',
+                AT: 'オーストリア',
+                AZ: 'アゼルバイジャン',
+                BA: 'ボスニア·ヘルツェゴビナ',
+                BE: 'ベルギー',
+                BF: 'ブルキナファソ',
+                BG: 'ブルガリア',
+                BH: 'バーレーン',
+                BI: 'ブルンジ',
+                BJ: 'ベナン',
+                BR: 'ブラジル',
+                CH: 'スイス',
+                CI: '象牙海岸',
+                CM: 'カメルーン',
+                CR: 'コスタリカ',
+                CV: 'カーボベルデ',
+                CY: 'キプロス',
+                CZ: 'チェコ共和国',
+                DE: 'ドイツ',
+                DK: 'デンマーク',
+                DO: 'ドミニカ共和国',
+                DZ: 'アルジェリア',
+                EE: 'エストニア',
+                ES: 'スペイン',
+                FI: 'フィンランド',
+                FO: 'フェロー諸島',
+                FR: 'フランス',
+                GB: 'イギリス',
+                GE: 'グルジア',
+                GI: 'ジブラルタル',
+                GL: 'グリーンランド',
+                GR: 'ギリシャ',
+                GT: 'グアテマラ',
+                HR: 'クロアチア',
+                HU: 'ハンガリー',
+                IE: 'アイルランド',
+                IL: 'イスラエル',
+                IR: 'イラン',
+                IS: 'アイスランド',
+                IT: 'イタリア',
+                JO: 'ヨルダン',
+                KW: 'クウェート',
+                KZ: 'カザフスタン',
+                LB: 'レバノン',
+                LI: 'リヒテンシュタイン',
+                LT: 'リトアニア',
+                LU: 'ルクセンブルグ',
+                LV: 'ラトビア',
+                MC: 'モナコ',
+                MD: 'モルドバ',
+                ME: 'モンテネグロ',
+                MG: 'マダガスカル',
+                MK: 'マケドニア',
+                ML: 'マリ',
+                MR: 'モーリタニア',
+                MT: 'マルタ',
+                MU: 'モーリシャス',
+                MZ: 'モザンビーク',
+                NL: 'オランダ',
+                NO: 'ノルウェー',
+                PK: 'パキスタン',
+                PL: 'ポーランド',
+                PS: 'パレスチナ',
+                PT: 'ポルトガル',
+                QA: 'カタール',
+                RO: 'ルーマニア',
+                RS: 'セルビア',
+                SA: 'サウジアラビア',
+                SE: 'スウェーデン',
+                SI: 'スロベニア',
+                SK: 'スロバキア',
+                SM: 'サン·マリノ',
+                SN: 'セネガル',
+                TN: 'チュニジア',
+                TR: 'トルコ',
+                VG: '英領バージン諸島'
+            }
+        },
+        id: {
+            'default': '有効なIDを入力してください',
+            countryNotSupported: 'カントリーコード%sはサポートされていません',
+            country: '有効な%sのIDを入力してください',
+            countries: {
+                BA: 'スニア·ヘルツェゴビナ',
+                BG: 'ブルガリア',
+                BR: 'ブラジル',
+                CH: 'スイス',
+                CL: 'チリ',
+                CZ: 'チェコ',
+                DK: 'デンマーク',
+                EE: 'エストニア',
+                ES: 'スペイン',
+                FI: 'フィンランド',
+                HR: 'クロアチア',
+                IE: 'アイルランド',
+                IS: 'アイスランド',
+                LT: 'リトアニア',
+                LV: 'ラトビア',
+                ME: 'モンテネグロ',
+                MK: 'マケドニア',
+                NL: 'オランダ',
+                RO: 'ルーマニア',
+                RS: 'セルビア',
+                SE: 'スウェーデン',
+                SI: 'スロベニア',
+                SK: 'スロバキア',
+                SM: 'サン·マリノ',
+                ZA: '南アフリカ'
+            }
+        },
+        identical: {
+            'default': '同じ値を入力してください'
+        },
+        imei: {
+            'default': '有効なIMEIを入力してください'
+        },
+        imo: {
+            'default': '有効なIMOを入力してください'
+        },
+        integer: {
+            'default': '有効な数値を入力してください'
+        },
+        ip: {
+            'default': '有効なIPアドレスを入力してください',
+            ipv4: '有効なIPv4アドレスを入力してください',
+            ipv6: '有効なIPv6アドレスを入力してください'
+        },
+        isbn: {
+            'default': '有効なISBN番号を入力してください'
+        },
+        isin: {
+            'default': '有効なISIN番号を入力してください'
+        },
+        ismn: {
+            'default': '有効なISMN番号を入力してください'
+        },
+        issn: {
+            'default': '有効なISSN番号を入力してください'
+        },
+        lessThan: {
+            'default': '%s未満の値を入力してください',
+            notInclusive: '%s未満の値を入力してください'
+        },
+        mac: {
+            'default': '有効なMACアドレスを入力してください'
+        },
+        meid: {
+            'default': '有効なMEID番号を入力してください'
+        },
+        notEmpty: {
+            'default': '値を入力してください'
+        },
+        numeric: {
+            'default': '有効な浮動小数点数値を入力してください。'
+        },
+        phone: {
+            'default': '有効な電話番号を入力してください',
+            countryNotSupported: 'カントリーコード%sはサポートされていません',
+            country: '有効な%sの電話番号を入力してください',
+            countries: {
+                BR: 'ブラジル',
+                ES: 'スペイン',
+                FR: 'フランス',
+                GB: 'イギリス',
+                MA: 'モロッコ',
+                PK: 'パキスタン',
+                US: 'アメリカ'
+            }
+        },
+        regexp: {
+            'default': '正規表現に一致する値を入力してください'
+        },
+        remote: {
+            'default': '有効な値を入力してください。'
+        },
+        rtn: {
+            'default': '有効なRTN番号を入力してください'
+        },
+        sedol: {
+            'default': '有効なSEDOL番号を入力してください'
+        },
+        siren: {
+            'default': '有効なSIREN番号を入力してください'
+        },
+        siret: {
+            'default': '有効なSIRET番号を入力してください'
+        },
+        step: {
+            'default': '%sの有効なステップを入力してください'
+        },
+        stringCase: {
+            'default': '小文字のみで入力してください',
+            upper: '大文字のみで入力してください'
+        },
+        stringLength: {
+            'default': '有効な長さの値を入力してください',
+            less: '%s文字未満で入力してください',
+            more: '%s文字より大きく入力してください',
+            between: '%s文字から%s文字の間で入力してください'
+        },
+        uri: {
+            'default': '有効なURIを入力してください。'
+        },
+        uuid: {
+            'default': '有効なUUIDを入力してください',
+            version: '有効なバージョン%s UUIDを入力してください'
+        },
+        vat: {
+            'default': '有効なVAT番号を入力してください',
+            countryNotSupported: 'カントリーコード%sはサポートされていません',
+            country: '有効な%sのVAT番号を入力してください',
+            countries: {
+                AT: 'オーストリア',
+                BE: 'ベルギー',
+                BG: 'ブルガリア',
+                BR: 'ブラジル',
+                CH: 'スイス',
+                CY: 'キプロス等',
+                CZ: 'チェコ',
+                DE: 'ドイツ',
+                DK: 'デンマーク',
+                EE: 'エストニア',
+                ES: 'スペイン',
+                FI: 'フィンランド',
+                FR: 'フランス',
+                GB: 'イギリス',
+                GR: 'ギリシャ',
+                EL: 'ギリシャ',
+                HU: 'ハンガリー',
+                HR: 'クロアチア',
+                IE: 'アイルランド',
+                IS: 'アイスランド',
+                IT: 'イタリア',
+                LT: 'リトアニア',
+                LU: 'ルクセンブルグ',
+                LV: 'ラトビア',
+                MT: 'マルタ',
+                NL: 'オランダ',
+                NO: 'ノルウェー',
+                PL: 'ポーランド',
+                PT: 'ポルトガル',
+                RO: 'ルーマニア',
+                RU: 'ロシア',
+                RS: 'セルビア',
+                SE: 'スウェーデン',
+                SI: 'スロベニア',
+                SK: 'スロバキア',
+                ZA: '南アフリカ'
+            }
+        },
+        vin: {
+            'default': '有効なVIN番号を入力してください'
+        },
+        zipCode: {
+            'default': '有効な郵便番号を入力してください',
+            countryNotSupported: 'カントリーコード%sはサポートされていません',
+            country: '有効な%sを入力してください',
+            countries: {
+                BR: 'ブラジルの郵便番号',
+                CA: 'カナダの郵便番号',
+                DK: 'デンマークの郵便番号',
+                GB: 'イギリスの郵便番号',
+                IT: 'イタリアの郵便番号',
+                MA: 'モロッコの郵便番号',
+                NL: 'オランダの郵便番号',
+                SE: 'スイスの郵便番号',
+                SG: 'シンガポールの郵便番号',
+                US: 'アメリカの郵便番号'
+            }
+        }
+    });
+}(window.jQuery));

+ 0 - 1
src/js/language/ja_JP.js

@@ -340,4 +340,3 @@
         }
     });
 }(window.jQuery));
-