twitter_cldr 1.9.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +7 -0
- data/History.txt +11 -0
- data/README.md +93 -13
- data/Rakefile +27 -6
- data/lib/twitter_cldr/formatters.rb +15 -12
- data/lib/twitter_cldr/formatters/base.rb +1 -1
- data/lib/twitter_cldr/formatters/calendars/datetime_formatter.rb +18 -3
- data/lib/twitter_cldr/formatters/calendars/timespan_formatter.rb +24 -26
- data/lib/twitter_cldr/formatters/numbers/abbreviated/abbreviated_number_formatter.rb +47 -0
- data/lib/twitter_cldr/formatters/numbers/abbreviated/long_decimal_formatter.rb +18 -0
- data/lib/twitter_cldr/formatters/numbers/abbreviated/short_decimal_formatter.rb +18 -0
- data/lib/twitter_cldr/formatters/numbers/currency_formatter.rb +22 -17
- data/lib/twitter_cldr/formatters/numbers/decimal_formatter.rb +0 -9
- data/lib/twitter_cldr/formatters/numbers/helpers/base.rb +1 -1
- data/lib/twitter_cldr/formatters/numbers/number_formatter.rb +25 -10
- data/lib/twitter_cldr/formatters/numbers/percent_formatter.rb +9 -6
- data/lib/twitter_cldr/localized/localized_datetime.rb +6 -2
- data/lib/twitter_cldr/localized/localized_number.rb +9 -3
- data/lib/twitter_cldr/localized/localized_timespan.rb +1 -1
- data/lib/twitter_cldr/resources.rb +13 -12
- data/lib/twitter_cldr/resources/custom_locales_resources_importer.rb +1 -1
- data/lib/twitter_cldr/resources/download.rb +1 -1
- data/lib/twitter_cldr/resources/locales_resources_importer.rb +10 -6
- data/lib/twitter_cldr/shared/bidi.rb +27 -27
- data/lib/twitter_cldr/shared/currencies.rb +20 -13
- data/lib/twitter_cldr/tokenizers.rb +10 -9
- data/lib/twitter_cldr/tokenizers/base.rb +33 -21
- data/lib/twitter_cldr/tokenizers/calendars/additional_date_format_selector.rb +86 -0
- data/lib/twitter_cldr/tokenizers/calendars/date_tokenizer.rb +20 -11
- data/lib/twitter_cldr/tokenizers/calendars/datetime_tokenizer.rb +50 -13
- data/lib/twitter_cldr/tokenizers/calendars/time_tokenizer.rb +19 -10
- data/lib/twitter_cldr/tokenizers/calendars/timespan_tokenizer.rb +32 -32
- data/lib/twitter_cldr/tokenizers/numbers/number_tokenizer.rb +45 -22
- data/lib/twitter_cldr/utils.rb +16 -1
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/collation/tailoring/af.yml +1 -0
- data/resources/collation/tailoring/ar.yml +3 -2
- data/resources/collation/tailoring/be.yml +7 -0
- data/resources/collation/tailoring/bg.yml +5 -0
- data/resources/collation/tailoring/bn.yml +9 -0
- data/resources/collation/tailoring/ca.yml +3 -2
- data/resources/collation/tailoring/cs.yml +3 -2
- data/resources/collation/tailoring/cy.yml +51 -0
- data/resources/collation/tailoring/da.yml +3 -2
- data/resources/collation/tailoring/de.yml +1 -0
- data/resources/collation/tailoring/el.yml +1 -0
- data/resources/collation/tailoring/en.yml +1 -0
- data/resources/collation/tailoring/es.yml +3 -2
- data/resources/collation/tailoring/eu.yml +1 -0
- data/resources/collation/tailoring/fa.yml +3 -2
- data/resources/collation/tailoring/fi.yml +3 -2
- data/resources/collation/tailoring/fil.yml +3 -2
- data/resources/collation/tailoring/fr.yml +1 -0
- data/resources/collation/tailoring/ga.yml +5 -0
- data/resources/collation/tailoring/gl.yml +5 -0
- data/resources/collation/tailoring/he.yml +1 -0
- data/resources/collation/tailoring/hi.yml +3 -2
- data/resources/collation/tailoring/hu.yml +3 -2
- data/resources/collation/tailoring/id.yml +1 -0
- data/resources/collation/tailoring/it.yml +1 -0
- data/resources/collation/tailoring/ja.yml +107 -54
- data/resources/collation/tailoring/ko.yml +3 -2
- data/resources/collation/tailoring/lv.yml +35 -0
- data/resources/collation/tailoring/ms.yml +1 -0
- data/resources/collation/tailoring/nb.yml +3 -2
- data/resources/collation/tailoring/nl.yml +1 -0
- data/resources/collation/tailoring/pl.yml +3 -2
- data/resources/collation/tailoring/pt.yml +1 -0
- data/resources/collation/tailoring/ro.yml +31 -0
- data/resources/collation/tailoring/ru.yml +1 -0
- data/resources/collation/tailoring/sk.yml +35 -0
- data/resources/collation/tailoring/sq.yml +65 -0
- data/resources/collation/tailoring/sr.yml +5 -0
- data/resources/collation/tailoring/sv.yml +3 -2
- data/resources/collation/tailoring/ta.yml +57 -0
- data/resources/collation/tailoring/th.yml +3 -2
- data/resources/collation/tailoring/tr.yml +3 -2
- data/resources/collation/tailoring/uk.yml +3 -2
- data/resources/collation/tailoring/ur.yml +3 -2
- data/resources/collation/tailoring/zh-Hant.yml +3 -2
- data/resources/collation/tailoring/zh.yml +3 -2
- data/resources/collation/tries/be.dump +0 -0
- data/resources/collation/tries/bg.dump +0 -0
- data/resources/collation/tries/bn.dump +0 -0
- data/resources/collation/tries/cy.dump +0 -0
- data/resources/collation/tries/ga.dump +0 -0
- data/resources/collation/tries/gl.dump +0 -0
- data/resources/collation/tries/lv.dump +0 -0
- data/resources/collation/tries/ro.dump +0 -0
- data/resources/collation/tries/sk.dump +0 -0
- data/resources/collation/tries/sq.dump +0 -0
- data/resources/collation/tries/sr.dump +0 -0
- data/resources/collation/tries/ta.dump +0 -0
- data/resources/custom/locales/ar/units.yml +6 -6
- data/resources/custom/locales/be/units.yml +27 -0
- data/resources/custom/locales/bg/units.yml +19 -0
- data/resources/custom/locales/bn/units.yml +7 -0
- data/resources/custom/locales/cs/units.yml +3 -3
- data/resources/custom/locales/cy/units.yml +35 -0
- data/resources/custom/locales/fil/units.yml +2 -2
- data/resources/custom/locales/ga/units.yml +24 -0
- data/resources/custom/locales/gl/units.yml +19 -0
- data/resources/custom/locales/hu/plurals.yml +3 -0
- data/resources/custom/locales/hu/units.yml +4 -0
- data/resources/custom/locales/lv/units.yml +23 -0
- data/resources/custom/locales/ms/units.yml +1 -1
- data/resources/custom/locales/ro/units.yml +23 -0
- data/resources/custom/locales/sk/units.yml +23 -0
- data/resources/custom/locales/sr/units.yml +27 -0
- data/resources/custom/locales/ta/units.yml +11 -0
- data/resources/custom/locales/th/calendars.yml +14 -0
- data/resources/locales/af/calendars.yml +56 -0
- data/resources/locales/af/currencies.yml +358 -0
- data/resources/locales/af/languages.yml +23 -3
- data/resources/locales/af/numbers.yml +22 -8
- data/resources/locales/af/units.yml +26 -54
- data/resources/locales/ar/calendars.yml +99 -6
- data/resources/locales/ar/currencies.yml +1491 -0
- data/resources/locales/ar/languages.yml +33 -6
- data/resources/locales/ar/numbers.yml +27 -14
- data/resources/locales/ar/units.yml +31 -31
- data/resources/locales/be/calendars.yml +229 -0
- data/resources/locales/be/currencies.yml +66 -0
- data/resources/locales/be/languages.yml +149 -0
- data/resources/locales/be/layout.yml +4 -0
- data/resources/locales/be/lists.yml +7 -0
- data/resources/locales/be/numbers.yml +43 -0
- data/resources/locales/be/plurals.yml +5 -0
- data/resources/locales/be/units.yml +87 -0
- data/resources/locales/bg/calendars.yml +220 -0
- data/resources/locales/bg/currencies.yml +773 -0
- data/resources/locales/bg/languages.yml +513 -0
- data/resources/locales/bg/layout.yml +4 -0
- data/resources/locales/bg/lists.yml +7 -0
- data/resources/locales/bg/numbers.yml +57 -0
- data/resources/locales/bg/plurals.yml +3 -0
- data/resources/locales/bg/units.yml +108 -0
- data/resources/locales/bn/calendars.yml +205 -0
- data/resources/locales/bn/currencies.yml +564 -0
- data/resources/locales/bn/languages.yml +513 -0
- data/resources/locales/bn/layout.yml +4 -0
- data/resources/locales/bn/lists.yml +7 -0
- data/resources/locales/bn/numbers.yml +57 -0
- data/resources/locales/bn/plurals.yml +3 -0
- data/resources/locales/bn/units.yml +108 -0
- data/resources/locales/ca/calendars.yml +70 -21
- data/resources/locales/ca/currencies.yml +904 -0
- data/resources/locales/ca/languages.yml +70 -5
- data/resources/locales/ca/numbers.yml +19 -6
- data/resources/locales/ca/units.yml +0 -28
- data/resources/locales/cs/calendars.yml +73 -27
- data/resources/locales/cs/currencies.yml +1063 -0
- data/resources/locales/cs/languages.yml +113 -31
- data/resources/locales/cs/numbers.yml +17 -4
- data/resources/locales/cs/units.yml +0 -28
- data/resources/locales/cy/calendars.yml +266 -0
- data/resources/locales/cy/currencies.yml +54 -0
- data/resources/locales/cy/languages.yml +92 -0
- data/resources/locales/cy/layout.yml +4 -0
- data/resources/locales/cy/lists.yml +7 -0
- data/resources/locales/cy/numbers.yml +49 -0
- data/resources/locales/cy/plurals.yml +4 -0
- data/resources/locales/cy/units.yml +73 -0
- data/resources/locales/da/calendars.yml +117 -16
- data/resources/locales/da/currencies.yml +814 -0
- data/resources/locales/da/languages.yml +66 -5
- data/resources/locales/da/numbers.yml +16 -3
- data/resources/locales/da/units.yml +21 -35
- data/resources/locales/de/calendars.yml +115 -17
- data/resources/locales/de/currencies.yml +843 -0
- data/resources/locales/de/languages.yml +5 -3
- data/resources/locales/de/numbers.yml +18 -5
- data/resources/locales/de/units.yml +0 -28
- data/resources/locales/el/calendars.yml +61 -8
- data/resources/locales/el/currencies.yml +866 -0
- data/resources/locales/el/languages.yml +61 -5
- data/resources/locales/el/numbers.yml +18 -5
- data/resources/locales/el/units.yml +7 -42
- data/resources/locales/en/calendars.yml +43 -4
- data/resources/locales/en/currencies.yml +912 -0
- data/resources/locales/en/languages.yml +26 -6
- data/resources/locales/en/numbers.yml +17 -4
- data/resources/locales/es/calendars.yml +60 -0
- data/resources/locales/es/currencies.yml +820 -0
- data/resources/locales/es/languages.yml +66 -1
- data/resources/locales/es/numbers.yml +20 -7
- data/resources/locales/es/units.yml +0 -28
- data/resources/locales/eu/calendars.yml +43 -2
- data/resources/locales/eu/currencies.yml +378 -0
- data/resources/locales/eu/languages.yml +29 -13
- data/resources/locales/eu/numbers.yml +17 -4
- data/resources/locales/eu/units.yml +22 -43
- data/resources/locales/fa/calendars.yml +57 -0
- data/resources/locales/fa/currencies.yml +449 -0
- data/resources/locales/fa/languages.yml +8 -3
- data/resources/locales/fa/numbers.yml +20 -7
- data/resources/locales/fa/units.yml +0 -42
- data/resources/locales/fi/calendars.yml +49 -1
- data/resources/locales/fi/currencies.yml +903 -0
- data/resources/locales/fi/languages.yml +58 -2
- data/resources/locales/fi/numbers.yml +25 -12
- data/resources/locales/fi/units.yml +0 -28
- data/resources/locales/fil/calendars.yml +51 -0
- data/resources/locales/fil/currencies.yml +357 -0
- data/resources/locales/fil/languages.yml +25 -8
- data/resources/locales/fil/numbers.yml +18 -5
- data/resources/locales/fil/units.yml +14 -28
- data/resources/locales/fr/calendars.yml +114 -12
- data/resources/locales/fr/currencies.yml +884 -0
- data/resources/locales/fr/languages.yml +43 -9
- data/resources/locales/fr/numbers.yml +22 -9
- data/resources/locales/fr/units.yml +2 -30
- data/resources/locales/ga/calendars.yml +187 -0
- data/resources/locales/ga/currencies.yml +513 -0
- data/resources/locales/ga/languages.yml +147 -0
- data/resources/locales/ga/layout.yml +4 -0
- data/resources/locales/ga/lists.yml +7 -0
- data/resources/locales/ga/numbers.yml +43 -0
- data/resources/locales/ga/plurals.yml +4 -0
- data/resources/locales/ga/units.yml +66 -0
- data/resources/locales/gl/calendars.yml +216 -0
- data/resources/locales/gl/currencies.yml +476 -0
- data/resources/locales/gl/languages.yml +213 -0
- data/resources/locales/gl/layout.yml +4 -0
- data/resources/locales/gl/lists.yml +7 -0
- data/resources/locales/gl/numbers.yml +57 -0
- data/resources/locales/gl/plurals.yml +3 -0
- data/resources/locales/gl/units.yml +108 -0
- data/resources/locales/he/calendars.yml +70 -18
- data/resources/locales/he/currencies.yml +497 -0
- data/resources/locales/he/languages.yml +301 -7
- data/resources/locales/he/lists.yml +2 -2
- data/resources/locales/he/numbers.yml +23 -8
- data/resources/locales/he/plurals.yml +3 -2
- data/resources/locales/he/units.yml +72 -30
- data/resources/locales/hi/calendars.yml +54 -1
- data/resources/locales/hi/currencies.yml +388 -0
- data/resources/locales/hi/languages.yml +2 -0
- data/resources/locales/hi/numbers.yml +21 -8
- data/resources/locales/hi/units.yml +15 -29
- data/resources/locales/hu/calendars.yml +52 -5
- data/resources/locales/hu/currencies.yml +640 -0
- data/resources/locales/hu/languages.yml +60 -4
- data/resources/locales/hu/numbers.yml +25 -12
- data/resources/locales/hu/units.yml +1 -29
- data/resources/locales/id/calendars.yml +125 -21
- data/resources/locales/id/currencies.yml +603 -0
- data/resources/locales/id/languages.yml +113 -51
- data/resources/locales/id/numbers.yml +16 -3
- data/resources/locales/id/units.yml +0 -28
- data/resources/locales/it/calendars.yml +59 -6
- data/resources/locales/it/currencies.yml +722 -0
- data/resources/locales/it/languages.yml +77 -5
- data/resources/locales/it/numbers.yml +22 -9
- data/resources/locales/it/units.yml +0 -14
- data/resources/locales/ja/calendars.yml +55 -5
- data/resources/locales/ja/currencies.yml +602 -0
- data/resources/locales/ja/languages.yml +103 -43
- data/resources/locales/ja/numbers.yml +18 -5
- data/resources/locales/ja/units.yml +6 -34
- data/resources/locales/ko/calendars.yml +50 -0
- data/resources/locales/ko/currencies.yml +596 -0
- data/resources/locales/ko/languages.yml +75 -8
- data/resources/locales/ko/numbers.yml +17 -4
- data/resources/locales/ko/units.yml +0 -28
- data/resources/locales/lv/calendars.yml +275 -0
- data/resources/locales/lv/currencies.yml +765 -0
- data/resources/locales/lv/languages.yml +576 -0
- data/resources/locales/lv/layout.yml +4 -0
- data/resources/locales/lv/lists.yml +7 -0
- data/resources/locales/lv/numbers.yml +58 -0
- data/resources/locales/lv/plurals.yml +4 -0
- data/resources/locales/lv/units.yml +136 -0
- data/resources/locales/ms/calendars.yml +86 -4
- data/resources/locales/ms/currencies.yml +341 -0
- data/resources/locales/ms/languages.yml +25 -3
- data/resources/locales/ms/numbers.yml +19 -6
- data/resources/locales/ms/units.yml +0 -56
- data/resources/locales/nb/calendars.yml +48 -1
- data/resources/locales/nb/currencies.yml +846 -0
- data/resources/locales/nb/languages.yml +44 -2
- data/resources/locales/nb/numbers.yml +16 -3
- data/resources/locales/nb/units.yml +6 -28
- data/resources/locales/nl/calendars.yml +110 -9
- data/resources/locales/nl/currencies.yml +640 -0
- data/resources/locales/nl/languages.yml +68 -8
- data/resources/locales/nl/numbers.yml +25 -12
- data/resources/locales/nl/units.yml +14 -28
- data/resources/locales/pl/calendars.yml +53 -6
- data/resources/locales/pl/currencies.yml +1100 -0
- data/resources/locales/pl/languages.yml +13 -6
- data/resources/locales/pl/lists.yml +2 -2
- data/resources/locales/pl/numbers.yml +18 -5
- data/resources/locales/pl/units.yml +51 -92
- data/resources/locales/pt/calendars.yml +121 -9
- data/resources/locales/pt/currencies.yml +904 -0
- data/resources/locales/pt/languages.yml +5 -3
- data/resources/locales/pt/numbers.yml +17 -4
- data/resources/locales/pt/units.yml +0 -28
- data/resources/locales/ro/calendars.yml +278 -0
- data/resources/locales/ro/currencies.yml +946 -0
- data/resources/locales/ro/languages.yml +576 -0
- data/resources/locales/ro/layout.yml +4 -0
- data/resources/locales/ro/lists.yml +7 -0
- data/resources/locales/ro/numbers.yml +58 -0
- data/resources/locales/ro/plurals.yml +3 -0
- data/resources/locales/ro/units.yml +136 -0
- data/resources/locales/ru/calendars.yml +72 -12
- data/resources/locales/ru/currencies.yml +1061 -0
- data/resources/locales/ru/languages.yml +51 -6
- data/resources/locales/ru/numbers.yml +21 -5
- data/resources/locales/ru/units.yml +0 -28
- data/resources/locales/sk/calendars.yml +275 -0
- data/resources/locales/sk/currencies.yml +713 -0
- data/resources/locales/sk/languages.yml +576 -0
- data/resources/locales/sk/layout.yml +4 -0
- data/resources/locales/sk/lists.yml +7 -0
- data/resources/locales/sk/numbers.yml +58 -0
- data/resources/locales/sk/plurals.yml +3 -0
- data/resources/locales/sk/units.yml +136 -0
- data/resources/locales/sq/calendars.yml +188 -0
- data/resources/locales/sq/currencies.yml +56 -0
- data/resources/locales/sq/languages.yml +17 -0
- data/resources/locales/sq/layout.yml +4 -0
- data/resources/locales/sq/lists.yml +7 -0
- data/resources/locales/sq/numbers.yml +43 -0
- data/resources/locales/sq/plurals.yml +3 -0
- data/resources/locales/sq/units.yml +73 -0
- data/resources/locales/sr/calendars.yml +285 -0
- data/resources/locales/sr/currencies.yml +1494 -0
- data/resources/locales/sr/languages.yml +513 -0
- data/resources/locales/sr/layout.yml +4 -0
- data/resources/locales/sr/lists.yml +7 -0
- data/resources/locales/sr/numbers.yml +59 -0
- data/resources/locales/sr/plurals.yml +5 -0
- data/resources/locales/sr/units.yml +164 -0
- data/resources/locales/sv/calendars.yml +59 -1
- data/resources/locales/sv/currencies.yml +919 -0
- data/resources/locales/sv/languages.yml +47 -2
- data/resources/locales/sv/numbers.yml +27 -12
- data/resources/locales/sv/units.yml +4 -32
- data/resources/locales/ta/calendars.yml +264 -0
- data/resources/locales/ta/currencies.yml +346 -0
- data/resources/locales/ta/languages.yml +512 -0
- data/resources/locales/ta/layout.yml +4 -0
- data/resources/locales/ta/lists.yml +7 -0
- data/resources/locales/ta/numbers.yml +57 -0
- data/resources/locales/ta/plurals.yml +3 -0
- data/resources/locales/ta/units.yml +108 -0
- data/resources/locales/th/calendars.yml +125 -27
- data/resources/locales/th/currencies.yml +602 -0
- data/resources/locales/th/languages.yml +70 -5
- data/resources/locales/th/numbers.yml +24 -11
- data/resources/locales/th/units.yml +0 -28
- data/resources/locales/tr/calendars.yml +62 -12
- data/resources/locales/tr/currencies.yml +571 -0
- data/resources/locales/tr/languages.yml +94 -29
- data/resources/locales/tr/numbers.yml +19 -6
- data/resources/locales/tr/units.yml +1 -29
- data/resources/locales/uk/calendars.yml +52 -0
- data/resources/locales/uk/currencies.yml +799 -0
- data/resources/locales/uk/languages.yml +57 -2
- data/resources/locales/uk/numbers.yml +18 -5
- data/resources/locales/uk/units.yml +0 -28
- data/resources/locales/ur/calendars.yml +96 -32
- data/resources/locales/ur/currencies.yml +360 -0
- data/resources/locales/ur/languages.yml +49 -32
- data/resources/locales/ur/numbers.yml +13 -13
- data/resources/locales/ur/units.yml +28 -56
- data/resources/locales/zh-Hant/calendars.yml +59 -1
- data/resources/locales/zh-Hant/currencies.yml +602 -0
- data/resources/locales/zh-Hant/languages.yml +74 -8
- data/resources/locales/zh-Hant/numbers.yml +17 -4
- data/resources/locales/zh-Hant/units.yml +0 -28
- data/resources/locales/zh/calendars.yml +95 -35
- data/resources/locales/zh/currencies.yml +602 -0
- data/resources/locales/zh/languages.yml +116 -46
- data/resources/locales/zh/numbers.yml +20 -7
- data/resources/locales/zh/units.yml +6 -34
- data/resources/shared/currency_digits_and_rounding.yml +187 -0
- data/spec/bidi/bidi_spec.rb +1 -1
- data/spec/collation/tailoring_spec.rb +29 -25
- data/spec/formatters/calendars/datetime_formatter_spec.rb +50 -2
- data/spec/formatters/calendars/timespan_formatter_spec.rb +52 -8
- data/spec/formatters/numbers/abbreviated/abbreviated_number_formatter_spec.rb +81 -0
- data/spec/formatters/numbers/abbreviated/long_decimal_formatter_spec.rb +37 -0
- data/spec/formatters/numbers/abbreviated/short_decimal_formatter_spec.rb +37 -0
- data/spec/formatters/numbers/currency_formatter_spec.rb +10 -1
- data/spec/localized/localized_date_spec.rb +11 -11
- data/spec/localized/localized_datetime_spec.rb +27 -3
- data/spec/localized/localized_number_spec.rb +34 -6
- data/spec/localized/localized_time_spec.rb +1 -1
- data/spec/readme_spec.rb +24 -3
- data/spec/shared/currencies_spec.rb +7 -9
- data/spec/spec_helper.rb +7 -0
- data/spec/tokenizers/base_spec.rb +71 -21
- data/spec/tokenizers/calendars/additional_date_format_selector_spec.rb +131 -0
- data/spec/tokenizers/calendars/datetime_tokenizer_spec.rb +54 -27
- data/spec/tokenizers/calendars/time_tokenizer_spec.rb +16 -16
- data/spec/tokenizers/numbers/number_tokenizer_spec.rb +9 -21
- data/spec/utils/yaml/yaml_spec.rb +21 -16
- data/spec/utils_spec.rb +6 -2
- metadata +218 -37
@@ -13,13 +13,13 @@ describe DateTokenizer do
|
|
13
13
|
tokenizer = TimeTokenizer.new(:locale => :de)
|
14
14
|
got = tokenizer.tokens(:type => :full)
|
15
15
|
expected = [
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
{ :value => "HH", :type => :pattern },
|
17
|
+
{ :value => ":", :type => :plaintext },
|
18
|
+
{ :value => "mm", :type => :pattern },
|
19
|
+
{ :value => ":", :type => :plaintext },
|
20
|
+
{ :value => "ss", :type => :pattern },
|
21
|
+
{ :value => " ", :type => :plaintext },
|
22
|
+
{ :value => "zzzz", :type => :pattern }
|
23
23
|
]
|
24
24
|
check_token_list(got, expected)
|
25
25
|
end
|
@@ -28,15 +28,15 @@ describe DateTokenizer do
|
|
28
28
|
tokenizer = TimeTokenizer.new(:locale => :ko)
|
29
29
|
got = tokenizer.tokens(:type => :full)
|
30
30
|
expected = [
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
31
|
+
{ :value => "a", :type => :pattern },
|
32
|
+
{ :value => " ", :type => :plaintext },
|
33
|
+
{ :value => "h", :type => :pattern },
|
34
|
+
{ :value => "시 ", :type => :plaintext },
|
35
|
+
{ :value => "m", :type => :pattern },
|
36
|
+
{ :value => "분 ", :type => :plaintext },
|
37
|
+
{ :value => "s", :type => :pattern },
|
38
|
+
{ :value => "초 ", :type => :plaintext },
|
39
|
+
{ :value => "zzzz", :type => :pattern }
|
40
40
|
]
|
41
41
|
check_token_list(got, expected)
|
42
42
|
end
|
@@ -8,28 +8,16 @@ require 'spec_helper'
|
|
8
8
|
include TwitterCldr::Tokenizers
|
9
9
|
|
10
10
|
describe NumberTokenizer do
|
11
|
-
describe "#
|
12
|
-
it "chooses decimal as the default type if no other type is specified" do
|
13
|
-
NumberTokenizer.new.type.should == :decimal
|
14
|
-
NumberTokenizer.new(:type => :percent).type.should == :percent
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#full_path_for" do
|
11
|
+
describe "#full_path" do
|
19
12
|
it "should fill in the type and return the full path to the requested format" do
|
20
|
-
NumberTokenizer.new
|
13
|
+
tokenizer = NumberTokenizer.new
|
14
|
+
tokenizer.type = :default
|
15
|
+
tokenizer.format = :default
|
16
|
+
tokenizer.send(:full_path).should == [:numbers, :formats, :decimal, :patterns, :default]
|
21
17
|
end
|
22
18
|
end
|
23
19
|
|
24
20
|
describe "#tokens" do
|
25
|
-
it "ensures that positive and negative entries are created (as necessary)" do
|
26
|
-
tokenizer = NumberTokenizer.new(:locale => :tr)
|
27
|
-
tokenizer.tokens
|
28
|
-
root = tokenizer.resource[:numbers][:formats][:decimal][:patterns]
|
29
|
-
root.should include(:positive)
|
30
|
-
root.should include(:negative)
|
31
|
-
end
|
32
|
-
|
33
21
|
it "gets tokens for a latin language (i.e. Portuguese)" do
|
34
22
|
tokenizer = NumberTokenizer.new(:locale => :pt)
|
35
23
|
got = tokenizer.tokens
|
@@ -47,8 +35,8 @@ describe NumberTokenizer do
|
|
47
35
|
end
|
48
36
|
|
49
37
|
it "correctly parses suffixes (i.e. Russian currency)" do
|
50
|
-
tokenizer = NumberTokenizer.new(:locale => :ru
|
51
|
-
got = tokenizer.tokens
|
38
|
+
tokenizer = NumberTokenizer.new(:locale => :ru)
|
39
|
+
got = tokenizer.tokens(:type => :currency)
|
52
40
|
expected = [{ :value => "", :type => :pattern },
|
53
41
|
{ :value => "#,##0.00", :type => :pattern },
|
54
42
|
{ :value => " ¤", :type => :pattern }]
|
@@ -56,8 +44,8 @@ describe NumberTokenizer do
|
|
56
44
|
end
|
57
45
|
|
58
46
|
it "correctly parses prefixes (i.e. Italian currency)" do
|
59
|
-
tokenizer = NumberTokenizer.new(:locale => :it
|
60
|
-
got = tokenizer.tokens
|
47
|
+
tokenizer = NumberTokenizer.new(:locale => :it)
|
48
|
+
got = tokenizer.tokens(:type => :currency)
|
61
49
|
expected = [{ :value => "¤ ", :type => :pattern },
|
62
50
|
{ :value => "#,##0.00", :type => :pattern }]
|
63
51
|
check_token_list(got, expected)
|
@@ -7,30 +7,35 @@
|
|
7
7
|
# https://github.com/afunai/ya2yaml
|
8
8
|
|
9
9
|
# Copyright (c) 2006 Akira FUNAI <funai.akira@gmail.com>
|
10
|
-
#
|
11
|
-
# Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
-
# copy of this software and associated documentation files (the "Software"),
|
13
|
-
# to deal in the Software without restriction, including without limitation
|
14
|
-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
-
# and/or sell copies of the Software, and to permit persons to whom the
|
10
|
+
#
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
12
|
+
# copy of this software and associated documentation files (the "Software"),
|
13
|
+
# to deal in the Software without restriction, including without limitation
|
14
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
15
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
16
16
|
# Software is furnished to do so, subject to the following conditions:
|
17
|
-
#
|
18
|
-
# The above copyright notice and this permission notice shall be included in
|
17
|
+
#
|
18
|
+
# The above copyright notice and this permission notice shall be included in
|
19
19
|
# all copies or substantial portions of the Software.
|
20
|
-
#
|
21
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
24
|
-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
20
|
+
#
|
21
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
24
|
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
26
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
27
27
|
# DEALINGS IN THE SOFTWARE.
|
28
28
|
|
29
29
|
require 'spec_helper'
|
30
30
|
require 'yaml'
|
31
31
|
|
32
32
|
# Psych doesn't handle Unicode characters properly, have to use Syck instead.
|
33
|
-
|
33
|
+
if YAML.const_defined?(:ENGINE)
|
34
|
+
# Fix undefined method `syck_to_yaml' for class `Object' error on MRI 1.9.3.
|
35
|
+
# Target only MRI >= 1.9, because on other Rubies, e.g., JRuby, requiring 'syck' results in a LoadError.
|
36
|
+
require 'syck' if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby'
|
37
|
+
YAML::ENGINE.yamler = 'syck'
|
38
|
+
end
|
34
39
|
|
35
40
|
# There's an incompatibility in how ruby handles struct dumps
|
36
41
|
# between versions that's beyond our scope.
|
data/spec/utils_spec.rb
CHANGED
@@ -28,22 +28,26 @@ describe TwitterCldr::Utils do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
describe "#deep_merge!" do
|
31
|
+
describe "#deep_merge! and #deep_merge_hash" do
|
32
32
|
it "combines two non-nested hashes with different keys" do
|
33
33
|
first = { :foo => "bar" }
|
34
|
+
TwitterCldr::Utils.deep_merge_hash(first, { :bar => "baz" }).should == { :foo => "bar", :bar => "baz" }
|
34
35
|
TwitterCldr::Utils.deep_merge!(first, { :bar => "baz" }).should == { :foo => "bar", :bar => "baz" }
|
35
36
|
end
|
36
37
|
|
37
38
|
it "combines two non-nested hashes with the same keys" do
|
38
39
|
first = { :foo => "bar" }
|
40
|
+
TwitterCldr::Utils.deep_merge_hash(first, { :foo => "baz" }).should == { :foo => "baz" }
|
39
41
|
TwitterCldr::Utils.deep_merge!(first, { :foo => "baz" }).should == { :foo => "baz" }
|
40
42
|
end
|
41
43
|
|
42
44
|
it "combines two nested hashes" do
|
43
45
|
first = { :foo => "bar", :second => { :bar => "baz", :twitter => "rocks" } }
|
44
46
|
second = { :foo => "baz", :third => { :whassup => "cool" }, :second => { :twitter => "rules" } }
|
47
|
+
result = { :foo => "baz", :second => { :bar => "baz", :twitter => "rules" }, :third => { :whassup => "cool" } }
|
48
|
+
TwitterCldr::Utils.deep_merge_hash(first, second).should == result
|
45
49
|
TwitterCldr::Utils.deep_merge!(first, second)
|
46
|
-
first.should ==
|
50
|
+
first.should == result
|
47
51
|
end
|
48
52
|
|
49
53
|
it "replaces arrays with simple types" do
|
metadata
CHANGED
@@ -1,38 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_cldr
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
4
5
|
prerelease:
|
5
|
-
version: 1.9.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Cameron Dutro
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: json
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.1.9
|
24
22
|
type: :runtime
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.1.9
|
30
|
+
description: Ruby implementation of the ICU (International Components for Unicode)
|
31
|
+
that uses the Common Locale Data Repository to format dates, plurals, and more.
|
32
|
+
email:
|
28
33
|
- cdutro@twitter.com
|
29
34
|
executables: []
|
30
|
-
|
31
35
|
extensions: []
|
32
|
-
|
33
36
|
extra_rdoc_files: []
|
34
|
-
|
35
|
-
files:
|
37
|
+
files:
|
36
38
|
- lib/twitter_cldr/collation/collator.rb
|
37
39
|
- lib/twitter_cldr/collation/implicit_collation_elements.rb
|
38
40
|
- lib/twitter_cldr/collation/sort_key_builder.rb
|
@@ -48,6 +50,9 @@ files:
|
|
48
50
|
- lib/twitter_cldr/formatters/calendars/time_formatter.rb
|
49
51
|
- lib/twitter_cldr/formatters/calendars/timespan_formatter.rb
|
50
52
|
- lib/twitter_cldr/formatters/list_formatter.rb
|
53
|
+
- lib/twitter_cldr/formatters/numbers/abbreviated/abbreviated_number_formatter.rb
|
54
|
+
- lib/twitter_cldr/formatters/numbers/abbreviated/long_decimal_formatter.rb
|
55
|
+
- lib/twitter_cldr/formatters/numbers/abbreviated/short_decimal_formatter.rb
|
51
56
|
- lib/twitter_cldr/formatters/numbers/currency_formatter.rb
|
52
57
|
- lib/twitter_cldr/formatters/numbers/decimal_formatter.rb
|
53
58
|
- lib/twitter_cldr/formatters/numbers/helpers/base.rb
|
@@ -104,6 +109,7 @@ files:
|
|
104
109
|
- lib/twitter_cldr/shared/timezones.rb
|
105
110
|
- lib/twitter_cldr/shared.rb
|
106
111
|
- lib/twitter_cldr/tokenizers/base.rb
|
112
|
+
- lib/twitter_cldr/tokenizers/calendars/additional_date_format_selector.rb
|
107
113
|
- lib/twitter_cldr/tokenizers/calendars/date_tokenizer.rb
|
108
114
|
- lib/twitter_cldr/tokenizers/calendars/datetime_tokenizer.rb
|
109
115
|
- lib/twitter_cldr/tokenizers/calendars/time_tokenizer.rb
|
@@ -170,6 +176,9 @@ files:
|
|
170
176
|
- spec/formatters/calendars/datetime_formatter_spec.rb
|
171
177
|
- spec/formatters/calendars/timespan_formatter_spec.rb
|
172
178
|
- spec/formatters/list_formatter_spec.rb
|
179
|
+
- spec/formatters/numbers/abbreviated/abbreviated_number_formatter_spec.rb
|
180
|
+
- spec/formatters/numbers/abbreviated/long_decimal_formatter_spec.rb
|
181
|
+
- spec/formatters/numbers/abbreviated/short_decimal_formatter_spec.rb
|
173
182
|
- spec/formatters/numbers/currency_formatter_spec.rb
|
174
183
|
- spec/formatters/numbers/decimal_formatter_spec.rb
|
175
184
|
- spec/formatters/numbers/helpers/fraction_spec.rb
|
@@ -204,6 +213,7 @@ files:
|
|
204
213
|
- spec/shared/postal_codes_spec.rb
|
205
214
|
- spec/spec_helper.rb
|
206
215
|
- spec/tokenizers/base_spec.rb
|
216
|
+
- spec/tokenizers/calendars/additional_date_format_selector_spec.rb
|
207
217
|
- spec/tokenizers/calendars/date_tokenizer_spec.rb
|
208
218
|
- spec/tokenizers/calendars/datetime_tokenizer_spec.rb
|
209
219
|
- spec/tokenizers/calendars/time_tokenizer_spec.rb
|
@@ -221,8 +231,12 @@ files:
|
|
221
231
|
- resources/collation/FractionalUCA_SHORT.txt
|
222
232
|
- resources/collation/tailoring/af.yml
|
223
233
|
- resources/collation/tailoring/ar.yml
|
234
|
+
- resources/collation/tailoring/be.yml
|
235
|
+
- resources/collation/tailoring/bg.yml
|
236
|
+
- resources/collation/tailoring/bn.yml
|
224
237
|
- resources/collation/tailoring/ca.yml
|
225
238
|
- resources/collation/tailoring/cs.yml
|
239
|
+
- resources/collation/tailoring/cy.yml
|
226
240
|
- resources/collation/tailoring/da.yml
|
227
241
|
- resources/collation/tailoring/de.yml
|
228
242
|
- resources/collation/tailoring/el.yml
|
@@ -233,6 +247,8 @@ files:
|
|
233
247
|
- resources/collation/tailoring/fi.yml
|
234
248
|
- resources/collation/tailoring/fil.yml
|
235
249
|
- resources/collation/tailoring/fr.yml
|
250
|
+
- resources/collation/tailoring/ga.yml
|
251
|
+
- resources/collation/tailoring/gl.yml
|
236
252
|
- resources/collation/tailoring/he.yml
|
237
253
|
- resources/collation/tailoring/hi.yml
|
238
254
|
- resources/collation/tailoring/hu.yml
|
@@ -240,13 +256,19 @@ files:
|
|
240
256
|
- resources/collation/tailoring/it.yml
|
241
257
|
- resources/collation/tailoring/ja.yml
|
242
258
|
- resources/collation/tailoring/ko.yml
|
259
|
+
- resources/collation/tailoring/lv.yml
|
243
260
|
- resources/collation/tailoring/ms.yml
|
244
261
|
- resources/collation/tailoring/nb.yml
|
245
262
|
- resources/collation/tailoring/nl.yml
|
246
263
|
- resources/collation/tailoring/pl.yml
|
247
264
|
- resources/collation/tailoring/pt.yml
|
265
|
+
- resources/collation/tailoring/ro.yml
|
248
266
|
- resources/collation/tailoring/ru.yml
|
267
|
+
- resources/collation/tailoring/sk.yml
|
268
|
+
- resources/collation/tailoring/sq.yml
|
269
|
+
- resources/collation/tailoring/sr.yml
|
249
270
|
- resources/collation/tailoring/sv.yml
|
271
|
+
- resources/collation/tailoring/ta.yml
|
250
272
|
- resources/collation/tailoring/th.yml
|
251
273
|
- resources/collation/tailoring/tr.yml
|
252
274
|
- resources/collation/tailoring/uk.yml
|
@@ -255,8 +277,12 @@ files:
|
|
255
277
|
- resources/collation/tailoring/zh.yml
|
256
278
|
- resources/collation/tries/af.dump
|
257
279
|
- resources/collation/tries/ar.dump
|
280
|
+
- resources/collation/tries/be.dump
|
281
|
+
- resources/collation/tries/bg.dump
|
282
|
+
- resources/collation/tries/bn.dump
|
258
283
|
- resources/collation/tries/ca.dump
|
259
284
|
- resources/collation/tries/cs.dump
|
285
|
+
- resources/collation/tries/cy.dump
|
260
286
|
- resources/collation/tries/da.dump
|
261
287
|
- resources/collation/tries/de.dump
|
262
288
|
- resources/collation/tries/default.dump
|
@@ -268,6 +294,8 @@ files:
|
|
268
294
|
- resources/collation/tries/fi.dump
|
269
295
|
- resources/collation/tries/fil.dump
|
270
296
|
- resources/collation/tries/fr.dump
|
297
|
+
- resources/collation/tries/ga.dump
|
298
|
+
- resources/collation/tries/gl.dump
|
271
299
|
- resources/collation/tries/he.dump
|
272
300
|
- resources/collation/tries/hi.dump
|
273
301
|
- resources/collation/tries/hu.dump
|
@@ -275,13 +303,19 @@ files:
|
|
275
303
|
- resources/collation/tries/it.dump
|
276
304
|
- resources/collation/tries/ja.dump
|
277
305
|
- resources/collation/tries/ko.dump
|
306
|
+
- resources/collation/tries/lv.dump
|
278
307
|
- resources/collation/tries/ms.dump
|
279
308
|
- resources/collation/tries/nb.dump
|
280
309
|
- resources/collation/tries/nl.dump
|
281
310
|
- resources/collation/tries/pl.dump
|
282
311
|
- resources/collation/tries/pt.dump
|
312
|
+
- resources/collation/tries/ro.dump
|
283
313
|
- resources/collation/tries/ru.dump
|
314
|
+
- resources/collation/tries/sk.dump
|
315
|
+
- resources/collation/tries/sq.dump
|
316
|
+
- resources/collation/tries/sr.dump
|
284
317
|
- resources/collation/tries/sv.dump
|
318
|
+
- resources/collation/tries/ta.dump
|
285
319
|
- resources/collation/tries/th.dump
|
286
320
|
- resources/collation/tries/tr.dump
|
287
321
|
- resources/collation/tries/uk.dump
|
@@ -290,8 +324,12 @@ files:
|
|
290
324
|
- resources/collation/tries/zh.dump
|
291
325
|
- resources/custom/locales/af/units.yml
|
292
326
|
- resources/custom/locales/ar/units.yml
|
327
|
+
- resources/custom/locales/be/units.yml
|
328
|
+
- resources/custom/locales/bg/units.yml
|
329
|
+
- resources/custom/locales/bn/units.yml
|
293
330
|
- resources/custom/locales/ca/units.yml
|
294
331
|
- resources/custom/locales/cs/units.yml
|
332
|
+
- resources/custom/locales/cy/units.yml
|
295
333
|
- resources/custom/locales/da/units.yml
|
296
334
|
- resources/custom/locales/de/units.yml
|
297
335
|
- resources/custom/locales/el/units.yml
|
@@ -302,20 +340,29 @@ files:
|
|
302
340
|
- resources/custom/locales/fi/units.yml
|
303
341
|
- resources/custom/locales/fil/units.yml
|
304
342
|
- resources/custom/locales/fr/units.yml
|
343
|
+
- resources/custom/locales/ga/units.yml
|
344
|
+
- resources/custom/locales/gl/units.yml
|
305
345
|
- resources/custom/locales/he/units.yml
|
306
346
|
- resources/custom/locales/hi/units.yml
|
347
|
+
- resources/custom/locales/hu/plurals.yml
|
307
348
|
- resources/custom/locales/hu/units.yml
|
308
349
|
- resources/custom/locales/id/units.yml
|
309
350
|
- resources/custom/locales/it/units.yml
|
310
351
|
- resources/custom/locales/ja/units.yml
|
311
352
|
- resources/custom/locales/ko/units.yml
|
353
|
+
- resources/custom/locales/lv/units.yml
|
312
354
|
- resources/custom/locales/ms/units.yml
|
313
355
|
- resources/custom/locales/nb/units.yml
|
314
356
|
- resources/custom/locales/nl/units.yml
|
315
357
|
- resources/custom/locales/pl/units.yml
|
316
358
|
- resources/custom/locales/pt/units.yml
|
359
|
+
- resources/custom/locales/ro/units.yml
|
317
360
|
- resources/custom/locales/ru/units.yml
|
361
|
+
- resources/custom/locales/sk/units.yml
|
362
|
+
- resources/custom/locales/sr/units.yml
|
318
363
|
- resources/custom/locales/sv/units.yml
|
364
|
+
- resources/custom/locales/ta/units.yml
|
365
|
+
- resources/custom/locales/th/calendars.yml
|
319
366
|
- resources/custom/locales/th/units.yml
|
320
367
|
- resources/custom/locales/tr/units.yml
|
321
368
|
- resources/custom/locales/uk/units.yml
|
@@ -323,6 +370,7 @@ files:
|
|
323
370
|
- resources/custom/locales/zh/units.yml
|
324
371
|
- resources/custom/locales/zh-Hant/units.yml
|
325
372
|
- resources/locales/af/calendars.yml
|
373
|
+
- resources/locales/af/currencies.yml
|
326
374
|
- resources/locales/af/languages.yml
|
327
375
|
- resources/locales/af/layout.yml
|
328
376
|
- resources/locales/af/lists.yml
|
@@ -330,13 +378,39 @@ files:
|
|
330
378
|
- resources/locales/af/plurals.yml
|
331
379
|
- resources/locales/af/units.yml
|
332
380
|
- resources/locales/ar/calendars.yml
|
381
|
+
- resources/locales/ar/currencies.yml
|
333
382
|
- resources/locales/ar/languages.yml
|
334
383
|
- resources/locales/ar/layout.yml
|
335
384
|
- resources/locales/ar/lists.yml
|
336
385
|
- resources/locales/ar/numbers.yml
|
337
386
|
- resources/locales/ar/plurals.yml
|
338
387
|
- resources/locales/ar/units.yml
|
388
|
+
- resources/locales/be/calendars.yml
|
389
|
+
- resources/locales/be/currencies.yml
|
390
|
+
- resources/locales/be/languages.yml
|
391
|
+
- resources/locales/be/layout.yml
|
392
|
+
- resources/locales/be/lists.yml
|
393
|
+
- resources/locales/be/numbers.yml
|
394
|
+
- resources/locales/be/plurals.yml
|
395
|
+
- resources/locales/be/units.yml
|
396
|
+
- resources/locales/bg/calendars.yml
|
397
|
+
- resources/locales/bg/currencies.yml
|
398
|
+
- resources/locales/bg/languages.yml
|
399
|
+
- resources/locales/bg/layout.yml
|
400
|
+
- resources/locales/bg/lists.yml
|
401
|
+
- resources/locales/bg/numbers.yml
|
402
|
+
- resources/locales/bg/plurals.yml
|
403
|
+
- resources/locales/bg/units.yml
|
404
|
+
- resources/locales/bn/calendars.yml
|
405
|
+
- resources/locales/bn/currencies.yml
|
406
|
+
- resources/locales/bn/languages.yml
|
407
|
+
- resources/locales/bn/layout.yml
|
408
|
+
- resources/locales/bn/lists.yml
|
409
|
+
- resources/locales/bn/numbers.yml
|
410
|
+
- resources/locales/bn/plurals.yml
|
411
|
+
- resources/locales/bn/units.yml
|
339
412
|
- resources/locales/ca/calendars.yml
|
413
|
+
- resources/locales/ca/currencies.yml
|
340
414
|
- resources/locales/ca/languages.yml
|
341
415
|
- resources/locales/ca/layout.yml
|
342
416
|
- resources/locales/ca/lists.yml
|
@@ -344,13 +418,23 @@ files:
|
|
344
418
|
- resources/locales/ca/plurals.yml
|
345
419
|
- resources/locales/ca/units.yml
|
346
420
|
- resources/locales/cs/calendars.yml
|
421
|
+
- resources/locales/cs/currencies.yml
|
347
422
|
- resources/locales/cs/languages.yml
|
348
423
|
- resources/locales/cs/layout.yml
|
349
424
|
- resources/locales/cs/lists.yml
|
350
425
|
- resources/locales/cs/numbers.yml
|
351
426
|
- resources/locales/cs/plurals.yml
|
352
427
|
- resources/locales/cs/units.yml
|
428
|
+
- resources/locales/cy/calendars.yml
|
429
|
+
- resources/locales/cy/currencies.yml
|
430
|
+
- resources/locales/cy/languages.yml
|
431
|
+
- resources/locales/cy/layout.yml
|
432
|
+
- resources/locales/cy/lists.yml
|
433
|
+
- resources/locales/cy/numbers.yml
|
434
|
+
- resources/locales/cy/plurals.yml
|
435
|
+
- resources/locales/cy/units.yml
|
353
436
|
- resources/locales/da/calendars.yml
|
437
|
+
- resources/locales/da/currencies.yml
|
354
438
|
- resources/locales/da/languages.yml
|
355
439
|
- resources/locales/da/layout.yml
|
356
440
|
- resources/locales/da/lists.yml
|
@@ -358,6 +442,7 @@ files:
|
|
358
442
|
- resources/locales/da/plurals.yml
|
359
443
|
- resources/locales/da/units.yml
|
360
444
|
- resources/locales/de/calendars.yml
|
445
|
+
- resources/locales/de/currencies.yml
|
361
446
|
- resources/locales/de/languages.yml
|
362
447
|
- resources/locales/de/layout.yml
|
363
448
|
- resources/locales/de/lists.yml
|
@@ -365,6 +450,7 @@ files:
|
|
365
450
|
- resources/locales/de/plurals.yml
|
366
451
|
- resources/locales/de/units.yml
|
367
452
|
- resources/locales/el/calendars.yml
|
453
|
+
- resources/locales/el/currencies.yml
|
368
454
|
- resources/locales/el/languages.yml
|
369
455
|
- resources/locales/el/layout.yml
|
370
456
|
- resources/locales/el/lists.yml
|
@@ -372,6 +458,7 @@ files:
|
|
372
458
|
- resources/locales/el/plurals.yml
|
373
459
|
- resources/locales/el/units.yml
|
374
460
|
- resources/locales/en/calendars.yml
|
461
|
+
- resources/locales/en/currencies.yml
|
375
462
|
- resources/locales/en/languages.yml
|
376
463
|
- resources/locales/en/layout.yml
|
377
464
|
- resources/locales/en/lists.yml
|
@@ -379,6 +466,7 @@ files:
|
|
379
466
|
- resources/locales/en/plurals.yml
|
380
467
|
- resources/locales/en/units.yml
|
381
468
|
- resources/locales/es/calendars.yml
|
469
|
+
- resources/locales/es/currencies.yml
|
382
470
|
- resources/locales/es/languages.yml
|
383
471
|
- resources/locales/es/layout.yml
|
384
472
|
- resources/locales/es/lists.yml
|
@@ -386,6 +474,7 @@ files:
|
|
386
474
|
- resources/locales/es/plurals.yml
|
387
475
|
- resources/locales/es/units.yml
|
388
476
|
- resources/locales/eu/calendars.yml
|
477
|
+
- resources/locales/eu/currencies.yml
|
389
478
|
- resources/locales/eu/languages.yml
|
390
479
|
- resources/locales/eu/layout.yml
|
391
480
|
- resources/locales/eu/lists.yml
|
@@ -393,6 +482,7 @@ files:
|
|
393
482
|
- resources/locales/eu/plurals.yml
|
394
483
|
- resources/locales/eu/units.yml
|
395
484
|
- resources/locales/fa/calendars.yml
|
485
|
+
- resources/locales/fa/currencies.yml
|
396
486
|
- resources/locales/fa/languages.yml
|
397
487
|
- resources/locales/fa/layout.yml
|
398
488
|
- resources/locales/fa/lists.yml
|
@@ -400,6 +490,7 @@ files:
|
|
400
490
|
- resources/locales/fa/plurals.yml
|
401
491
|
- resources/locales/fa/units.yml
|
402
492
|
- resources/locales/fi/calendars.yml
|
493
|
+
- resources/locales/fi/currencies.yml
|
403
494
|
- resources/locales/fi/languages.yml
|
404
495
|
- resources/locales/fi/layout.yml
|
405
496
|
- resources/locales/fi/lists.yml
|
@@ -407,6 +498,7 @@ files:
|
|
407
498
|
- resources/locales/fi/plurals.yml
|
408
499
|
- resources/locales/fi/units.yml
|
409
500
|
- resources/locales/fil/calendars.yml
|
501
|
+
- resources/locales/fil/currencies.yml
|
410
502
|
- resources/locales/fil/languages.yml
|
411
503
|
- resources/locales/fil/layout.yml
|
412
504
|
- resources/locales/fil/lists.yml
|
@@ -414,13 +506,31 @@ files:
|
|
414
506
|
- resources/locales/fil/plurals.yml
|
415
507
|
- resources/locales/fil/units.yml
|
416
508
|
- resources/locales/fr/calendars.yml
|
509
|
+
- resources/locales/fr/currencies.yml
|
417
510
|
- resources/locales/fr/languages.yml
|
418
511
|
- resources/locales/fr/layout.yml
|
419
512
|
- resources/locales/fr/lists.yml
|
420
513
|
- resources/locales/fr/numbers.yml
|
421
514
|
- resources/locales/fr/plurals.yml
|
422
515
|
- resources/locales/fr/units.yml
|
516
|
+
- resources/locales/ga/calendars.yml
|
517
|
+
- resources/locales/ga/currencies.yml
|
518
|
+
- resources/locales/ga/languages.yml
|
519
|
+
- resources/locales/ga/layout.yml
|
520
|
+
- resources/locales/ga/lists.yml
|
521
|
+
- resources/locales/ga/numbers.yml
|
522
|
+
- resources/locales/ga/plurals.yml
|
523
|
+
- resources/locales/ga/units.yml
|
524
|
+
- resources/locales/gl/calendars.yml
|
525
|
+
- resources/locales/gl/currencies.yml
|
526
|
+
- resources/locales/gl/languages.yml
|
527
|
+
- resources/locales/gl/layout.yml
|
528
|
+
- resources/locales/gl/lists.yml
|
529
|
+
- resources/locales/gl/numbers.yml
|
530
|
+
- resources/locales/gl/plurals.yml
|
531
|
+
- resources/locales/gl/units.yml
|
423
532
|
- resources/locales/he/calendars.yml
|
533
|
+
- resources/locales/he/currencies.yml
|
424
534
|
- resources/locales/he/languages.yml
|
425
535
|
- resources/locales/he/layout.yml
|
426
536
|
- resources/locales/he/lists.yml
|
@@ -428,6 +538,7 @@ files:
|
|
428
538
|
- resources/locales/he/plurals.yml
|
429
539
|
- resources/locales/he/units.yml
|
430
540
|
- resources/locales/hi/calendars.yml
|
541
|
+
- resources/locales/hi/currencies.yml
|
431
542
|
- resources/locales/hi/languages.yml
|
432
543
|
- resources/locales/hi/layout.yml
|
433
544
|
- resources/locales/hi/lists.yml
|
@@ -435,6 +546,7 @@ files:
|
|
435
546
|
- resources/locales/hi/plurals.yml
|
436
547
|
- resources/locales/hi/units.yml
|
437
548
|
- resources/locales/hu/calendars.yml
|
549
|
+
- resources/locales/hu/currencies.yml
|
438
550
|
- resources/locales/hu/languages.yml
|
439
551
|
- resources/locales/hu/layout.yml
|
440
552
|
- resources/locales/hu/lists.yml
|
@@ -442,6 +554,7 @@ files:
|
|
442
554
|
- resources/locales/hu/plurals.yml
|
443
555
|
- resources/locales/hu/units.yml
|
444
556
|
- resources/locales/id/calendars.yml
|
557
|
+
- resources/locales/id/currencies.yml
|
445
558
|
- resources/locales/id/languages.yml
|
446
559
|
- resources/locales/id/layout.yml
|
447
560
|
- resources/locales/id/lists.yml
|
@@ -449,6 +562,7 @@ files:
|
|
449
562
|
- resources/locales/id/plurals.yml
|
450
563
|
- resources/locales/id/units.yml
|
451
564
|
- resources/locales/it/calendars.yml
|
565
|
+
- resources/locales/it/currencies.yml
|
452
566
|
- resources/locales/it/languages.yml
|
453
567
|
- resources/locales/it/layout.yml
|
454
568
|
- resources/locales/it/lists.yml
|
@@ -456,6 +570,7 @@ files:
|
|
456
570
|
- resources/locales/it/plurals.yml
|
457
571
|
- resources/locales/it/units.yml
|
458
572
|
- resources/locales/ja/calendars.yml
|
573
|
+
- resources/locales/ja/currencies.yml
|
459
574
|
- resources/locales/ja/languages.yml
|
460
575
|
- resources/locales/ja/layout.yml
|
461
576
|
- resources/locales/ja/lists.yml
|
@@ -463,13 +578,23 @@ files:
|
|
463
578
|
- resources/locales/ja/plurals.yml
|
464
579
|
- resources/locales/ja/units.yml
|
465
580
|
- resources/locales/ko/calendars.yml
|
581
|
+
- resources/locales/ko/currencies.yml
|
466
582
|
- resources/locales/ko/languages.yml
|
467
583
|
- resources/locales/ko/layout.yml
|
468
584
|
- resources/locales/ko/lists.yml
|
469
585
|
- resources/locales/ko/numbers.yml
|
470
586
|
- resources/locales/ko/plurals.yml
|
471
587
|
- resources/locales/ko/units.yml
|
588
|
+
- resources/locales/lv/calendars.yml
|
589
|
+
- resources/locales/lv/currencies.yml
|
590
|
+
- resources/locales/lv/languages.yml
|
591
|
+
- resources/locales/lv/layout.yml
|
592
|
+
- resources/locales/lv/lists.yml
|
593
|
+
- resources/locales/lv/numbers.yml
|
594
|
+
- resources/locales/lv/plurals.yml
|
595
|
+
- resources/locales/lv/units.yml
|
472
596
|
- resources/locales/ms/calendars.yml
|
597
|
+
- resources/locales/ms/currencies.yml
|
473
598
|
- resources/locales/ms/languages.yml
|
474
599
|
- resources/locales/ms/layout.yml
|
475
600
|
- resources/locales/ms/lists.yml
|
@@ -477,6 +602,7 @@ files:
|
|
477
602
|
- resources/locales/ms/plurals.yml
|
478
603
|
- resources/locales/ms/units.yml
|
479
604
|
- resources/locales/nb/calendars.yml
|
605
|
+
- resources/locales/nb/currencies.yml
|
480
606
|
- resources/locales/nb/languages.yml
|
481
607
|
- resources/locales/nb/layout.yml
|
482
608
|
- resources/locales/nb/lists.yml
|
@@ -484,6 +610,7 @@ files:
|
|
484
610
|
- resources/locales/nb/plurals.yml
|
485
611
|
- resources/locales/nb/units.yml
|
486
612
|
- resources/locales/nl/calendars.yml
|
613
|
+
- resources/locales/nl/currencies.yml
|
487
614
|
- resources/locales/nl/languages.yml
|
488
615
|
- resources/locales/nl/layout.yml
|
489
616
|
- resources/locales/nl/lists.yml
|
@@ -491,6 +618,7 @@ files:
|
|
491
618
|
- resources/locales/nl/plurals.yml
|
492
619
|
- resources/locales/nl/units.yml
|
493
620
|
- resources/locales/pl/calendars.yml
|
621
|
+
- resources/locales/pl/currencies.yml
|
494
622
|
- resources/locales/pl/languages.yml
|
495
623
|
- resources/locales/pl/layout.yml
|
496
624
|
- resources/locales/pl/lists.yml
|
@@ -498,27 +626,71 @@ files:
|
|
498
626
|
- resources/locales/pl/plurals.yml
|
499
627
|
- resources/locales/pl/units.yml
|
500
628
|
- resources/locales/pt/calendars.yml
|
629
|
+
- resources/locales/pt/currencies.yml
|
501
630
|
- resources/locales/pt/languages.yml
|
502
631
|
- resources/locales/pt/layout.yml
|
503
632
|
- resources/locales/pt/lists.yml
|
504
633
|
- resources/locales/pt/numbers.yml
|
505
634
|
- resources/locales/pt/plurals.yml
|
506
635
|
- resources/locales/pt/units.yml
|
636
|
+
- resources/locales/ro/calendars.yml
|
637
|
+
- resources/locales/ro/currencies.yml
|
638
|
+
- resources/locales/ro/languages.yml
|
639
|
+
- resources/locales/ro/layout.yml
|
640
|
+
- resources/locales/ro/lists.yml
|
641
|
+
- resources/locales/ro/numbers.yml
|
642
|
+
- resources/locales/ro/plurals.yml
|
643
|
+
- resources/locales/ro/units.yml
|
507
644
|
- resources/locales/ru/calendars.yml
|
645
|
+
- resources/locales/ru/currencies.yml
|
508
646
|
- resources/locales/ru/languages.yml
|
509
647
|
- resources/locales/ru/layout.yml
|
510
648
|
- resources/locales/ru/lists.yml
|
511
649
|
- resources/locales/ru/numbers.yml
|
512
650
|
- resources/locales/ru/plurals.yml
|
513
651
|
- resources/locales/ru/units.yml
|
652
|
+
- resources/locales/sk/calendars.yml
|
653
|
+
- resources/locales/sk/currencies.yml
|
654
|
+
- resources/locales/sk/languages.yml
|
655
|
+
- resources/locales/sk/layout.yml
|
656
|
+
- resources/locales/sk/lists.yml
|
657
|
+
- resources/locales/sk/numbers.yml
|
658
|
+
- resources/locales/sk/plurals.yml
|
659
|
+
- resources/locales/sk/units.yml
|
660
|
+
- resources/locales/sq/calendars.yml
|
661
|
+
- resources/locales/sq/currencies.yml
|
662
|
+
- resources/locales/sq/languages.yml
|
663
|
+
- resources/locales/sq/layout.yml
|
664
|
+
- resources/locales/sq/lists.yml
|
665
|
+
- resources/locales/sq/numbers.yml
|
666
|
+
- resources/locales/sq/plurals.yml
|
667
|
+
- resources/locales/sq/units.yml
|
668
|
+
- resources/locales/sr/calendars.yml
|
669
|
+
- resources/locales/sr/currencies.yml
|
670
|
+
- resources/locales/sr/languages.yml
|
671
|
+
- resources/locales/sr/layout.yml
|
672
|
+
- resources/locales/sr/lists.yml
|
673
|
+
- resources/locales/sr/numbers.yml
|
674
|
+
- resources/locales/sr/plurals.yml
|
675
|
+
- resources/locales/sr/units.yml
|
514
676
|
- resources/locales/sv/calendars.yml
|
677
|
+
- resources/locales/sv/currencies.yml
|
515
678
|
- resources/locales/sv/languages.yml
|
516
679
|
- resources/locales/sv/layout.yml
|
517
680
|
- resources/locales/sv/lists.yml
|
518
681
|
- resources/locales/sv/numbers.yml
|
519
682
|
- resources/locales/sv/plurals.yml
|
520
683
|
- resources/locales/sv/units.yml
|
684
|
+
- resources/locales/ta/calendars.yml
|
685
|
+
- resources/locales/ta/currencies.yml
|
686
|
+
- resources/locales/ta/languages.yml
|
687
|
+
- resources/locales/ta/layout.yml
|
688
|
+
- resources/locales/ta/lists.yml
|
689
|
+
- resources/locales/ta/numbers.yml
|
690
|
+
- resources/locales/ta/plurals.yml
|
691
|
+
- resources/locales/ta/units.yml
|
521
692
|
- resources/locales/th/calendars.yml
|
693
|
+
- resources/locales/th/currencies.yml
|
522
694
|
- resources/locales/th/languages.yml
|
523
695
|
- resources/locales/th/layout.yml
|
524
696
|
- resources/locales/th/lists.yml
|
@@ -526,6 +698,7 @@ files:
|
|
526
698
|
- resources/locales/th/plurals.yml
|
527
699
|
- resources/locales/th/units.yml
|
528
700
|
- resources/locales/tr/calendars.yml
|
701
|
+
- resources/locales/tr/currencies.yml
|
529
702
|
- resources/locales/tr/languages.yml
|
530
703
|
- resources/locales/tr/layout.yml
|
531
704
|
- resources/locales/tr/lists.yml
|
@@ -533,6 +706,7 @@ files:
|
|
533
706
|
- resources/locales/tr/plurals.yml
|
534
707
|
- resources/locales/tr/units.yml
|
535
708
|
- resources/locales/uk/calendars.yml
|
709
|
+
- resources/locales/uk/currencies.yml
|
536
710
|
- resources/locales/uk/languages.yml
|
537
711
|
- resources/locales/uk/layout.yml
|
538
712
|
- resources/locales/uk/lists.yml
|
@@ -540,6 +714,7 @@ files:
|
|
540
714
|
- resources/locales/uk/plurals.yml
|
541
715
|
- resources/locales/uk/units.yml
|
542
716
|
- resources/locales/ur/calendars.yml
|
717
|
+
- resources/locales/ur/currencies.yml
|
543
718
|
- resources/locales/ur/languages.yml
|
544
719
|
- resources/locales/ur/layout.yml
|
545
720
|
- resources/locales/ur/lists.yml
|
@@ -547,6 +722,7 @@ files:
|
|
547
722
|
- resources/locales/ur/plurals.yml
|
548
723
|
- resources/locales/ur/units.yml
|
549
724
|
- resources/locales/zh/calendars.yml
|
725
|
+
- resources/locales/zh/currencies.yml
|
550
726
|
- resources/locales/zh/languages.yml
|
551
727
|
- resources/locales/zh/layout.yml
|
552
728
|
- resources/locales/zh/lists.yml
|
@@ -554,6 +730,7 @@ files:
|
|
554
730
|
- resources/locales/zh/plurals.yml
|
555
731
|
- resources/locales/zh/units.yml
|
556
732
|
- resources/locales/zh-Hant/calendars.yml
|
733
|
+
- resources/locales/zh-Hant/currencies.yml
|
557
734
|
- resources/locales/zh-Hant/languages.yml
|
558
735
|
- resources/locales/zh-Hant/layout.yml
|
559
736
|
- resources/locales/zh-Hant/lists.yml
|
@@ -561,6 +738,7 @@ files:
|
|
561
738
|
- resources/locales/zh-Hant/plurals.yml
|
562
739
|
- resources/locales/zh-Hant/units.yml
|
563
740
|
- resources/shared/currencies.yml
|
741
|
+
- resources/shared/currency_digits_and_rounding.yml
|
564
742
|
- resources/shared/language_codes_table.dump
|
565
743
|
- resources/shared/phone_codes.yml
|
566
744
|
- resources/shared/postal_codes.yml
|
@@ -797,30 +975,33 @@ files:
|
|
797
975
|
- twitter_cldr.gemspec
|
798
976
|
homepage: http://twitter.com
|
799
977
|
licenses: []
|
800
|
-
|
801
978
|
post_install_message:
|
802
979
|
rdoc_options: []
|
803
|
-
|
804
|
-
require_paths:
|
980
|
+
require_paths:
|
805
981
|
- lib
|
806
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
982
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
807
983
|
none: false
|
808
|
-
requirements:
|
809
|
-
- -
|
810
|
-
- !ruby/object:Gem::Version
|
811
|
-
version:
|
812
|
-
|
984
|
+
requirements:
|
985
|
+
- - ! '>='
|
986
|
+
- !ruby/object:Gem::Version
|
987
|
+
version: '0'
|
988
|
+
segments:
|
989
|
+
- 0
|
990
|
+
hash: -2261829356265887459
|
991
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
813
992
|
none: false
|
814
|
-
requirements:
|
815
|
-
- -
|
816
|
-
- !ruby/object:Gem::Version
|
817
|
-
version:
|
993
|
+
requirements:
|
994
|
+
- - ! '>='
|
995
|
+
- !ruby/object:Gem::Version
|
996
|
+
version: '0'
|
997
|
+
segments:
|
998
|
+
- 0
|
999
|
+
hash: -2261829356265887459
|
818
1000
|
requirements: []
|
819
|
-
|
820
1001
|
rubyforge_project:
|
821
|
-
rubygems_version: 1.8.
|
1002
|
+
rubygems_version: 1.8.24
|
822
1003
|
signing_key:
|
823
1004
|
specification_version: 3
|
824
|
-
summary: Ruby implementation of the ICU (International Components for Unicode) that
|
1005
|
+
summary: Ruby implementation of the ICU (International Components for Unicode) that
|
1006
|
+
uses the Common Locale Data Repository to format dates, plurals, and more.
|
825
1007
|
test_files: []
|
826
|
-
|