Commit 8ebd1e0f5f1be0442d1f269978318c29fac6fa13
Committed by
Rafael Manzo
1 parent
5c8841e7
Exists in
colab
and in
4 other branches
Adding missing Rails translations for Portuguese
Showing
3 changed files
with
234 additions
and
0 deletions
Show diff stats
Gemfile
| @@ -108,6 +108,9 @@ group :development, :test do | @@ -108,6 +108,9 @@ group :development, :test do | ||
| 108 | # Better error interface | 108 | # Better error interface |
| 109 | gem 'better_errors' | 109 | gem 'better_errors' |
| 110 | gem 'binding_of_caller' | 110 | gem 'binding_of_caller' |
| 111 | + | ||
| 112 | + # Localization assistance | ||
| 113 | + gem 'i18n_generators' | ||
| 111 | end | 114 | end |
| 112 | 115 | ||
| 113 | # Acceptance tests | 116 | # Acceptance tests |
Gemfile.lock
| @@ -118,6 +118,8 @@ GEM | @@ -118,6 +118,8 @@ GEM | ||
| 118 | warden (~> 1.2.3) | 118 | warden (~> 1.2.3) |
| 119 | diff-lcs (1.2.5) | 119 | diff-lcs (1.2.5) |
| 120 | docile (1.1.5) | 120 | docile (1.1.5) |
| 121 | + domain_name (0.5.23) | ||
| 122 | + unf (>= 0.0.5, < 1.0.0) | ||
| 121 | erubis (2.7.0) | 123 | erubis (2.7.0) |
| 122 | exception_notification (4.0.1) | 124 | exception_notification (4.0.1) |
| 123 | actionmailer (>= 3.0.4) | 125 | actionmailer (>= 3.0.4) |
| @@ -138,8 +140,13 @@ GEM | @@ -138,8 +140,13 @@ GEM | ||
| 138 | activesupport (>= 4.1.0) | 140 | activesupport (>= 4.1.0) |
| 139 | google-analytics-rails (0.0.6) | 141 | google-analytics-rails (0.0.6) |
| 140 | hike (1.2.3) | 142 | hike (1.2.3) |
| 143 | + http-cookie (1.0.2) | ||
| 144 | + domain_name (~> 0.5) | ||
| 141 | http_accept_language (2.0.5) | 145 | http_accept_language (2.0.5) |
| 142 | i18n (0.7.0) | 146 | i18n (0.7.0) |
| 147 | + i18n_generators (1.2.1) | ||
| 148 | + mechanize | ||
| 149 | + rails (>= 3.0.0) | ||
| 143 | jbuilder (2.2.12) | 150 | jbuilder (2.2.12) |
| 144 | activesupport (>= 3.0.0, < 5) | 151 | activesupport (>= 3.0.0, < 5) |
| 145 | multi_json (~> 1.2) | 152 | multi_json (~> 1.2) |
| @@ -169,6 +176,15 @@ GEM | @@ -169,6 +176,15 @@ GEM | ||
| 169 | nokogiri (>= 1.5.9) | 176 | nokogiri (>= 1.5.9) |
| 170 | mail (2.6.3) | 177 | mail (2.6.3) |
| 171 | mime-types (>= 1.16, < 3) | 178 | mime-types (>= 1.16, < 3) |
| 179 | + mechanize (2.7.3) | ||
| 180 | + domain_name (~> 0.5, >= 0.5.1) | ||
| 181 | + http-cookie (~> 1.0) | ||
| 182 | + mime-types (~> 2.0) | ||
| 183 | + net-http-digest_auth (~> 1.1, >= 1.1.1) | ||
| 184 | + net-http-persistent (~> 2.5, >= 2.5.2) | ||
| 185 | + nokogiri (~> 1.4) | ||
| 186 | + ntlm-http (~> 0.1, >= 0.1.1) | ||
| 187 | + webrobots (>= 0.0.9, < 0.2) | ||
| 172 | metaclass (0.0.4) | 188 | metaclass (0.0.4) |
| 173 | mime-types (2.4.3) | 189 | mime-types (2.4.3) |
| 174 | mini_portile (0.6.2) | 190 | mini_portile (0.6.2) |
| @@ -178,11 +194,14 @@ GEM | @@ -178,11 +194,14 @@ GEM | ||
| 178 | multi_json (1.11.0) | 194 | multi_json (1.11.0) |
| 179 | multi_test (0.1.2) | 195 | multi_test (0.1.2) |
| 180 | multipart-post (2.0.0) | 196 | multipart-post (2.0.0) |
| 197 | + net-http-digest_auth (1.4) | ||
| 198 | + net-http-persistent (2.9.4) | ||
| 181 | net-scp (1.2.1) | 199 | net-scp (1.2.1) |
| 182 | net-ssh (>= 2.6.5) | 200 | net-ssh (>= 2.6.5) |
| 183 | net-ssh (2.9.2) | 201 | net-ssh (2.9.2) |
| 184 | nokogiri (1.6.6.2) | 202 | nokogiri (1.6.6.2) |
| 185 | mini_portile (~> 0.6.0) | 203 | mini_portile (~> 0.6.0) |
| 204 | + ntlm-http (0.1.1) | ||
| 186 | orm_adapter (0.5.0) | 205 | orm_adapter (0.5.0) |
| 187 | pg (0.18.1) | 206 | pg (0.18.1) |
| 188 | poltergeist (1.6.0) | 207 | poltergeist (1.6.0) |
| @@ -284,6 +303,9 @@ GEM | @@ -284,6 +303,9 @@ GEM | ||
| 284 | uglifier (2.7.1) | 303 | uglifier (2.7.1) |
| 285 | execjs (>= 0.3.0) | 304 | execjs (>= 0.3.0) |
| 286 | json (>= 1.8.0) | 305 | json (>= 1.8.0) |
| 306 | + unf (0.1.4) | ||
| 307 | + unf_ext | ||
| 308 | + unf_ext (0.0.6) | ||
| 287 | warden (1.2.3) | 309 | warden (1.2.3) |
| 288 | rack (>= 1.0) | 310 | rack (>= 1.0) |
| 289 | web-console (2.0.0) | 311 | web-console (2.0.0) |
| @@ -291,6 +313,7 @@ GEM | @@ -291,6 +313,7 @@ GEM | ||
| 291 | binding_of_caller (>= 0.7.2) | 313 | binding_of_caller (>= 0.7.2) |
| 292 | railties (~> 4.0) | 314 | railties (~> 4.0) |
| 293 | sprockets-rails (>= 2.0, < 4.0) | 315 | sprockets-rails (>= 2.0, < 4.0) |
| 316 | + webrobots (0.1.1) | ||
| 294 | websocket-driver (0.5.3) | 317 | websocket-driver (0.5.3) |
| 295 | websocket-extensions (>= 0.1.0) | 318 | websocket-extensions (>= 0.1.0) |
| 296 | websocket-extensions (0.1.2) | 319 | websocket-extensions (0.1.2) |
| @@ -320,6 +343,7 @@ DEPENDENCIES | @@ -320,6 +343,7 @@ DEPENDENCIES | ||
| 320 | factory_girl_rails (~> 4.5.0) | 343 | factory_girl_rails (~> 4.5.0) |
| 321 | google-analytics-rails (~> 0.0.6) | 344 | google-analytics-rails (~> 0.0.6) |
| 322 | http_accept_language | 345 | http_accept_language |
| 346 | + i18n_generators | ||
| 323 | jbuilder (~> 2.2.2) | 347 | jbuilder (~> 2.2.2) |
| 324 | jquery-rails | 348 | jquery-rails |
| 325 | jquery-ui-rails (~> 5.0.0) | 349 | jquery-ui-rails (~> 5.0.0) |
| @@ -0,0 +1,207 @@ | @@ -0,0 +1,207 @@ | ||
| 1 | +--- | ||
| 2 | +pt: | ||
| 3 | + date: | ||
| 4 | + abbr_day_names: | ||
| 5 | + - Dom | ||
| 6 | + - Seg | ||
| 7 | + - Ter | ||
| 8 | + - Qua | ||
| 9 | + - Qui | ||
| 10 | + - Sex | ||
| 11 | + - Sáb | ||
| 12 | + abbr_month_names: | ||
| 13 | + - | ||
| 14 | + - Jan | ||
| 15 | + - Fev | ||
| 16 | + - Mar | ||
| 17 | + - Abr | ||
| 18 | + - Mai | ||
| 19 | + - Jun | ||
| 20 | + - Jul | ||
| 21 | + - Ago | ||
| 22 | + - Set | ||
| 23 | + - Out | ||
| 24 | + - Nov | ||
| 25 | + - Dez | ||
| 26 | + day_names: | ||
| 27 | + - Domingo | ||
| 28 | + - Segunda | ||
| 29 | + - Terça | ||
| 30 | + - Quarta | ||
| 31 | + - Quinta | ||
| 32 | + - Sexta | ||
| 33 | + - Sábado | ||
| 34 | + formats: | ||
| 35 | + default: "%d/%m/%Y" | ||
| 36 | + long: "%d de %B de %Y" | ||
| 37 | + short: "%d de %B" | ||
| 38 | + month_names: | ||
| 39 | + - | ||
| 40 | + - Janeiro | ||
| 41 | + - Fevereiro | ||
| 42 | + - Março | ||
| 43 | + - Abril | ||
| 44 | + - Maio | ||
| 45 | + - Junho | ||
| 46 | + - Julho | ||
| 47 | + - Agosto | ||
| 48 | + - Setembro | ||
| 49 | + - Outubro | ||
| 50 | + - Novembro | ||
| 51 | + - Dezembro | ||
| 52 | + order: | ||
| 53 | + - :day | ||
| 54 | + - :month | ||
| 55 | + - :year | ||
| 56 | + datetime: | ||
| 57 | + distance_in_words: | ||
| 58 | + about_x_hours: | ||
| 59 | + one: aproximadamente 1 hora | ||
| 60 | + other: aproximadamente %{count} horas | ||
| 61 | + about_x_months: | ||
| 62 | + one: aproximadamente 1 mês | ||
| 63 | + other: aproximadamente %{count} meses | ||
| 64 | + about_x_years: | ||
| 65 | + one: aproximadamente 1 ano | ||
| 66 | + other: aproximadamente %{count} anos | ||
| 67 | + almost_x_years: | ||
| 68 | + one: quase 1 ano | ||
| 69 | + other: quase %{count} anos | ||
| 70 | + half_a_minute: meio minuto | ||
| 71 | + less_than_x_minutes: | ||
| 72 | + one: menos de um minuto | ||
| 73 | + other: menos de %{count} minutos | ||
| 74 | + less_than_x_seconds: | ||
| 75 | + one: menos de 1 segundo | ||
| 76 | + other: menos de %{count} segundos | ||
| 77 | + over_x_years: | ||
| 78 | + one: mais de 1 ano | ||
| 79 | + other: mais de %{count} anos | ||
| 80 | + x_days: | ||
| 81 | + one: 1 dia | ||
| 82 | + other: "%{count} dias" | ||
| 83 | + x_minutes: | ||
| 84 | + one: 1 minuto | ||
| 85 | + other: "%{count} minutos" | ||
| 86 | + x_months: | ||
| 87 | + one: 1 mês | ||
| 88 | + other: "%{count} meses" | ||
| 89 | + x_seconds: | ||
| 90 | + one: 1 segundo | ||
| 91 | + other: "%{count} segundos" | ||
| 92 | + prompts: | ||
| 93 | + day: Dia | ||
| 94 | + hour: Hora | ||
| 95 | + minute: Minuto | ||
| 96 | + month: Mês | ||
| 97 | + second: Segundo | ||
| 98 | + year: Ano | ||
| 99 | + errors: | ||
| 100 | + format: "%{attribute} %{message}" | ||
| 101 | + messages: | ||
| 102 | + accepted: deve ser aceito | ||
| 103 | + blank: não pode ficar em branco | ||
| 104 | + present: deve ficar em branco | ||
| 105 | + confirmation: não é igual a %{attribute} | ||
| 106 | + empty: não pode ficar vazio | ||
| 107 | + equal_to: deve ser igual a %{count} | ||
| 108 | + even: deve ser par | ||
| 109 | + exclusion: não está disponível | ||
| 110 | + greater_than: deve ser maior que %{count} | ||
| 111 | + greater_than_or_equal_to: deve ser maior ou igual a %{count} | ||
| 112 | + inclusion: não está incluído na lista | ||
| 113 | + invalid: não é válido | ||
| 114 | + less_than: deve ser menor que %{count} | ||
| 115 | + less_than_or_equal_to: deve ser menor ou igual a %{count} | ||
| 116 | + not_a_number: não é um número | ||
| 117 | + not_an_integer: não é um número inteiro | ||
| 118 | + odd: deve ser ímpar | ||
| 119 | + record_invalid: 'A validação falhou: %{errors}' | ||
| 120 | + restrict_dependent_destroy: | ||
| 121 | + one: Não é possível excluir o registro pois existe um %{record} dependente | ||
| 122 | + many: Não é possível excluir o registro pois existem %{record} dependentes | ||
| 123 | + taken: já está em uso | ||
| 124 | + too_long: 'é muito longo (máximo: %{count} caracteres)' | ||
| 125 | + too_short: 'é muito curto (mínimo: %{count} caracteres)' | ||
| 126 | + wrong_length: não possui o tamanho esperado (%{count} caracteres) | ||
| 127 | + other_than: deve ser diferente de %{count} | ||
| 128 | + template: | ||
| 129 | + body: 'Por favor, verifique o(s) seguinte(s) campo(s):' | ||
| 130 | + header: | ||
| 131 | + one: 'Não foi possível gravar %{model}: 1 erro' | ||
| 132 | + other: 'Não foi possível gravar %{model}: %{count} erros.' | ||
| 133 | + helpers: | ||
| 134 | + select: | ||
| 135 | + prompt: Por favor selecione | ||
| 136 | + submit: | ||
| 137 | + create: Criar %{model} | ||
| 138 | + submit: Salvar %{model} | ||
| 139 | + update: Atualizar %{model} | ||
| 140 | + number: | ||
| 141 | + currency: | ||
| 142 | + format: | ||
| 143 | + delimiter: "." | ||
| 144 | + format: "%u %n" | ||
| 145 | + precision: 2 | ||
| 146 | + separator: "," | ||
| 147 | + significant: false | ||
| 148 | + strip_insignificant_zeros: false | ||
| 149 | + unit: R$ | ||
| 150 | + format: | ||
| 151 | + delimiter: "." | ||
| 152 | + precision: 3 | ||
| 153 | + separator: "," | ||
| 154 | + significant: false | ||
| 155 | + strip_insignificant_zeros: false | ||
| 156 | + human: | ||
| 157 | + decimal_units: | ||
| 158 | + format: "%n %u" | ||
| 159 | + units: | ||
| 160 | + billion: | ||
| 161 | + one: bilhão | ||
| 162 | + other: bilhões | ||
| 163 | + million: | ||
| 164 | + one: milhão | ||
| 165 | + other: milhões | ||
| 166 | + quadrillion: | ||
| 167 | + one: quatrilhão | ||
| 168 | + other: quatrilhões | ||
| 169 | + thousand: mil | ||
| 170 | + trillion: | ||
| 171 | + one: trilhão | ||
| 172 | + other: trilhões | ||
| 173 | + unit: '' | ||
| 174 | + format: | ||
| 175 | + delimiter: "." | ||
| 176 | + precision: 2 | ||
| 177 | + significant: true | ||
| 178 | + strip_insignificant_zeros: true | ||
| 179 | + storage_units: | ||
| 180 | + format: "%n %u" | ||
| 181 | + units: | ||
| 182 | + byte: | ||
| 183 | + one: Byte | ||
| 184 | + other: Bytes | ||
| 185 | + gb: GB | ||
| 186 | + kb: KB | ||
| 187 | + mb: MB | ||
| 188 | + tb: TB | ||
| 189 | + percentage: | ||
| 190 | + format: | ||
| 191 | + delimiter: "." | ||
| 192 | + format: "%n%" | ||
| 193 | + precision: | ||
| 194 | + format: | ||
| 195 | + delimiter: "." | ||
| 196 | + support: | ||
| 197 | + array: | ||
| 198 | + last_word_connector: " e " | ||
| 199 | + two_words_connector: " e " | ||
| 200 | + words_connector: ", " | ||
| 201 | + time: | ||
| 202 | + am: '' | ||
| 203 | + formats: | ||
| 204 | + default: "%a, %d de %B de %Y, %H:%M:%S %z" | ||
| 205 | + long: "%d de %B de %Y, %H:%M" | ||
| 206 | + short: "%d de %B, %H:%M" | ||
| 207 | + pm: '' |