refinerycms-i18n 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +27 -9
  3. data/Gemfile +17 -7
  4. data/Rakefile +2 -0
  5. data/app/assets/images/refinery/icons/flags/ko.png +0 -0
  6. data/app/assets/images/refinery/icons/flags/{ua.png → uk.png} +0 -0
  7. data/lib/generators/refinery/i18n_generator.rb +2 -1
  8. data/lib/generators/refinery/templates/config/initializers/refinery/i18n.rb.erb +0 -2
  9. data/lib/refinery/i18n-filter.rb +4 -4
  10. data/lib/refinery/i18n.rb +10 -6
  11. data/lib/refinery/i18n/configuration.rb +10 -2
  12. data/lib/refinery/i18n/engine.rb +20 -18
  13. data/refinerycms-i18n.gemspec +8 -6
  14. data/script/rails +5 -0
  15. data/spec/{requests → features}/dashboard_locale_picker_spec.rb +2 -2
  16. data/spec/spec_helper.rb +20 -46
  17. data/spec/support/refinery/i18n/set_defaults.rb +17 -0
  18. metadata +25 -97
  19. data/config/locales/ar.yml +0 -124
  20. data/config/locales/bg.yml +0 -280
  21. data/config/locales/bn-IN.yml +0 -183
  22. data/config/locales/bs.yml +0 -117
  23. data/config/locales/ca.yml +0 -170
  24. data/config/locales/cs.rb +0 -168
  25. data/config/locales/cy.yml +0 -181
  26. data/config/locales/da.yml +0 -195
  27. data/config/locales/de-AT.yml +0 -154
  28. data/config/locales/de-CH.yml +0 -154
  29. data/config/locales/de.yml +0 -193
  30. data/config/locales/dsb.yml +0 -185
  31. data/config/locales/el.yml +0 -133
  32. data/config/locales/en-AU.yml +0 -180
  33. data/config/locales/en-GB.yml +0 -210
  34. data/config/locales/en-US.yml +0 -182
  35. data/config/locales/eo.yml +0 -182
  36. data/config/locales/es-AR.yml +0 -177
  37. data/config/locales/es-CO.yml +0 -179
  38. data/config/locales/es-MX.yml +0 -186
  39. data/config/locales/es-PE.yml +0 -124
  40. data/config/locales/es.yml +0 -285
  41. data/config/locales/et.yml +0 -187
  42. data/config/locales/eu.yml +0 -264
  43. data/config/locales/fa.yml +0 -143
  44. data/config/locales/fi.yml +0 -155
  45. data/config/locales/fr-CA.yml +0 -187
  46. data/config/locales/fr-CH.yml +0 -184
  47. data/config/locales/fr.yml +0 -182
  48. data/config/locales/fun/en-AU.rb +0 -105
  49. data/config/locales/fun/gibberish.rb +0 -109
  50. data/config/locales/fur.yml +0 -144
  51. data/config/locales/gl-ES.yml +0 -196
  52. data/config/locales/gsw-CH.yml +0 -182
  53. data/config/locales/he.yml +0 -106
  54. data/config/locales/hi-IN.yml +0 -181
  55. data/config/locales/hi.yml +0 -181
  56. data/config/locales/hr.yml +0 -119
  57. data/config/locales/hsb.yml +0 -193
  58. data/config/locales/hu.yml +0 -147
  59. data/config/locales/id.yml +0 -142
  60. data/config/locales/is.yml +0 -145
  61. data/config/locales/it.yml +0 -198
  62. data/config/locales/ja.yml +0 -191
  63. data/config/locales/ko.yml +0 -186
  64. data/config/locales/lo.yml +0 -204
  65. data/config/locales/lt.yml +0 -144
  66. data/config/locales/lv.yml +0 -181
  67. data/config/locales/mk.yml +0 -118
  68. data/config/locales/mn.yml +0 -159
  69. data/config/locales/nb.yml +0 -140
  70. data/config/locales/nl.yml +0 -186
  71. data/config/locales/nn.yml +0 -99
  72. data/config/locales/pl.yml +0 -193
  73. data/config/locales/pt-BR.yml +0 -208
  74. data/config/locales/pt-PT.yml +0 -190
  75. data/config/locales/rm.yml +0 -137
  76. data/config/locales/ro.yml +0 -155
  77. data/config/locales/ru.yml +0 -213
  78. data/config/locales/sk.yml +0 -195
  79. data/config/locales/sl.yml +0 -193
  80. data/config/locales/sr-Latn.yml +0 -119
  81. data/config/locales/sr.yml +0 -119
  82. data/config/locales/sv.yml +0 -244
  83. data/config/locales/sw.yml +0 -182
  84. data/config/locales/th.rb +0 -200
  85. data/config/locales/tr.yml +0 -142
  86. data/config/locales/uk.yml +0 -240
  87. data/config/locales/vi.yml +0 -201
  88. data/config/locales/zh-CN.yml +0 -210
  89. data/config/locales/zh-TW.yml +0 -210
  90. data/lib/gemspec.rb +0 -29
@@ -1,105 +0,0 @@
1
- # original by Dr. Nic
2
-
3
- {
4
- :'en-AU' => {
5
- :date => {
6
- :formats => {
7
- :default => "%d/%m/%Y",
8
- :short => "%e %b",
9
- :long => "%e %B, %Y",
10
- :long_ordinal => lambda { |date| "#{date.day.ordinalize} %B, %Y" },
11
- :only_day => "%e"
12
- },
13
- :day_names => Date::DAYNAMES,
14
- :abbr_day_names => Date::ABBR_DAYNAMES,
15
- :month_names => Date::MONTHNAMES,
16
- :abbr_month_names => Date::ABBR_MONTHNAMES,
17
- :order => [:year, :month, :day]
18
- },
19
- :time => {
20
- :formats => {
21
- :default => "%a %b %d %H:%M:%S %Z %Y",
22
- :time => "%H:%M",
23
- :short => "%d %b %H:%M",
24
- :long => "%d %B, %Y %H:%M",
25
- :long_ordinal => lambda { |time| "#{time.day.ordinalize} %B, %Y %H:%M" },
26
- :only_second => "%S"
27
- },
28
- :datetime => {
29
- :formats => {
30
- :default => "%Y-%m-%dT%H:%M:%S%Z"
31
- }
32
- },
33
- :time_with_zone => {
34
- :formats => {
35
- :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
36
- }
37
- },
38
- :am => 'am',
39
- :pm => 'pm'
40
- },
41
- :datetime => {
42
- :distance_in_words => {
43
- :half_a_minute => 'half a minute',
44
- :less_than_x_seconds => {:zero => 'less than a second', :one => 'less than a second', :other => 'less than %{count} seconds'},
45
- :x_seconds => {:one => '1 second', :other => '%{count} seconds'},
46
- :less_than_x_minutes => {:zero => 'less than a minute', :one => 'less than a minute', :other => 'less than %{count} minutes'},
47
- :x_minutes => {:one => "1 minute", :other => "%{count} minutes"},
48
- :about_x_hours => {:one => 'about 1 hour', :other => 'about %{count} hours'},
49
- :x_days => {:one => '1 day', :other => '%{count} days'},
50
- :about_x_months => {:one => 'about 1 month', :other => 'about %{count} months'},
51
- :x_months => {:one => '1 month', :other => '%{count} months'},
52
- :about_x_years => {:one => 'about 1 year', :other => 'about %{count} years'},
53
- :over_x_years => {:one => 'over 1 year', :other => 'over %{count} years'}
54
- }
55
- },
56
- :number => {
57
- :format => {
58
- :precision => 2,
59
- :separator => ',',
60
- :delimiter => '.'
61
- },
62
- :currency => {
63
- :format => {
64
- :unit => 'AUD',
65
- :precision => 2,
66
- :format => '%n %u'
67
- }
68
- }
69
- },
70
-
71
- # Active Record
72
- :activerecord => {
73
- :errors => {
74
- :template => {
75
- :header => {
76
- :one => "Couldn't save this %{model}: 1 error",
77
- :other => "Couldn't save this %{model}: %{count} errors."
78
- },
79
- :body => "Please check the following fields, dude:"
80
- },
81
- :messages => {
82
- :inclusion => "ain't included in the list",
83
- :exclusion => "ain't available",
84
- :invalid => "ain't valid",
85
- :confirmation => "don't match its confirmation",
86
- :accepted => "gotta be accepted",
87
- :empty => "gotta be given",
88
- :blank => "gotta be given",
89
- :too_long => "is too long-ish (no more than %{count} characters)",
90
- :too_short => "is too short-ish (no less than %{count} characters)",
91
- :wrong_length => "ain't got the right length (gotta be %{count} characters)",
92
- :taken => "ain't available",
93
- :not_a_number => "ain't a number",
94
- :greater_than => "gotta be greater than %{count}",
95
- :greater_than_or_equal_to => "gotta be greater than or equal to %{count}",
96
- :equal_to => "gotta be equal to %{count}",
97
- :less_than => "gotta be less than %{count}",
98
- :less_than_or_equal_to => "gotta be less than or equal to %{count}",
99
- :odd => "gotta be odd",
100
- :even => "gotta be even"
101
- }
102
- }
103
- }
104
- }
105
- }
@@ -1,109 +0,0 @@
1
- {
2
- :'gibberish' => {
3
- # date and time formats
4
- :date => {
5
- :formats => {
6
- :default => "%Y-%m-%d (ish)",
7
- :short => "%e %b (ish)",
8
- :long => "%B %e, %Y (ish)",
9
- :long_ordinal => lambda { |date| "%B #{date.day}ish, %Y" },
10
- :only_day => lambda { |date| "#{date.day}ish"}
11
- },
12
- :day_names => %w(Sunday-ish Monday-ish Tuesday-ish Wednesday-ish Thursday-ish Friday-ish Saturday-ish),
13
- :abbr_day_names => %w(Sun-i Mon-i Tue-i Wed-i Thu-i Fri-i Sat-i),
14
- :month_names => [nil] + %w(January-ish February-ish March-ish April-ish May-ish June-ish
15
- July-ish August-ish September-ish October-ish November-rish December-ish),
16
- :abbr_month_names => [nil] + %w(Jan-i Feb-i Mar-i Apr-i May-i Jun-i Jul-i Aug-i Sep-i Oct-i Nov-i Dec-i),
17
- :order => [:day, :month, :year]
18
- },
19
- :time => {
20
- :formats => {
21
- :default => "%a %b %d %H:%M:%S %Z %Y (ish)",
22
- :time => "%H:%M (ish)",
23
- :short => "%d %b %H:%M (ish)",
24
- :long => "%B %d, %Y %H:%M (ish)",
25
- :long_ordinal => lambda { |time| "%B #{time.day}ish, %Y %H:%M" },
26
- :only_second => "%S (ish)"
27
- },
28
- :datetime => {
29
- :formats => {
30
- :default => "%Y-%m-%dT%H:%M:%S%Z"
31
- }
32
- },
33
- :time_with_zone => {
34
- :formats => {
35
- :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
36
- }
37
- },
38
- :am => 'am-ish',
39
- :pm => 'pm-ish'
40
- },
41
-
42
- # date helper distance in words
43
- :datetime => {
44
- :distance_in_words => {
45
- :half_a_minute => 'a halfish minute',
46
- :less_than_x_seconds => {:zero => 'less than 1 second', :one => ' less than 1 secondish', :other => 'less than%{count}ish seconds'},
47
- :x_seconds => {:one => '1 secondish', :other => '%{count}ish seconds'},
48
- :less_than_x_minutes => {:zero => 'less than a minuteish', :one => 'less than 1 minuteish', :other => 'less than %{count}ish minutes'},
49
- :x_minutes => {:one => "1ish minute", :other => "%{count}ish minutes"},
50
- :about_x_hours => {:one => 'about 1 hourish', :other => 'about %{count}ish hours'},
51
- :x_days => {:one => '1ish day', :other => '%{count}ish days'},
52
- :about_x_months => {:one => 'about 1ish month', :other => 'about %{count}ish months'},
53
- :x_months => {:one => '1ish month', :other => '%{count}ish months'},
54
- :about_x_years => {:one => 'about 1ish year', :other => 'about %{count}ish years'},
55
- :over_x_years => {:one => 'over 1ish year', :other => 'over %{count}ish years'}
56
- }
57
- },
58
-
59
- # numbers
60
- :number => {
61
- :format => {
62
- :precision => 3,
63
- :separator => ',',
64
- :delimiter => '.'
65
- },
66
- :currency => {
67
- :format => {
68
- :unit => 'Gib-$',
69
- :precision => 2,
70
- :format => '%n %u'
71
- }
72
- }
73
- },
74
-
75
- # Active Record
76
- :activerecord => {
77
- :errors => {
78
- :template => {
79
- :header => {
80
- :one => "Couldn't save this %{model}: 1 error",
81
- :other => "Couldn't save this %{model}: %{count} errors."
82
- },
83
- :body => "Please check the following fields, dude:"
84
- },
85
- :messages => {
86
- :inclusion => "ain't included in the list",
87
- :exclusion => "ain't available",
88
- :invalid => "ain't valid",
89
- :confirmation => "don't match its confirmation",
90
- :accepted => "gotta be accepted",
91
- :empty => "gotta be given",
92
- :blank => "gotta be given",
93
- :too_long => "is too long-ish (no more than %{count} characters)",
94
- :too_short => "is too short-ish (no less than %{count} characters)",
95
- :wrong_length => "ain't got the right length (gotta be %{count} characters)",
96
- :taken => "ain't available",
97
- :not_a_number => "ain't a number",
98
- :greater_than => "gotta be greater than %{count}",
99
- :greater_than_or_equal_to => "gotta be greater than or equal to %{count}",
100
- :equal_to => "gotta be equal to %{count}",
101
- :less_than => "gotta be less than %{count}",
102
- :less_than_or_equal_to => "gotta be less than or equal to %{count}",
103
- :odd => "gotta be odd",
104
- :even => "gotta be even"
105
- }
106
- }
107
- }
108
- }
109
- }
@@ -1,144 +0,0 @@
1
- # Friulian translations for Ruby on Rails
2
- # by Andrea Decorte (adecorte@gmail.com)
3
-
4
- fur:
5
- number:
6
- format:
7
- separator: ","
8
- delimiter: "."
9
- precision: 3
10
-
11
- currency:
12
- format:
13
- format: "%n %u"
14
- unit: "€"
15
- separator: "."
16
- delimiter: ","
17
- precision: 2
18
-
19
- percentage:
20
- format:
21
- delimiter: ""
22
- # precision:
23
-
24
- precision:
25
- format:
26
- # separator:
27
- delimiter: ""
28
- # precision:
29
-
30
- human:
31
- format:
32
- # separator:
33
- delimiter: ""
34
- precision: 1
35
- storage_units:
36
- format: "%n %u"
37
- units:
38
- byte:
39
- one: "Byte"
40
- other: "Byte"
41
- kb: "Kb"
42
- mb: "Mb"
43
- gb: "Gb"
44
- tb: "Tb"
45
-
46
- date:
47
- formats:
48
- default: "%d-%m-%Y"
49
- short: "%d di %b"
50
- long: "%d di %B dal %Y"
51
-
52
- day_names: [domenie, lunis, martars, miercus, joibe, vinars, sabide]
53
- abbr_day_names: [dom, lun, mar, mie, joi, vin, sab]
54
-
55
- month_names: [~, Zenâr, Fevrâr, Març, Avrîl, Mai, Jugn, Lui, Avost, Setembar, Otubar, Novembar, Dicembar]
56
- abbr_month_names: [~, Zen, Fev, Mar, Avr, Mai, Jug, Lui, Avo, Set, Otu, Nov, Dic]
57
- order:
58
- - :day
59
- - :month
60
- - :year
61
-
62
- time:
63
- formats:
64
- default: "%a %d di %b dal %Y, %H:%M:%S %z"
65
- short: "%d di %b %H:%M"
66
- long: "%d di %B %Y %H:%M"
67
-
68
- am: 'am'
69
- pm: 'pm'
70
-
71
- datetime:
72
- distance_in_words:
73
- half_a_minute: "mieç minût"
74
- less_than_x_seconds:
75
- one: "mancul di un secont"
76
- other: "mancul di %{count} seconts"
77
- x_seconds:
78
- one: "1 secont"
79
- other: "%{count} seconts"
80
- less_than_x_minutes:
81
- one: "mancul di un minût"
82
- other: "mancul di %{count} minûts"
83
- x_minutes:
84
- one: "1 minût"
85
- other: "%{count} minûts"
86
- about_x_hours:
87
- one: "cirche une ore"
88
- other: "cirche %{count} oris"
89
- x_days:
90
- one: "1 zornade"
91
- other: "%{count} zornadis"
92
- about_x_months:
93
- one: "cirche un mês"
94
- other: "cirche %{count} mês"
95
- x_months:
96
- one: "1 mês"
97
- other: "%{count} mês"
98
- about_x_years:
99
- one: "cirche un an"
100
- other: "cirche %{count} agns"
101
- over_x_years:
102
- one: "plui di un an"
103
- other: "plui di %{count} agns"
104
- prompts:
105
- year: "An"
106
- month: "Mês"
107
- day: "Dì"
108
- hour: "Ore"
109
- minute: "Minût"
110
- second: "Seconts"
111
-
112
- support:
113
- array:
114
- words_connector: ", "
115
- two_words_connector: " e "
116
- last_word_connector: ", e "
117
-
118
- activerecord:
119
- errors:
120
- template:
121
- header:
122
- one: "No si pues salvâ chest %{model}: 1 erôr"
123
- other: "No si pues salvâ chest %{model}: %{count} erôrs."
124
- body: "Torne par plasê a controlâ i cjamps ca sot:"
125
- messages:
126
- inclusion: "non è includût te liste"
127
- exclusion: "al è riservât"
128
- invalid: "nol è valit"
129
- confirmation: "nol è compagn de conferme"
130
- accepted: "al à di jessi acetât"
131
- empty: "nol pues jessi vueit"
132
- blank: "nol pues jessi lassât in blanc"
133
- too_long: "al è masse lunc (il massim al è %{count} letaris)"
134
- too_short: "al è masse curt (il minim al è %{count} letaris)"
135
- wrong_length: "nol à la lungjece juste (al ò di jessi di %{count} letaris)"
136
- taken: "al è za doprât"
137
- not_a_number: "nol è un numar"
138
- greater_than: "al à di jessi plui grant di %{count}"
139
- greater_than_or_equal_to: "al à di jessi plui grant o compagn di %{count}"
140
- equal_to: "al à di jessi compagn di %{count}"
141
- less_than: "al à di jessi mancul di %{count}"
142
- less_than_or_equal_to: "al à di jessi mancul o compagn di %{count}"
143
- odd: "al à di jessi dispar"
144
- even: "al à di jessi pâr"
@@ -1,196 +0,0 @@
1
- # Galician (Spain) for Ruby on Rails
2
- # by Marcos Arias Pena (markus@agil-e.com)
3
-
4
- gl-ES:
5
- # action_view
6
- number:
7
- # Usado en number_with_delimiter()
8
- format:
9
- separator: ","
10
- delimiter: "."
11
- precision: 2
12
-
13
- # Usado en number_to_currency()
14
- currency:
15
- format:
16
- # %u é a unidade monetaria, %n o número
17
- # 1 euro sería 1.00 €
18
- format: "%n %u"
19
- unit: "€"
20
- separator: ","
21
- delimiter: "."
22
- precision: 2
23
-
24
- # Usado en number_to_percentage()
25
- percentage:
26
- format:
27
- # separator:
28
- delimiter: ""
29
- # precision:
30
-
31
- # Usado en number_to_precision()
32
- precision:
33
- format:
34
- # separator:
35
- delimiter: ""
36
- # precision:
37
-
38
- # Usado en number_to_human_size()
39
- human:
40
- format:
41
- # separator:
42
- delimiter: ""
43
- precision: 1
44
- # Se estás a usar Rails <= 2.2.2
45
- # storage_units: [Bytes, KB, MB, GB, TB]
46
- # Se estás a usar Rails >= 2.3
47
- storage_units:
48
- # Formato de saida de unidades de almacenamento
49
- # %u é a unidade de almacenamento
50
- # %n é o número (por defecto: 2 MB)
51
- format: "%n %u"
52
- units:
53
- byte:
54
- one: "Byte"
55
- other: "Bytes"
56
- kb: "KB"
57
- mb: "MB"
58
- gb: "GB"
59
- tb: "TB"
60
-
61
- # active_support
62
- date:
63
- formats:
64
- default: "%e/%m/%Y"
65
- short: "%e %b"
66
- long: "%A %e de %B de %Y"
67
- # Podes engadir máis formatos nesta lista ou cambiar os aquí definidos
68
- day_names: [Domingo, Luns, Martes, Mércores, Xoves, Venres, Sábado]
69
- abbr_day_names: [Dom, Lun, Mar, Mer, Xov, Ven, Sab]
70
- month_names: [~, Xaneiro, Febreiro, Marzo, Abril, Maio, Xuño, Xullo, Agosto, Setembro, Outubro, Novembro, Decembro]
71
- abbr_month_names: [~, Xan, Feb, Mar, Abr, Mai, Xuñ, Xul, Ago, Set, Out, Nov, Dec]
72
- order:
73
- - :day
74
- - :month
75
- - :year
76
-
77
- time:
78
- formats:
79
- default: "%A, %e de %B de %Y ás %H:%M"
80
- time: "%H:%M"
81
- short: "%e/%m, %H:%M"
82
- long: "%A %e de %B de %Y ás %H:%M"
83
- # Podes engadir máis formatos nesta lista ou cambiar os aquí definidos
84
- am: ''
85
- pm: ''
86
-
87
- # Usados en distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
88
- datetime:
89
- distance_in_words:
90
- half_a_minute: 'medio minuto'
91
- less_than_x_seconds:
92
- zero: 'menos dun segundo'
93
- one: '1 segundo'
94
- few: 'poucos segundos'
95
- other: '%{count} segundos'
96
- x_seconds:
97
- one: '1 segundo'
98
- other: '%{count} segundos'
99
- less_than_x_minutes:
100
- zero: 'menos dun minuto'
101
- one: '1 minuto'
102
- other: '%{count} minutos'
103
- x_minutes:
104
- one: '1 minuto'
105
- other: '%{count} minuto'
106
- about_x_hours:
107
- one: 'aproximadamente unha hora'
108
- other: '%{count} horas'
109
- x_days:
110
- one: '1 día'
111
- other: '%{count} días'
112
- x_weeks:
113
- one: '1 semana'
114
- other: '%{count} semanas'
115
- about_x_months:
116
- one: 'aproximadamente 1 mes'
117
- other: '%{count} meses'
118
- x_months:
119
- one: '1 mes'
120
- other: '%{count} meses'
121
- about_x_years:
122
- one: 'aproximadamente 1 ano'
123
- other: '%{count} anos'
124
- over_x_years:
125
- one: 'máis dun ano'
126
- other: '%{count} anos'
127
- now: 'agora'
128
- today: 'hoxe'
129
- tomorrow: 'mañá'
130
- in: 'dentro de'
131
-
132
- support:
133
- array:
134
- # Se estás a usar Rails <= 2.2.2
135
- # sentence_connector: e
136
- # Se estás a usar Rails >= 2.3
137
- words_connector: ", "
138
- two_words_connector: " e "
139
- last_word_connector: " e "
140
-
141
- # active_record
142
- activerecord:
143
- models:
144
- # Traduce nomes de modelos. Usado en Model.human_name()
145
- # Por exemplo
146
- # model:
147
- # user: "Nota"
148
- # traducirá o modelo User como "Nota"
149
-
150
- attributes:
151
- # Traduce nomes de atributos de modelos. Usado en Model.human_attribute_name(attribute)
152
- # Por exemplo
153
- # attributes:
154
- # user:
155
- # login: "Aceso"
156
- # traducirá o atribute login do modelo User como "Aceso"
157
-
158
- errors:
159
- template:
160
- header:
161
- one: "1 erro evitou que se poidese gardar o %{model}"
162
- other: "%{count} erros evitaron que se poidese gardar o %{model}"
163
- # A variable :count tamén está dispoñible aquí
164
- body: "Atopáronse os seguintes problemas:"
165
- messages:
166
- inclusion: "non está incluido na lista"
167
- exclusion: "xa existe"
168
- invalid: "non é válido"
169
- confirmation: "non coincide coa confirmación"
170
- accepted: "debe ser aceptado"
171
- empty: "non pode estar valeiro"
172
- blank: "non pode estar en blanco"
173
- too_long: "é demasiado longo (non máis de %{count} carácteres)"
174
- too_short: "é demasiado curto (non menos de %{count} carácteres)"
175
- wrong_length: "non ten a lonxitude correcta (debe ser de %{count} carácteres)"
176
- taken: "non está dispoñible"
177
- not_a_number: "non é un número"
178
- greater_than: "debe ser maior que %{count}"
179
- greater_than_or_equal_to: "debe ser maior ou igual que %{count}"
180
- equal_to: "debe ser igual a %{count}"
181
- less_than: "debe ser menor que %{count}"
182
- less_than_or_equal_to: "debe ser menor ou igual que %{count}"
183
- odd: "debe ser par"
184
- even: "debe ser impar"
185
- # Engade aquí os teus propios mensaxes de erro ou no ámbito modelo/atributo
186
-
187
- # Podes definir os teus propios erros para modelos ou para os atributos dun modelo
188
- # Os valores :model, :attribute e :value están sempre dispoñibles para a interpolación
189
- #
190
- # Exemplos avanzados
191
- # models:
192
- # user:
193
- # blank: "Esta é unha mensaxe personalizada para o modelo %{model}: %{attribute}"
194
- # attributes:
195
- # login:
196
- # blank: "Esta é unha mensaxe personalidaza para o modelo Usuario: login"