2010/6/10 Tony Maserati <[email protected]> > The problem is actually, that: > > > <%= t :search_users_posts, :user => @user.name %> > > search_users_posts: "Search {{user}}'s posts" > > Produces "Search user <http://test>'s posts" (that orphan 's doesn't look > too good) > > And not "Search user's <http://test> posts" which the following would > produce: > > <%= t :search_users_posts, :user => @user.name, :possessive => true %> > > > search_users_posts: "Search {{user}} posts" > > Is there an easy way to fix this?
I don't know. You would may put the entire phrase inside the link <%= link_to I18n.t(:search_users_posts, :user => @user.name), your_route_path(@user) %> #=> Search user's posts <http://test/> > > > 2010/6/8 Andrés gutiérrez <[email protected]> > >> >> >> 2010/6/8 Tony Maserati <[email protected]> >> >>> Yeah you're right man, why don't I just do that. I was looking at what >>> our previous developer did. Thanks a lot Mr Andrés! >>> >>> I love being useful >> >> Greetings >> >> >>> >>> 2010/6/8 Andrés gutiérrez <[email protected]> >>> >>>> >>>> >>>> 2010/6/8 Tony Maserati <[email protected]> >>>> >>>>> My bad, I shoulda explained, what I'm doing is something like >>>>> search_users_posts: "Search {{user}} posts" >>>>> >>>> >>>> <%= t :search_users_posts, :user => @user.name %> >>>> >>>> en.yml : >>>> search_users_posts: "Search {{user}}'s posts" >>>> es.yml >>>> search_users_posts: "Buscar los post de {{user}}" >>>> >>>> Sorry, I think I still do not understand your problem. >>>> >>>> 2010/6/8 Andrés gutiérrez <[email protected]> >>>>> >>>>> >>>>>> >>>>>> 2010/6/8 Tony Maserati <[email protected]> >>>>>> >>>>>> Hi, >>>>>>> >>>>>>> I'm using i.e. <%= t :search_users_posts, :possessive => true %> to >>>>>>> get "Search user's posts". But what if the language I'm translating it >>>>>>> to >>>>>>> doesn't use apostrophe, how do I translate such things / remove it? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>> >>>>>> <%= t :search_users_posts %> >>>>>> en.yml : >>>>>> search_users_posts: "Search user's posts" >>>>>> es.yml >>>>>> search_users_posts: "Buscar los post del usuario" >>>>>> >>>>>> Sorry, i don't understand the problem >>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "rails-i18n" group. >>>>>>> To post to this group, send email to [email protected]. >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected]<rails-i18n%[email protected]> >>>>>>> . >>>>>>> For more options, visit this group at >>>>>>> http://groups.google.com/group/rails-i18n?hl=en. >>>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "rails-i18n" group. >>>>>> To post to this group, send email to [email protected]. >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected]<rails-i18n%[email protected]> >>>>>> . >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/rails-i18n?hl=en. >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "rails-i18n" group. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]<rails-i18n%[email protected]> >>>>> . >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/rails-i18n?hl=en. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "rails-i18n" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<rails-i18n%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/rails-i18n?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "rails-i18n" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<rails-i18n%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/rails-i18n?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "rails-i18n" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<rails-i18n%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/rails-i18n?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "rails-i18n" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rails-i18n%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rails-i18n?hl=en. > -- You received this message because you are subscribed to the Google Groups "rails-i18n" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
