[katello-devel] translation of model validation messages

Tom McKay thomasmckay at redhat.com
Thu Dec 6 19:42:49 UTC 2012



----- Original Message -----
> From: "Tom McKay" <thomasmckay at redhat.com>
> To: "katello-devel" <katello-devel at redhat.com>
> Sent: Thursday, December 6, 2012 12:00:47 PM
> Subject: translation of model validation messages
> 
> FYI, many of the validation messages built into the models are not
> translated. This should be a high priority item in the next
> iteration.
> 
> http://guides.rubyonrails.org/i18n.html#translations-for-active-record-models
> 
> Example when creating an org w/o filling in any values:
> 
> 検証が失敗しました:
> Label can't be blank
> Label cannot contain characters other than ascii alpha numerals, '_',
> '-'.
> Label must contain at least 1 character
> Label can't be blank
> Name can't be blank
> Name must contain at least 1 character

Noticed that config/locale/ja.yml is all in English, not Japanese, which explains why the above is incorrect. Hopefully custom validations wrap messages in _().




More information about the katello-devel mailing list