twitter_cldr 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/History.txt +6 -0
- data/Rakefile +1 -1
- data/lib/twitter_cldr/resources/collation_tries_dumper.rb +2 -1
- data/lib/twitter_cldr/resources/download.rb +2 -2
- data/lib/twitter_cldr/resources/locales_resources_importer.rb +15 -2
- data/lib/twitter_cldr/resources/tailoring_importer.rb +11 -7
- data/lib/twitter_cldr/version.rb +1 -1
- data/resources/collation/tailoring/be.yml +1 -1
- data/resources/collation/tailoring/bg.yml +1 -1
- data/resources/collation/tailoring/en-GB.yml +4 -0
- data/resources/collation/tailoring/he.yml +2 -2
- data/resources/collation/tailoring/ru.yml +1 -1
- data/resources/collation/tailoring/sr.yml +1 -1
- data/resources/collation/tailoring/uk.yml +1 -1
- data/resources/collation/tries/en-GB.dump +0 -0
- data/resources/collation/tries/he.dump +0 -0
- data/resources/custom/locales/en-GB/units.yml +19 -0
- data/resources/locales/af/calendars.yml +18 -6
- data/resources/locales/af/currencies.yml +558 -2
- data/resources/locales/af/languages.yml +386 -0
- data/resources/locales/af/plurals.yml +1 -1
- data/resources/locales/af/territories.yml +1 -0
- data/resources/locales/ar/calendars.yml +19 -3
- data/resources/locales/ar/currencies.yml +194 -0
- data/resources/locales/ar/languages.yml +52 -0
- data/resources/locales/ar/plurals.yml +1 -1
- data/resources/locales/ar/territories.yml +1 -0
- data/resources/locales/be/calendars.yml +33 -13
- data/resources/locales/be/currencies.yml +852 -0
- data/resources/locales/be/languages.yml +431 -0
- data/resources/locales/be/lists.yml +2 -2
- data/resources/locales/be/numbers.yml +17 -3
- data/resources/locales/be/plurals.yml +1 -1
- data/resources/locales/be/territories.yml +24 -0
- data/resources/locales/be/units.yml +49 -14
- data/resources/locales/bg/calendars.yml +17 -6
- data/resources/locales/bg/currencies.yml +143 -2
- data/resources/locales/bg/languages.yml +67 -0
- data/resources/locales/bg/plurals.yml +1 -1
- data/resources/locales/bg/territories.yml +1 -0
- data/resources/locales/bn/calendars.yml +30 -7
- data/resources/locales/bn/currencies.yml +352 -2
- data/resources/locales/bn/languages.yml +67 -0
- data/resources/locales/bn/plurals.yml +1 -1
- data/resources/locales/bn/territories.yml +1 -0
- data/resources/locales/ca/calendars.yml +13 -4
- data/resources/locales/ca/currencies.yml +9 -0
- data/resources/locales/ca/languages.yml +4 -0
- data/resources/locales/ca/plurals.yml +1 -1
- data/resources/locales/ca/territories.yml +1 -0
- data/resources/locales/cs/calendars.yml +9 -0
- data/resources/locales/cs/currencies.yml +105 -0
- data/resources/locales/cs/languages.yml +26 -0
- data/resources/locales/cs/plurals.yml +1 -1
- data/resources/locales/cs/territories.yml +1 -0
- data/resources/locales/cy/calendars.yml +12 -4
- data/resources/locales/cy/currencies.yml +417 -0
- data/resources/locales/cy/languages.yml +404 -0
- data/resources/locales/cy/plurals.yml +1 -1
- data/resources/locales/cy/territories.yml +2 -0
- data/resources/locales/da/calendars.yml +9 -0
- data/resources/locales/da/currencies.yml +99 -0
- data/resources/locales/da/languages.yml +4 -0
- data/resources/locales/da/plurals.yml +1 -1
- data/resources/locales/da/territories.yml +1 -0
- data/resources/locales/de/calendars.yml +13 -2
- data/resources/locales/de/currencies.yml +70 -0
- data/resources/locales/de/languages.yml +64 -0
- data/resources/locales/de/plurals.yml +1 -1
- data/resources/locales/de/territories.yml +1 -0
- data/resources/locales/el/calendars.yml +20 -7
- data/resources/locales/el/currencies.yml +48 -1
- data/resources/locales/el/languages.yml +4 -0
- data/resources/locales/el/plurals.yml +1 -1
- data/resources/locales/el/territories.yml +1 -0
- data/resources/locales/en/plurals.yml +1 -1
- data/resources/locales/en/territories.yml +1 -0
- data/resources/locales/en-GB/calendars.yml +210 -0
- data/resources/locales/en-GB/currencies.yml +915 -0
- data/resources/locales/en-GB/languages.yml +580 -0
- data/resources/locales/en-GB/layout.yml +5 -0
- data/resources/locales/en-GB/lists.yml +7 -0
- data/resources/locales/en-GB/numbers.yml +57 -0
- data/resources/locales/en-GB/plurals.yml +3 -0
- data/resources/locales/en-GB/territories.yml +263 -0
- data/resources/locales/en-GB/units.yml +108 -0
- data/resources/locales/es/calendars.yml +14 -2
- data/resources/locales/es/currencies.yml +101 -2
- data/resources/locales/es/languages.yml +4 -0
- data/resources/locales/es/plurals.yml +1 -1
- data/resources/locales/es/territories.yml +1 -0
- data/resources/locales/eu/calendars.yml +17 -6
- data/resources/locales/eu/currencies.yml +538 -2
- data/resources/locales/eu/languages.yml +402 -0
- data/resources/locales/eu/plurals.yml +1 -1
- data/resources/locales/eu/territories.yml +1 -0
- data/resources/locales/fa/calendars.yml +11 -1
- data/resources/locales/fa/currencies.yml +467 -2
- data/resources/locales/fa/languages.yml +86 -0
- data/resources/locales/fa/numbers.yml +1 -0
- data/resources/locales/fa/plurals.yml +1 -1
- data/resources/locales/fa/territories.yml +1 -0
- data/resources/locales/fa/units.yml +28 -0
- data/resources/locales/fi/calendars.yml +9 -0
- data/resources/locales/fi/currencies.yml +9 -0
- data/resources/locales/fi/languages.yml +4 -0
- data/resources/locales/fi/plurals.yml +1 -1
- data/resources/locales/fi/territories.yml +1 -0
- data/resources/locales/fil/calendars.yml +17 -6
- data/resources/locales/fil/currencies.yml +559 -2
- data/resources/locales/fil/languages.yml +394 -0
- data/resources/locales/fil/plurals.yml +1 -1
- data/resources/locales/fil/territories.yml +1 -0
- data/resources/locales/fr/calendars.yml +9 -1
- data/resources/locales/fr/currencies.yml +63 -0
- data/resources/locales/fr/languages.yml +34 -0
- data/resources/locales/fr/plurals.yml +1 -1
- data/resources/locales/fr/territories.yml +1 -0
- data/resources/locales/ga/calendars.yml +42 -23
- data/resources/locales/ga/currencies.yml +403 -2
- data/resources/locales/ga/languages.yml +433 -0
- data/resources/locales/ga/lists.yml +2 -2
- data/resources/locales/ga/numbers.yml +17 -3
- data/resources/locales/ga/plurals.yml +1 -1
- data/resources/locales/ga/territories.yml +12 -0
- data/resources/locales/ga/units.yml +63 -21
- data/resources/locales/gl/calendars.yml +15 -5
- data/resources/locales/gl/currencies.yml +440 -2
- data/resources/locales/gl/languages.yml +367 -0
- data/resources/locales/gl/plurals.yml +1 -1
- data/resources/locales/gl/territories.yml +1 -0
- data/resources/locales/he/calendars.yml +19 -3
- data/resources/locales/he/currencies.yml +435 -2
- data/resources/locales/he/languages.yml +4 -0
- data/resources/locales/he/plurals.yml +1 -1
- data/resources/locales/he/territories.yml +1 -0
- data/resources/locales/hi/calendars.yml +31 -4
- data/resources/locales/hi/currencies.yml +527 -2
- data/resources/locales/hi/languages.yml +77 -0
- data/resources/locales/hi/plurals.yml +1 -1
- data/resources/locales/hi/territories.yml +1 -0
- data/resources/locales/hr/calendars.yml +9 -0
- data/resources/locales/hr/currencies.yml +9 -0
- data/resources/locales/hr/languages.yml +4 -0
- data/resources/locales/hr/plurals.yml +1 -1
- data/resources/locales/hr/territories.yml +1 -0
- data/resources/locales/hu/calendars.yml +9 -0
- data/resources/locales/hu/currencies.yml +274 -0
- data/resources/locales/hu/languages.yml +4 -0
- data/resources/locales/hu/numbers.yml +1 -0
- data/resources/locales/hu/plurals.yml +1 -1
- data/resources/locales/hu/territories.yml +1 -0
- data/resources/locales/hu/units.yml +28 -0
- data/resources/locales/id/calendars.yml +9 -0
- data/resources/locales/id/currencies.yml +311 -0
- data/resources/locales/id/languages.yml +4 -0
- data/resources/locales/id/numbers.yml +1 -0
- data/resources/locales/id/plurals.yml +1 -1
- data/resources/locales/id/territories.yml +1 -0
- data/resources/locales/id/units.yml +28 -0
- data/resources/locales/is/calendars.yml +13 -4
- data/resources/locales/is/currencies.yml +438 -2
- data/resources/locales/is/languages.yml +85 -0
- data/resources/locales/is/plurals.yml +1 -1
- data/resources/locales/is/territories.yml +1 -0
- data/resources/locales/it/calendars.yml +11 -1
- data/resources/locales/it/currencies.yml +196 -1
- data/resources/locales/it/languages.yml +4 -0
- data/resources/locales/it/plurals.yml +1 -1
- data/resources/locales/it/territories.yml +1 -0
- data/resources/locales/ja/calendars.yml +24 -2
- data/resources/locales/ja/currencies.yml +311 -0
- data/resources/locales/ja/languages.yml +4 -0
- data/resources/locales/ja/numbers.yml +1 -0
- data/resources/locales/ja/plurals.yml +1 -1
- data/resources/locales/ja/territories.yml +1 -0
- data/resources/locales/ja/units.yml +28 -0
- data/resources/locales/ko/calendars.yml +27 -3
- data/resources/locales/ko/currencies.yml +319 -2
- data/resources/locales/ko/languages.yml +4 -0
- data/resources/locales/ko/numbers.yml +1 -0
- data/resources/locales/ko/plurals.yml +1 -1
- data/resources/locales/ko/territories.yml +1 -0
- data/resources/locales/ko/units.yml +28 -0
- data/resources/locales/lv/calendars.yml +18 -6
- data/resources/locales/lv/currencies.yml +315 -0
- data/resources/locales/lv/languages.yml +4 -0
- data/resources/locales/lv/plurals.yml +1 -1
- data/resources/locales/lv/territories.yml +1 -0
- data/resources/locales/ms/calendars.yml +20 -7
- data/resources/locales/ms/currencies.yml +575 -2
- data/resources/locales/ms/languages.yml +400 -0
- data/resources/locales/ms/numbers.yml +1 -0
- data/resources/locales/ms/plurals.yml +1 -1
- data/resources/locales/ms/territories.yml +1 -0
- data/resources/locales/ms/units.yml +28 -0
- data/resources/locales/nb/calendars.yml +9 -0
- data/resources/locales/nb/currencies.yml +69 -2
- data/resources/locales/nb/languages.yml +8 -0
- data/resources/locales/nb/plurals.yml +1 -1
- data/resources/locales/nb/territories.yml +1 -0
- data/resources/locales/nl/calendars.yml +9 -0
- data/resources/locales/nl/currencies.yml +274 -0
- data/resources/locales/nl/languages.yml +4 -0
- data/resources/locales/nl/plurals.yml +1 -1
- data/resources/locales/nl/territories.yml +1 -0
- data/resources/locales/pl/calendars.yml +17 -6
- data/resources/locales/pl/currencies.yml +181 -2
- data/resources/locales/pl/languages.yml +68 -0
- data/resources/locales/pl/plurals.yml +1 -1
- data/resources/locales/pl/territories.yml +1 -0
- data/resources/locales/pt/calendars.yml +10 -1
- data/resources/locales/pt/currencies.yml +9 -0
- data/resources/locales/pt/languages.yml +61 -0
- data/resources/locales/pt/plurals.yml +1 -1
- data/resources/locales/pt/territories.yml +1 -0
- data/resources/locales/ro/calendars.yml +18 -6
- data/resources/locales/ro/currencies.yml +183 -1
- data/resources/locales/ro/languages.yml +4 -0
- data/resources/locales/ro/plurals.yml +1 -1
- data/resources/locales/ro/territories.yml +1 -0
- data/resources/locales/ru/calendars.yml +9 -0
- data/resources/locales/ru/currencies.yml +181 -0
- data/resources/locales/ru/languages.yml +24 -0
- data/resources/locales/ru/plurals.yml +1 -1
- data/resources/locales/ru/territories.yml +1 -0
- data/resources/locales/sk/calendars.yml +20 -7
- data/resources/locales/sk/currencies.yml +291 -0
- data/resources/locales/sk/languages.yml +4 -0
- data/resources/locales/sk/plurals.yml +1 -1
- data/resources/locales/sk/territories.yml +1 -0
- data/resources/locales/sq/calendars.yml +46 -22
- data/resources/locales/sq/currencies.yml +862 -2
- data/resources/locales/sq/languages.yml +563 -0
- data/resources/locales/sq/lists.yml +2 -2
- data/resources/locales/sq/numbers.yml +17 -3
- data/resources/locales/sq/plurals.yml +1 -1
- data/resources/locales/sq/territories.yml +104 -0
- data/resources/locales/sq/units.yml +49 -14
- data/resources/locales/sr/calendars.yml +16 -5
- data/resources/locales/sr/currencies.yml +10 -1
- data/resources/locales/sr/languages.yml +67 -0
- data/resources/locales/sr/plurals.yml +1 -1
- data/resources/locales/sr/territories.yml +1 -0
- data/resources/locales/sv/calendars.yml +9 -0
- data/resources/locales/sv/currencies.yml +9 -0
- data/resources/locales/sv/languages.yml +4 -0
- data/resources/locales/sv/plurals.yml +1 -1
- data/resources/locales/sv/territories.yml +1 -0
- data/resources/locales/ta/calendars.yml +15 -5
- data/resources/locales/ta/currencies.yml +568 -1
- data/resources/locales/ta/languages.yml +68 -0
- data/resources/locales/ta/plurals.yml +1 -1
- data/resources/locales/ta/territories.yml +1 -0
- data/resources/locales/th/calendars.yml +9 -0
- data/resources/locales/th/currencies.yml +311 -0
- data/resources/locales/th/languages.yml +5 -0
- data/resources/locales/th/numbers.yml +1 -0
- data/resources/locales/th/plurals.yml +1 -1
- data/resources/locales/th/territories.yml +1 -0
- data/resources/locales/th/units.yml +28 -0
- data/resources/locales/tr/calendars.yml +14 -2
- data/resources/locales/tr/currencies.yml +343 -0
- data/resources/locales/tr/languages.yml +4 -0
- data/resources/locales/tr/numbers.yml +1 -0
- data/resources/locales/tr/plurals.yml +1 -1
- data/resources/locales/tr/territories.yml +1 -0
- data/resources/locales/tr/units.yml +28 -0
- data/resources/locales/uk/calendars.yml +18 -6
- data/resources/locales/uk/currencies.yml +266 -0
- data/resources/locales/uk/languages.yml +5 -0
- data/resources/locales/uk/plurals.yml +1 -1
- data/resources/locales/uk/territories.yml +1 -0
- data/resources/locales/ur/calendars.yml +44 -9
- data/resources/locales/ur/currencies.yml +555 -1
- data/resources/locales/ur/languages.yml +399 -0
- data/resources/locales/ur/numbers.yml +13 -0
- data/resources/locales/ur/plurals.yml +1 -1
- data/resources/locales/ur/territories.yml +1 -0
- data/resources/locales/vi/calendars.yml +20 -7
- data/resources/locales/vi/currencies.yml +311 -0
- data/resources/locales/vi/languages.yml +7 -0
- data/resources/locales/vi/numbers.yml +1 -0
- data/resources/locales/vi/plurals.yml +1 -1
- data/resources/locales/vi/territories.yml +1 -0
- data/resources/locales/vi/units.yml +28 -0
- data/resources/locales/zh/calendars.yml +7 -0
- data/resources/locales/zh/currencies.yml +311 -0
- data/resources/locales/zh/languages.yml +4 -0
- data/resources/locales/zh/numbers.yml +1 -0
- data/resources/locales/zh/plurals.yml +1 -1
- data/resources/locales/zh/territories.yml +1 -0
- data/resources/locales/zh/units.yml +28 -0
- data/resources/locales/zh-Hant/calendars.yml +71 -9
- data/resources/locales/zh-Hant/currencies.yml +311 -0
- data/resources/locales/zh-Hant/languages.yml +4 -0
- data/resources/locales/zh-Hant/numbers.yml +1 -0
- data/resources/locales/zh-Hant/plurals.yml +2 -2
- data/resources/locales/zh-Hant/territories.yml +1 -0
- data/resources/locales/zh-Hant/units.yml +28 -0
- data/resources/shared/language_codes_table.dump +0 -0
- data/spec/collation/tailoring_spec.rb +1 -2
- data/spec/parsers/number_parser_spec.rb +0 -2
- data/spec/utils/yaml/yaml_spec.rb +4 -1
- metadata +87 -77
data/Gemfile
CHANGED
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -80,7 +80,7 @@ namespace :update do
|
|
80
80
|
TwitterCldr::Resources::TailoringImporter.new(
|
81
81
|
args[:cldr_path] || './vendor/cldr',
|
82
82
|
'./resources/collation/tailoring',
|
83
|
-
args[:icu4j_jar_path] ||'./vendor/icu4j-
|
83
|
+
args[:icu4j_jar_path] || './vendor/icu4j-51_2.jar'
|
84
84
|
).import(TwitterCldr.supported_locales)
|
85
85
|
end
|
86
86
|
|
@@ -12,7 +12,8 @@ module TwitterCldr
|
|
12
12
|
|
13
13
|
def update_dumps
|
14
14
|
update_default_trie_dump
|
15
|
-
TwitterCldr.supported_locales
|
15
|
+
#TwitterCldr.supported_locales
|
16
|
+
[:he].each { |locale| update_tailoring_trie_dump(locale) }
|
16
17
|
end
|
17
18
|
|
18
19
|
private
|
@@ -8,8 +8,8 @@ require 'cldr/download'
|
|
8
8
|
module TwitterCldr
|
9
9
|
module Resources
|
10
10
|
|
11
|
-
CLDR_URL = 'http://unicode.org/Public/cldr/23/core.zip'
|
12
|
-
ICU4J_URL = 'http://download.icu-project.org/files/icu4j/
|
11
|
+
CLDR_URL = 'http://unicode.org/Public/cldr/23.1/core.zip'
|
12
|
+
ICU4J_URL = 'http://download.icu-project.org/files/icu4j/51.2/icu4j-51_2.jar'
|
13
13
|
|
14
14
|
class << self
|
15
15
|
|
@@ -46,14 +46,27 @@ module TwitterCldr
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def import_components
|
49
|
-
|
49
|
+
export_args = {
|
50
|
+
:locales => TwitterCldr.supported_locales,
|
51
|
+
:components => COMPONENTS,
|
52
|
+
:target => File.join(@output_path, 'locales'),
|
53
|
+
:merge => true # fill in the gaps, eg fill in sub-locales like en_GB with en
|
54
|
+
}
|
55
|
+
|
56
|
+
Cldr::Export.export(export_args) do |component, locale, path|
|
50
57
|
add_buddhist_calendar(component, locale, path)
|
51
58
|
process_plurals(component, locale, path)
|
52
59
|
downcase_territory_codes(component, locale, path)
|
53
60
|
deep_symbolize(component, locale, path)
|
54
61
|
end
|
55
62
|
|
56
|
-
|
63
|
+
export_args = {
|
64
|
+
:components => ["currency_digits_and_rounding"],
|
65
|
+
:target => File.join(@output_path, 'shared'),
|
66
|
+
:merge => true
|
67
|
+
}
|
68
|
+
|
69
|
+
Cldr::Export.export(export_args) do |component, locale, path|
|
57
70
|
deep_symbolize(component, locale, path)
|
58
71
|
end
|
59
72
|
|
@@ -24,15 +24,19 @@ module TwitterCldr
|
|
24
24
|
LAST_BYTE_MASK = 0xFF
|
25
25
|
|
26
26
|
LOCALES_MAP = {
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
:'zh-Hant' => :'zh_Hant',
|
28
|
+
:id => :root,
|
29
|
+
:it => :root,
|
30
|
+
:ms => :root,
|
31
|
+
:nl => :root,
|
32
|
+
:pt => :root
|
33
33
|
}
|
34
34
|
|
35
|
-
EMPTY_TAILORING_DATA = {
|
35
|
+
EMPTY_TAILORING_DATA = {
|
36
|
+
:collator_options => {},
|
37
|
+
:tailored_table => '',
|
38
|
+
:suppressed_contractions => ''
|
39
|
+
}
|
36
40
|
|
37
41
|
class ImportError < RuntimeError; end
|
38
42
|
|
data/lib/twitter_cldr/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
:en:
|
3
|
+
:units:
|
4
|
+
:day:
|
5
|
+
:abbreviated:
|
6
|
+
:one: ! '{0}d'
|
7
|
+
:other: ! '{0}d'
|
8
|
+
:hour:
|
9
|
+
:abbreviated:
|
10
|
+
:one: ! '{0}h'
|
11
|
+
:other: ! '{0}h'
|
12
|
+
:minute:
|
13
|
+
:abbreviated:
|
14
|
+
:one: ! '{0}m'
|
15
|
+
:other: ! '{0}m'
|
16
|
+
:second:
|
17
|
+
:abbreviated:
|
18
|
+
:one: ! '{0}s'
|
19
|
+
:other: ! '{0}s'
|
@@ -3,11 +3,15 @@
|
|
3
3
|
:calendars:
|
4
4
|
:gregorian:
|
5
5
|
:additional_formats:
|
6
|
+
:EHm: E HH:mm
|
7
|
+
:EHms: E HH:mm:ss
|
6
8
|
:Ed: E d
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
10
|
-
:
|
9
|
+
:Ehm: E h:mm a
|
10
|
+
:Ehms: E h:mm:ss a
|
11
|
+
:Gy: y G
|
12
|
+
:GyMMM: MMM y G
|
13
|
+
:GyMMMEd: E, MMM d, y G
|
14
|
+
:GyMMMd: MMM d, y G
|
11
15
|
:H: HH
|
12
16
|
:Hm: HH:mm
|
13
17
|
:Hms: HH:mm:ss
|
@@ -89,7 +93,8 @@
|
|
89
93
|
0: voor Christus
|
90
94
|
1: na Christus
|
91
95
|
:narrow:
|
92
|
-
0:
|
96
|
+
0: B
|
97
|
+
1: A
|
93
98
|
:fields:
|
94
99
|
:day: Dag
|
95
100
|
:dayperiod: AM/PM
|
@@ -190,10 +195,17 @@
|
|
190
195
|
:periods:
|
191
196
|
:format:
|
192
197
|
:abbreviated: :calendars.gregorian.dayPeriods.format.wide
|
193
|
-
:narrow:
|
198
|
+
:narrow:
|
199
|
+
:am: a
|
200
|
+
:noon: n
|
201
|
+
:pm: p
|
194
202
|
:wide:
|
195
203
|
:am: vm.
|
204
|
+
:noon: noon
|
196
205
|
:pm: nm.
|
206
|
+
:variant:
|
207
|
+
:am: a.m.
|
208
|
+
:pm: p.m.
|
197
209
|
:stand-alone: {}
|
198
210
|
:quarters:
|
199
211
|
:format:
|