#947 ✓invalid
Tim Griffin

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages