Hi,
On Fri, 12 Jan 2007 15:48:36 +0100
Ralf Vitasek <[EMAIL PROTECTED]> wrote:
> hello masao-san,
>
> i'm currently trying l10n with gettext and have 2 problems in my
> application.
>
> it looks like "rake updatepo" cannot find messages inside strings like
> output << "<div>#{_('my localized message')}</div>"
>
> is this a bug? do i need a newer version (i'm currently using the
> gettext-1.8.0-mswin32 gem)? or is it just me doing s.th. wrong?
Hmm. OK.
I'll try it. But I don't know I can fix it.
Try this as work arround.
"<div>%s</div>" % _('my localized message')
> and the second problem is that despite what language i want to enforce
> via
> GetText.locale = "fr_CH"
> (right before init_gettext in the application controller)
> it always seems to fall back to the HTTP_ACCEPT_LANGUAGE from the
> browser :(
This may be a bug of 1.8.0.
Could you try CVS version ?
_______________________________________________
Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion