On Fri, Oct 26, 2012 at 2:48 PM, Anca Luca <lucaa(a)xwiki.com> wrote:
Hi Thomas,
On 10/25/2012 04:07 PM, Thomas Mortagne wrote:
Hi devs,
Following the discussion about general architecture of the new
localization module
Still haven't read it, I marked it as important.
here is a more detailed proposal for the
dynamically registered wiki translations pages.
Here is how I propose to indicate that a document contains key=value
pair translations:
* put an object of class "XWiki.TranslationDocumentClass"
* set the "visibility" field to "Global", "Current wiki",
"Current user"
As for the content of the document it will stay the same as in
preferences based documents for now.
This is to preserve backwards compat, right?
Not really, just don't have the time to design and vote a new syntax
so for the first version only the current syntax will be supported.
Because I think it's important to be able to write
an application which can
be installed in versions < 4.3 and not have to have 2 translation documents.
The idea if that you would have a field (or you would directly use the
document field I'm not sure yet) where you would indicate the syntax
of the translation message and it would default on the current one
when nothing is set. So there will be no backward compatibility issue.
I have other fields in mind for later (on demand, translation message
syntax, etc.) but this is a 4.3 proposal here.
We should keep in mind backwards compat for these too.
Otherwise sounds correct to me, +1.
Thanks,
Anca
WDYT ?
Here is my +1.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne