On 23 Feb 2015 at 16:42:21, vincent(a)massol.net
(vincent@massol.net(mailto:vincent@massol.net)) wrote:
Hi Devs,
Even though we don’t have listed on
http://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices I believe the following
has already been agreed but I’d like to add it there so I’m sending it as a proposal.
So I propose that:
* Any java code requiring translation should put them in an
ApplicationResources.properties file at the root of the JAR (not the global
ApplicationResources.properties in oldcore!)
* Any wiki page requiring translations should put them in a Translations page in the
space for the app.
Special case:
* For Macro UI modules (ie containing only wiki macros), we put them in the Macros space
and in this case we should use a Macros.XXXTranslations page for each module. We’ll need
to decide what we want to do in the future.
I meant that we’ll need to decide if we still consider that having this anonymous Macros
space is a good thing or not, or if we should have for example dedicated spaces even in
this case (with Macro translations, there should be no single page app for macros ;)).
Also, even if some existing module is wrongly using
the ApplicationResources.properties in oldcore (for example), we should still follow the
rules above and start doing it in the new way.
I meant: when we need to add new translations, we should still follow the rules above and
start doing it in the new way.
Thanks
-Vincent
WDYT?
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs