On Aug 4, 2012, at 4:37 AM, Sergiu Dumitriu 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.

Can you give examples of things that will break for our users?

Thanks
-Vincent

> WDYT?
> -- 
> Sergiu Dumitriu
> http://purl.org/net/sergiu/

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to