refinerycms-i18n 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/REFINERY_README +8 -0
- data/Rakefile +34 -0
- data/config/locales/ar.yml +121 -0
- data/config/locales/bg.yml +198 -0
- data/config/locales/bn-IN.yml +180 -0
- data/config/locales/bs.yml +114 -0
- data/config/locales/ca-ES.yml +155 -0
- data/config/locales/cz.rb +166 -0
- data/config/locales/da.yml +167 -0
- data/config/locales/de-AT.yml +140 -0
- data/config/locales/de.yml +141 -0
- data/config/locales/dsb.yml +182 -0
- data/config/locales/el.yml +191 -0
- data/config/locales/es-AR.yml +168 -0
- data/config/locales/es-CO.yml +146 -0
- data/config/locales/es-MX.yml +118 -0
- data/config/locales/es.yml +186 -0
- data/config/locales/et.yml +109 -0
- data/config/locales/fa.yml +119 -0
- data/config/locales/fi.yml +154 -0
- data/config/locales/fr-CH.yml +123 -0
- data/config/locales/fr.yml +140 -0
- data/config/locales/fun/en-AU.rb +105 -0
- data/config/locales/fun/gibberish.rb +109 -0
- data/config/locales/fur.yml +141 -0
- data/config/locales/gl-ES.yml +193 -0
- data/config/locales/he.yml +103 -0
- data/config/locales/hr.yml +116 -0
- data/config/locales/hsb.yml +190 -0
- data/config/locales/hu.yml +144 -0
- data/config/locales/id.yml +122 -0
- data/config/locales/is.yml +142 -0
- data/config/locales/it.yml +146 -0
- data/config/locales/ja.yml +139 -0
- data/config/locales/ko.yml +153 -0
- data/config/locales/lo.yml +201 -0
- data/config/locales/lt.yml +141 -0
- data/config/locales/lv.yml +132 -0
- data/config/locales/mk.yml +115 -0
- data/config/locales/nb.yml +103 -0
- data/config/locales/nl.yml +173 -0
- data/config/locales/nn.yml +96 -0
- data/config/locales/pl.yml +127 -0
- data/config/locales/pt-BR.yml +148 -0
- data/config/locales/pt-PT.yml +220 -0
- data/config/locales/rm.yml +134 -0
- data/config/locales/ro.yml +152 -0
- data/config/locales/ru.yml +210 -0
- data/config/locales/sk.yml +139 -0
- data/config/locales/sl.yml +190 -0
- data/config/locales/sr-Latn.yml +116 -0
- data/config/locales/sr.yml +116 -0
- data/config/locales/sv-SE.yml +191 -0
- data/config/locales/sw.yml +123 -0
- data/config/locales/th.rb +222 -0
- data/config/locales/tr.yml +139 -0
- data/config/locales/uk.yml +237 -0
- data/config/locales/vi.yml +198 -0
- data/config/locales/zh-CN.yml +131 -0
- data/config/locales/zh-TW.yml +132 -0
- data/i18n-js-readme.rdoc +249 -0
- data/lib/gemspec.rb +29 -0
- data/lib/refinery/i18n-filter.rb +38 -0
- data/lib/refinery/i18n-js.rb +132 -0
- data/lib/refinery/i18n-js.yml +4 -0
- data/lib/refinery/i18n.js +339 -0
- data/lib/refinery/i18n.rb +146 -0
- data/lib/refinery/translate.rb +13 -0
- data/lib/tasks/i18n-js_tasks.rake +16 -0
- data/lib/tasks/translate.rake +200 -0
- data/lib/translate/file.rb +35 -0
- data/lib/translate/keys.rb +123 -0
- data/lib/translate/log.rb +39 -0
- data/lib/translate/storage.rb +20 -0
- data/test/i18n-test.html +50 -0
- data/test/i18n-test.js +661 -0
- data/test/i18n_js_test.rb +168 -0
- data/test/jsunittest/jsunittest.js +1017 -0
- data/test/jsunittest/unittest.css +54 -0
- data/test/resources/custom_path.yml +4 -0
- data/test/resources/default.yml +4 -0
- data/test/resources/locales.yml +76 -0
- data/test/resources/multiple_files.yml +6 -0
- data/test/resources/no_scope.yml +3 -0
- data/test/resources/simple_scope.yml +4 -0
- data/test/test_helper.rb +24 -0
- data/translate-readme.md +61 -0
- metadata +154 -0
@@ -0,0 +1,191 @@
|
|
1
|
+
# Swedish translation.
|
2
|
+
# By Johan Lundström (johanlunds@gmail.com) with parts taken from http://github.com/daniel/swe_rails.
|
3
|
+
# With contributions by:
|
4
|
+
# * Sven Dahlstrand (sven.dahlstrand@gmail.com)
|
5
|
+
# * Henrik Nyh (henrik@nyh.se)
|
6
|
+
|
7
|
+
"sv-SE":
|
8
|
+
number:
|
9
|
+
# Used in number_with_delimiter()
|
10
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
11
|
+
format:
|
12
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
13
|
+
separator: ","
|
14
|
+
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
15
|
+
delimiter: " "
|
16
|
+
# Number of decimals after the separator (the number 1 with a precision of 2 gives: 1.00)
|
17
|
+
precision: 2
|
18
|
+
|
19
|
+
# Used in number_to_currency()
|
20
|
+
currency:
|
21
|
+
format:
|
22
|
+
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
|
23
|
+
format: "%n %u"
|
24
|
+
unit: "kr"
|
25
|
+
|
26
|
+
# Used in number_to_human_size()
|
27
|
+
human:
|
28
|
+
format:
|
29
|
+
# These three are to override number.format and are optional
|
30
|
+
# separator:
|
31
|
+
# delimiter: ""
|
32
|
+
precision: 1
|
33
|
+
storage_units:
|
34
|
+
# Storage units output formatting.
|
35
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
36
|
+
format: "%n %u"
|
37
|
+
units:
|
38
|
+
byte:
|
39
|
+
one: "Byte"
|
40
|
+
other: "Bytes"
|
41
|
+
kb: "KB"
|
42
|
+
mb: "MB"
|
43
|
+
gb: "GB"
|
44
|
+
tb: "TB"
|
45
|
+
|
46
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
47
|
+
datetime:
|
48
|
+
distance_in_words:
|
49
|
+
half_a_minute: "en halv minut"
|
50
|
+
less_than_x_seconds:
|
51
|
+
one: "mindre än en sekund"
|
52
|
+
other: "mindre än %{count} sekunder"
|
53
|
+
x_seconds:
|
54
|
+
one: "en sekund"
|
55
|
+
other: "%{count} sekunder"
|
56
|
+
less_than_x_minutes:
|
57
|
+
one: "mindre än en minut"
|
58
|
+
other: "mindre än %{count} minuter"
|
59
|
+
x_minutes:
|
60
|
+
one: "en minut"
|
61
|
+
other: "%{count} minuter"
|
62
|
+
about_x_hours:
|
63
|
+
one: "ungefär en timme"
|
64
|
+
other: "ungefär %{count} timmar"
|
65
|
+
x_days:
|
66
|
+
one: "en dag"
|
67
|
+
other: "%{count} dagar"
|
68
|
+
about_x_months:
|
69
|
+
one: "ungefär en månad"
|
70
|
+
other: "ungefär %{count} månader"
|
71
|
+
x_months:
|
72
|
+
one: "en månad"
|
73
|
+
other: "%{count} månader"
|
74
|
+
about_x_years:
|
75
|
+
one: "ungefär ett år"
|
76
|
+
other: "ungefär %{count} år"
|
77
|
+
over_x_years:
|
78
|
+
one: "mer än ett år"
|
79
|
+
other: "mer än %{count} år"
|
80
|
+
almost_x_years:
|
81
|
+
one: "nästan ett år"
|
82
|
+
other: "nästan %{count} år"
|
83
|
+
prompts:
|
84
|
+
year: "År"
|
85
|
+
month: "Månad"
|
86
|
+
day: "Dag"
|
87
|
+
hour: "Timme"
|
88
|
+
minute: "Minut"
|
89
|
+
second: "Sekund"
|
90
|
+
|
91
|
+
activemodel:
|
92
|
+
errors:
|
93
|
+
template:
|
94
|
+
header:
|
95
|
+
one: "Ett fel förhindrade denna %{model} från att sparas"
|
96
|
+
other: "%{count} fel förhindrade denna %{model} från att sparas"
|
97
|
+
# The variable :count is also available
|
98
|
+
body: "Det var problem med följande fält:"
|
99
|
+
|
100
|
+
activerecord:
|
101
|
+
errors:
|
102
|
+
# model.errors.full_messages format.
|
103
|
+
format: "%{attribute} %{message}"
|
104
|
+
|
105
|
+
# The values :model, :attribute and :value are always available for interpolation
|
106
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
107
|
+
messages:
|
108
|
+
inclusion: "finns inte i listan"
|
109
|
+
exclusion: "är reserverat"
|
110
|
+
invalid: "är ogiltigt"
|
111
|
+
confirmation: "stämmer inte överens"
|
112
|
+
accepted: "måste vara accepterad"
|
113
|
+
empty: "får ej vara tom"
|
114
|
+
blank: "måste anges"
|
115
|
+
too_long: "är för lång (maximum är %{count} tecken)"
|
116
|
+
too_short: "är för kort (minimum är %{count} tecken)"
|
117
|
+
wrong_length: "har fel längd (ska vara %{count} tecken)"
|
118
|
+
taken: "har redan tagits"
|
119
|
+
not_a_number: "är inte ett nummer"
|
120
|
+
greater_than: "måste vara större än %{count}"
|
121
|
+
greater_than_or_equal_to: "måste vara större än eller lika med %{count}"
|
122
|
+
equal_to: "måste vara samma som"
|
123
|
+
less_than: "måste vara mindre än %{count}"
|
124
|
+
less_than_or_equal_to: "måste vara mindre än eller lika med %{count}"
|
125
|
+
odd: "måste vara udda"
|
126
|
+
even: "måste vara jämnt"
|
127
|
+
record_invalid: "Ett fel uppstod: %{errors}"
|
128
|
+
# Append your own errors here or at the model/attributes scope.
|
129
|
+
|
130
|
+
# You can define own errors for models or model attributes.
|
131
|
+
# The values :model, :attribute and :value are always available for interpolation.
|
132
|
+
#
|
133
|
+
# For example,
|
134
|
+
# models:
|
135
|
+
# user:
|
136
|
+
# blank: "This is a custom blank message for %{model}: %{attribute}"
|
137
|
+
# attributes:
|
138
|
+
# login:
|
139
|
+
# blank: "This is a custom blank message for User login"
|
140
|
+
# Will define custom blank validation message for User model and
|
141
|
+
# custom blank validation message for login attribute of User model.
|
142
|
+
# models:
|
143
|
+
|
144
|
+
# Translate model names. Used in Model.human_name().
|
145
|
+
#models:
|
146
|
+
# For example,
|
147
|
+
# user: "Dude"
|
148
|
+
# will translate User model name to "Dude"
|
149
|
+
|
150
|
+
# Translate model attribute names. Used in Model.human_attribute_name(attribute).
|
151
|
+
#attributes:
|
152
|
+
# For example,
|
153
|
+
# user:
|
154
|
+
# login: "Handle"
|
155
|
+
# will translate User attribute "login" as "Handle"
|
156
|
+
|
157
|
+
date:
|
158
|
+
formats:
|
159
|
+
# Use the strftime parameters for formats.
|
160
|
+
# When no format has been given, it uses default.
|
161
|
+
# You can provide other formats here if you like!
|
162
|
+
default: "%Y-%m-%d"
|
163
|
+
short: "%e %b"
|
164
|
+
long: "%e %B %Y"
|
165
|
+
|
166
|
+
day_names: [söndag, måndag, tisdag, onsdag, torsdag, fredag, lördag]
|
167
|
+
abbr_day_names: [sön, mån, tis, ons, tor, fre, lör]
|
168
|
+
|
169
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
170
|
+
month_names: [~, januari, februari, mars, april, maj, juni, juli, augusti, september, oktober, november, december]
|
171
|
+
abbr_month_names: [~, jan, feb, mar, apr, maj, jun, jul, aug, sep, okt, nov, dec]
|
172
|
+
# Used in date_select and datime_select.
|
173
|
+
order: [ :day, :month, :year ]
|
174
|
+
|
175
|
+
time:
|
176
|
+
formats:
|
177
|
+
default: "%a, %e %b %Y %H:%M:%S %z"
|
178
|
+
short: "%e %b %H:%M"
|
179
|
+
long: "%e %B %Y %H:%M"
|
180
|
+
am: ""
|
181
|
+
pm: ""
|
182
|
+
|
183
|
+
# Used in array.to_sentence.
|
184
|
+
support:
|
185
|
+
array:
|
186
|
+
words_connector: ", "
|
187
|
+
two_words_connector: " och "
|
188
|
+
last_word_connector: " och "
|
189
|
+
select:
|
190
|
+
# default value for :prompt => true in FormOptionsHelper
|
191
|
+
prompt: "Välj"
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# Swahili translations for Rails
|
2
|
+
# by Joachim Mangilima (joachimm3@gmail.com) and Matthew Todd (http://matthewtodd.org)
|
3
|
+
|
4
|
+
sw:
|
5
|
+
date:
|
6
|
+
formats:
|
7
|
+
default: "%Y-%m-%d"
|
8
|
+
# TODO the short and long date formats are temporary until I can talk with someone...
|
9
|
+
short: "%e ya %b"
|
10
|
+
long: "%e ya %B, %Y"
|
11
|
+
|
12
|
+
day_names: [Jumpili, Jumatatu, Jumanne, Jumatano, Alhamisi, Ijumaa, Jumamosi]
|
13
|
+
abbr_day_names: [J2, J3, J4, J5, Al, Ij, J1]
|
14
|
+
month_names: [~, Januari, Februari, Machi, Aprili, Mei, Juni, Julai, Agosti, Septemba, Oktoba, Novemba, Desemba]
|
15
|
+
# TODO these abbreviated month names are temporary until I can talk with someone...
|
16
|
+
abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
|
17
|
+
order: [ :year, :month, :day ]
|
18
|
+
|
19
|
+
# time:
|
20
|
+
# formats:
|
21
|
+
# default: "%A, %e. %B %Y, %H:%M Uhr"
|
22
|
+
# short: "%e. %B, %H:%M Uhr"
|
23
|
+
# long: "%A, %e. %B %Y, %H:%M Uhr"
|
24
|
+
#
|
25
|
+
# am: "vormittags"
|
26
|
+
# pm: "nachmittags"
|
27
|
+
|
28
|
+
datetime:
|
29
|
+
distance_in_words:
|
30
|
+
half_a_minute: 'nusu dakika'
|
31
|
+
less_than_x_seconds:
|
32
|
+
zero: 'chini ya sekunde 1'
|
33
|
+
one: 'chini ya sekunde 1'
|
34
|
+
other: 'chini ya sekunde %{count}'
|
35
|
+
x_seconds:
|
36
|
+
one: 'sekunde 1'
|
37
|
+
other: 'sekunde %{count}'
|
38
|
+
less_than_x_minutes:
|
39
|
+
zero: 'chini ya dakika 1'
|
40
|
+
one: 'chini ya dakika 1'
|
41
|
+
other: 'chini ya dakika %{count}'
|
42
|
+
x_minutes:
|
43
|
+
one: 'dakika 1'
|
44
|
+
other: 'dakika %{count}'
|
45
|
+
about_x_hours:
|
46
|
+
one: 'kama saa 1'
|
47
|
+
other: 'kama masaa %{count}'
|
48
|
+
x_days:
|
49
|
+
one: 'siku 1'
|
50
|
+
other: 'siku %{count}'
|
51
|
+
about_x_months:
|
52
|
+
one: 'kama mwezi 1'
|
53
|
+
other: 'kama miezi %{count}'
|
54
|
+
x_months:
|
55
|
+
one: 'mwezi 1'
|
56
|
+
other: 'miezi %{count}'
|
57
|
+
about_x_years:
|
58
|
+
one: 'kama mwaka 1'
|
59
|
+
other: 'kama miaka %{count}'
|
60
|
+
over_x_years:
|
61
|
+
one: 'zaidi ya mwaka 1'
|
62
|
+
other: 'zaidi ya miaka %{count}'
|
63
|
+
#
|
64
|
+
# number:
|
65
|
+
# format:
|
66
|
+
# precision: 2
|
67
|
+
# separator: ','
|
68
|
+
# delimiter: '.'
|
69
|
+
# currency:
|
70
|
+
# format:
|
71
|
+
# unit: '€'
|
72
|
+
# format: '%n%u'
|
73
|
+
# separator:
|
74
|
+
# delimiter:
|
75
|
+
# precision:
|
76
|
+
# percentage:
|
77
|
+
# format:
|
78
|
+
# delimiter: ""
|
79
|
+
# precision:
|
80
|
+
# format:
|
81
|
+
# delimiter: ""
|
82
|
+
# human:
|
83
|
+
# format:
|
84
|
+
# delimiter: ""
|
85
|
+
# precision: 1
|
86
|
+
#
|
87
|
+
support:
|
88
|
+
array:
|
89
|
+
words_connector: ", "
|
90
|
+
two_words_connector: " na "
|
91
|
+
last_word_connector: ", na "
|
92
|
+
|
93
|
+
activerecord:
|
94
|
+
errors:
|
95
|
+
# TODO this error message template could use some work
|
96
|
+
template:
|
97
|
+
header:
|
98
|
+
one: "Tumeshindwa kuhifadhi %{model} hii kwa sababu ya jambo limoja."
|
99
|
+
other: "Tumeshindwa kuhifadhi %{model} hii kwa sababu ya mambo %{count}."
|
100
|
+
body: ""
|
101
|
+
|
102
|
+
# The values :model, :attribute and :value are always available for interpolation
|
103
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
104
|
+
messages:
|
105
|
+
# inclusion: "is not included in the list"
|
106
|
+
exclusion: "haiwezi kutumika"
|
107
|
+
invalid: "haifai"
|
108
|
+
confirmation: "haifanani na hapo chini"
|
109
|
+
# accepted: "must be accepted"
|
110
|
+
empty: "haitakiwi kuwa wazi"
|
111
|
+
blank: "haitakiwi kuwa wazi"
|
112
|
+
too_long: "ndefu sana (isizidi herufi %{count})"
|
113
|
+
too_short: "fupi mno (isipungue herufi %{count})"
|
114
|
+
# wrong_length: "is the wrong length (should be %{count} characters)"
|
115
|
+
taken: "imeshachukuliwa"
|
116
|
+
not_a_number: "inaruhusiwa namba tu"
|
117
|
+
# greater_than: "must be greater than %{count}"
|
118
|
+
# greater_than_or_equal_to: "must be greater than or equal to %{count}"
|
119
|
+
# equal_to: "must be equal to %{count}"
|
120
|
+
# less_than: "must be less than %{count}"
|
121
|
+
# less_than_or_equal_to: "must be less than or equal to %{count}"
|
122
|
+
# odd: "must be odd"
|
123
|
+
# even: "must be even"
|
@@ -0,0 +1,222 @@
|
|
1
|
+
# Thai translation for Ruby on Rails
|
2
|
+
# original by Prem Sichanugrist (s@sikachu.com/sikandsak@gmail.com)
|
3
|
+
# activerecord keys fixed by Jittat Fakcharoenphol (jittat@gmail.com)
|
4
|
+
#
|
5
|
+
# Note: You must install i18n gem in order to use this language pack.
|
6
|
+
# If you're calling I18n.localize(Time.now), the year will be in Bhuddhist calendar
|
7
|
+
|
8
|
+
{
|
9
|
+
:'th' => {
|
10
|
+
:number => {
|
11
|
+
# Used in number_with_delimiter()
|
12
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
13
|
+
:format => {
|
14
|
+
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
|
15
|
+
:separator => ".",
|
16
|
+
# Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
|
17
|
+
:delimiter => ",",
|
18
|
+
# Number of decimals, behind the separator (the number 1 with a precision of 2 :gives => 1.00)
|
19
|
+
:precision => 3
|
20
|
+
},
|
21
|
+
|
22
|
+
# Used in number_to_currency()
|
23
|
+
:currency => {
|
24
|
+
:format => {
|
25
|
+
# Where is the currency sign? %u is the currency unit, %n the number :(default => $5.00)
|
26
|
+
:format => "%n %u",
|
27
|
+
:unit => "บาท",
|
28
|
+
# These three are to override number.format and are optional
|
29
|
+
:separator => ".",
|
30
|
+
:delimiter => ",",
|
31
|
+
:precision => 2
|
32
|
+
}
|
33
|
+
},
|
34
|
+
|
35
|
+
# Used in number_to_percentage()
|
36
|
+
:percentage => {
|
37
|
+
:format => {
|
38
|
+
# These three are to override number.format and are optional
|
39
|
+
# :separator => ".",
|
40
|
+
:delimiter => "",
|
41
|
+
# :precision => 3
|
42
|
+
}
|
43
|
+
},
|
44
|
+
|
45
|
+
# Used in number_to_precision()
|
46
|
+
:precision => {
|
47
|
+
:format => {
|
48
|
+
# These three are to override number.format and are optional
|
49
|
+
# :separator => ".",
|
50
|
+
:delimiter => "",
|
51
|
+
# :precision => 3
|
52
|
+
}
|
53
|
+
},
|
54
|
+
|
55
|
+
# Used in number_to_human_size()
|
56
|
+
:human => {
|
57
|
+
:format => {
|
58
|
+
# These three are to override number.format and are optional
|
59
|
+
# :separator => ".",
|
60
|
+
:delimiter => ",",
|
61
|
+
:precision => 1
|
62
|
+
},
|
63
|
+
|
64
|
+
:storage_units => {
|
65
|
+
# Storage units output formatting.
|
66
|
+
# %u is the storage unit, %n is the number :(default => 2 MB)
|
67
|
+
:format => "%n %u",
|
68
|
+
:units => {
|
69
|
+
:byte => {
|
70
|
+
:one => "Byte",
|
71
|
+
:other => "Bytes"
|
72
|
+
},
|
73
|
+
:kb => "KB",
|
74
|
+
:mb => "MB",
|
75
|
+
:gb => "GB",
|
76
|
+
:tb => "TB"
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
|
82
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
83
|
+
:datetime => {
|
84
|
+
:distance_in_words => {
|
85
|
+
:half_a_minute => "ครึ่งนาที",
|
86
|
+
:less_than_x_seconds => "น้อยกว่า %{count} วินาที",
|
87
|
+
:x_seconds => "%{count} วินาที",
|
88
|
+
:less_than_x_minutes => "น้อยกว่า %{count} นาที",
|
89
|
+
:x_minutes => "%{count} นาที",
|
90
|
+
:about_x_hours => "ประมาณ %{count} ชั่วโมง",
|
91
|
+
:x_days => "%{count} วัน",
|
92
|
+
:about_x_months => "ประมาณ %{count} เดือน",
|
93
|
+
:x_months => "%{count} เดือน",
|
94
|
+
:about_x_years => "ประมาณ %{count} ปี",
|
95
|
+
:over_x_years => "มากกว่า %{count} ปี",
|
96
|
+
:almost_x_years => "เกือบ %{count} ปี",
|
97
|
+
},
|
98
|
+
:prompts => {
|
99
|
+
:year => "ปี",
|
100
|
+
:month => "เดือน",
|
101
|
+
:day => "วัน",
|
102
|
+
:hour => "ชั่วโมง",
|
103
|
+
:minute => "นาที",
|
104
|
+
:second => "วินาที",
|
105
|
+
}
|
106
|
+
},
|
107
|
+
|
108
|
+
:activemodel => {
|
109
|
+
:errors => {
|
110
|
+
:template => {
|
111
|
+
:header => "พบข้อผิดพลาด %{count} ประการ ทำให้ไม่สามารถบันทึก%{model}ได้",
|
112
|
+
# The variable :count is also available
|
113
|
+
:body => "โปรดตรวจสอบข้อมูลต่อไปนี้:"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
|
118
|
+
:activerecord => {
|
119
|
+
:errors => {
|
120
|
+
# The values :model, :attribute and :value are always available for interpolation
|
121
|
+
# The value :count is available when applicable. Can be used for pluralization.
|
122
|
+
:messages => {
|
123
|
+
:inclusion => "ไม่ได้อยู่ในรายการ",
|
124
|
+
:exclusion => "ไม่อนุญาตให้ใช้",
|
125
|
+
:invalid => "ไม่ถูกต้อง",
|
126
|
+
:confirmation => "ไม่ตรงกับการยืนยัน",
|
127
|
+
:accepted => "ต้องถูกยอมรับ",
|
128
|
+
:empty => "ต้องไม่เว้นว่างเอาไว้",
|
129
|
+
:blank => "ต้องไม่เว้นว่างเอาไว้",
|
130
|
+
:too_long => "ยาวเกินไป (ต้องไม่เกิน %{count} ตัวอักษร)",
|
131
|
+
:too_short => "สั้นเกินไป (ต้องยาวกว่า %{count} ตัวอักษร)",
|
132
|
+
:wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว %{count} ตัวอักษร)",
|
133
|
+
:taken => "ถูกใช้ไปแล้ว",
|
134
|
+
:not_a_number => "ไม่ใช่ตัวเลข",
|
135
|
+
:greater_than => "ต้องมากกว่า %{count}",
|
136
|
+
:greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ %{count}",
|
137
|
+
:equal_to => "ต้องมีค่าเท่ากับ %{count}",
|
138
|
+
:less_than => "ต้องมีค่าน้อยกว่า %{count}",
|
139
|
+
:less_than_or_equal_to => "ต้องมีค่าน้อยกว่าหรือเท่ากับ %{count}",
|
140
|
+
:odd => "ต้องเป็นจำนวนคี่",
|
141
|
+
:even => "ต้องเป็นจำนวนคู่",
|
142
|
+
:record_invalid => "ไม่ผ่านการตรวจสอบ: %{errors}"
|
143
|
+
# Append your own errors here or at the model/attributes scope.
|
144
|
+
},
|
145
|
+
|
146
|
+
# You can define own errors for models or model attributes.
|
147
|
+
# The values :model, :attribute and :value are always available for interpolation.
|
148
|
+
#
|
149
|
+
# For example,
|
150
|
+
# :models =>
|
151
|
+
# :user =>
|
152
|
+
# :blank => "This is a custom blank message for :%{model} => %{attribute}"
|
153
|
+
# :attributes =>
|
154
|
+
# :login =>
|
155
|
+
# :blank => "This is a custom blank message for User login"
|
156
|
+
# Will define custom blank validation message for User model and
|
157
|
+
# custom blank validation message for login attribute of User model.
|
158
|
+
# models => {
|
159
|
+
#
|
160
|
+
# },
|
161
|
+
},
|
162
|
+
|
163
|
+
# Translate model names. Used in Model.human_name().
|
164
|
+
# :models => {
|
165
|
+
# For example,
|
166
|
+
# :user => "Dude"
|
167
|
+
# will translate User model name to "Dude"
|
168
|
+
# },
|
169
|
+
|
170
|
+
# Translate model attribute names. Used in Model.human_attribute_name(attribute).
|
171
|
+
# :attributes => {
|
172
|
+
# For example,
|
173
|
+
# :user =>
|
174
|
+
# :login => "Handle"
|
175
|
+
# will translate User attribute "login" as "Handle"
|
176
|
+
# },
|
177
|
+
},
|
178
|
+
|
179
|
+
:date => {
|
180
|
+
:formats => {
|
181
|
+
# Use the strftime parameters for formats.
|
182
|
+
# When no format has been given, it uses default.
|
183
|
+
# You can provide other formats here if you like!
|
184
|
+
:default => lambda { |date, opts| "%d-%m-#{date.year + 543}" },
|
185
|
+
:short => "%e %b",
|
186
|
+
:long => lambda { |date, opts| "%e %B #{date.year + 543}" },
|
187
|
+
},
|
188
|
+
|
189
|
+
:day_names => ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
|
190
|
+
:abbr_day_names => ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
|
191
|
+
|
192
|
+
# Don't forget the nil at the beginning; there's no such thing as a 0th month
|
193
|
+
:month_names => [nil, "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
|
194
|
+
:abbr_month_names => [nil, "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
|
195
|
+
# Used in date_select and datime_select.
|
196
|
+
:order => [ :day, :month, :year ]
|
197
|
+
},
|
198
|
+
|
199
|
+
:time => {
|
200
|
+
:formats => {
|
201
|
+
:default => lambda { |date, opts| "%a %d %b #{date.year + 543} %H:%M:%S %z" },
|
202
|
+
:short => "%e %b %H:%M น.",
|
203
|
+
:long => lambda { |date, opts| "%e %B #{date.year + 543} %H:%M น." },
|
204
|
+
},
|
205
|
+
:am => "",
|
206
|
+
:pm => "",
|
207
|
+
},
|
208
|
+
|
209
|
+
# Used in array.to_sentence.
|
210
|
+
:support => {
|
211
|
+
:array => {
|
212
|
+
:words_connector => ", ",
|
213
|
+
:two_words_connector => " และ ",
|
214
|
+
:last_word_connector => ", และ ",
|
215
|
+
},
|
216
|
+
:select => {
|
217
|
+
# default value for :prompt => true in FormOptionsHelper
|
218
|
+
:prompt => "โปรดเลือก"
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|