On Tue, Jun 30, 2009 at 4:58 PM, Nebojša Ćirić<[email protected]> wrote:
>> * This document should propose a specific JavaScript API for
>> programmatically resolving messages.
>
> What do you thing about having a getMsg(key, optional_namespace) function
> for JavaScript API (similar to gadgets api)?
> So for __MSG_greeting__ script would call getMsg("greeting"), and get
> translation for current locale.
> Namespace would be necessary only if we go with multiple catalogs.

sgtm. I think chrome.i18n.getMessage("greeting") would fit better with
our other APIs.

- a

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to