+1 Thanks, Marius
On Sat, Aug 4, 2012 at 5:37 AM, Sergiu Dumitriu <[email protected]> wrote: > Hi devs, > > Trying to address http://jira.xwiki.org/browse/XWIKI-6228 I noticed today a > big problem with the way translations work. > > $xwiki.getDocument('Main.Welcome').getTranslatedDocument('fr').plainTitle > > No matter what language I request, the title will always be displayed in > English. This is caused by the fact that for all translations, the title is > actually $msg.get("xe.dashboard.wiki.welcome"), and $msg uses the context > language, not the document language. This means that getting the right title > of the document is almost impossible. > > Given that we've separated the displayers from the oldcore and the main > rendering engine, we could change their behavior so that document > translations would work better. Whenever displaying some information from a > document, we should temporarily change the context language to be the same > as the document's language, if any. This would be a backwards-incompatible > change, but IMO it's a change for the better. > > WDYT? > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

