You are correct, there is no magic (yet). You have two options:

1. Use JS/DOM to access/change strings.
2. Make copies of html files for all locales, then load them on demand.

We are considering doing __MSG_somename__ replacement in static content
(html, css...), but it won't be available for 4.0.

Regards,
 Nebojsa Ciric

On Tue, Jan 12, 2010 at 4:42 PM, Colin Bleckner <co...@xmarks.com> wrote:

> I'm enjoying the new i18n support (it caught me completely by surprise in
> the last beta release, I'm falling out of the loop!).  One question: is
> there a way to access localized messages in the HTML section of my
> extension?  I don't see anything in the documentation, so I figure I'm going
> to have to inject everything with Javascript whenever my HTML pages are
> loaded, but it'd be a lot easier if I could just throw some magic
> underscores into my HTML and have Chrome automatically grab the
> corresponding localized text for me.
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to
> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.

Reply via email to