On Wed, Nov 26, 2008 at 1:52 PM, Thomas Eveilleau
<thomas(a)xwiki.com> 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"
-1 for 3), it too difficult to reuse and to easy to break. If you want
to add location informations you can easily do that with comments in
translation resource file of page.
1) Main.Tags is not part of core since it's a XE xar page so using
"platform.core" for it is wrong.
Also same as Vincent about translations resources: XE or any
non-platform translation should go to it's respective xar and not in
the core Application Resource files.
I'm waiting for your advices on this (1 / 2 /
3 or another proposal).
Thanks,
Thomas Eveilleau
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs