Hi there, On Nov 26, 2008, at 2:21 PM, Guillaume Lerouge wrote:
Hi,
On Wed, Nov 26, 2008 at 1:52 PM, Thomas Eveilleau <[email protected]> wrote:
Hello,
I'd like to work on translations of default XE pages (pages that are not internationalized yet) like Photos.WebHome, Main.Tags, Panels etc. In order to do things correctly I'd like to now the syntax I should use for the $msg.get values.
What we have in a page like XWiki.XWikiUserSheet is : "platform.core.profile.firstname" for the firstname
1 ) Should I use the same syntax ("platform.core.tags.title" for the title of Main.Tags - if i keep my example) ?
2 ) Or should we use more scalable values (tomorrow we will have a core and applications on it : should we consider the Panels as an application and have something like "application.panel.panelname.element" ?).
3 ) Maybe that we also can use things like the fullname of a page in the value (to quickly identify it) and having something like : "appplication.panel.Panels.Search.title"
I'm waiting for your advices on this (1 / 2 / 3 or another proposal).
Proposal 3) looks good to me since it would be quite helpful to know on what part of the interface a message is located when translating it to other languages.
I'll let Sergiu answer first since he's the one who has thought the most about this. However 3) doesn't sound so good to me: * text not very reusable for other locations * subject to document name change so high risk of being dis-synchronized * For applications resource bundles should go in wiki pages and thus the namespace is already done by the application space The main resource bundles should only be for templates/skins. Everything application-related should go in Document Resource Bundles IMO: http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplicat... Thanks -Vincent