HoboFields::EnumStrings should pass translation strings EXACTLY as defined
Reported by Tim Griffin | May 14th, 2011 @ 11:48 AM
Hobo should not be capitalizing individual words in a translation string for enum_strings, and should not be dropping hyphens (and perhaps other punctuation) included in a translation string. Translation strings should be passed EXACTLY as defined in the locale file.
Example definition (e.g. projects.rb):
Nature = HoboFields::Types::EnumString.for( :ApplicationBySurvivingJointTenant, :Caveat, :ChangeOfName )
Example locale file:
project/natures: ApplicationBySurvivingJointTenant: "Application by Surviving Joint Tenant" Caveat: "Caveat" ChangeOfName: "Change-of-Name"
When a 'select' tag is generated, Hobo should be displaying "Application by Surviving Join Tenant" not "Application By Surviving Joint Tenant" (the word 'by' not capitalized). For the ChangeOfName key, it generates "Change Of Name" instead of "Change-of-Name".
Sample Hobo1.3 app attached.
Comments and changes to this ticket
-
Tim Griffin May 15th, 2011 @ 12:38 AM
- no changes were found...
-
Domizio Demichelis May 15th, 2011 @ 02:24 PM
- State changed from new to invalid
That's the titleized default for tag="input" for="HoboFields::Types::EnumString". You have to explicitly pass false to the titleize attribute if you want the string untouched.
-
Tim Griffin May 16th, 2011 @ 06:05 PM
Whoops, that'll teach me to read the manual, won't it?
Thanks for the enlightenment, Domizio. Sorry to have wasted your time!
Tim
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป