On Aug 19, 1:26 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> By contrast, fast_gettext (which works with the Rails I18N
> infrastructure) works like GNU Gettext: it uses the translatable strings
> themselves as keys ("Welcome to my site!"), so that your view files are
> still readable and all hell doesn't break loose if you miss a key.  It
> stores the translated strings in industry-standard PO files, which
> professional translators can be assumed to know how to deal with.

If the key is the translatable string, how do you handle the case
where in english (or whatever your source language is)  two things
have the same text but they don't in one of the languages you're
translating into?

Fred

>
> > and given your experience explain what
> > advantages a switch/utilization of fast gettext would
> > provide.
>
> Gettext is easier to work with.
>
> > Also, would there be a steep learning curve by switching?
>
> I don't know.  I was using gettext before Rails I18N existed, so when
> Rails I18N came out, I looked at the default I18N mechanism, concluded
> it was clumsier than gettext, and went on using gettext (but this time
> as a Rails I18N plugin).
>
> Gettext is so simple, however, that I can't imagine that t would be
> difficult to learn.  What *might* be time-consuming is switching your
> views to use gettext-style string keys.
>
> But really, do your own research.  Install gettext and try converting a
> view or two.  Seehttp://github.com/marnen/quorum2if you want to see
> what views done with gettext look like.
>
>
>
> > Your thoughts would be much appreciated.
>
> > Regards
>
> > David
>
> Best,
> -- 
> Marnen Laibow-Koserhttp://www.marnen.org
> mar...@marnen.org
>
> Sent from my iPhone
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to