Hi,

Marine JULIAN wrote:
> Hello,
> 
> I try to translate an application in many languages but it doesn't work.
> Let's take the Bulleting board application to explain my problem.
> The bulleting Board application already has a default translation page in
> english (BBCode.Translations). I declared it in Administration > Programming
>> Document Bundles and it works fine. I would like to have a second language
> for my Bulleting Board. I try two ways to do that but, unfortunatly, neither
> one or the other works...

> First method : I put the BBCode.Translations language to english (en) and I
> translate the document in french (fr) thanks to the right translation panel.
> So, I have my BBCode.Translations page available both in english and in
> french. Then, when I go back to my Bulleting Board, only the key messages
> are displayed and not their values (bb_welcomebb instead of "Welcome to your
> Bulletin Board!")...

Strange, I just tried with XWiki Enterprise 2.2.4 and it worked. Here's 
what I did:

* went to Administration/General
* enabled multi lingual
* set the Languages field to "en,fr" (without the quotes)
* kept en as the Default Language
* saved
* opened BBCode.Translations in wiki edit mode
* clicked on fr in the Document Translations panel ("Translate this 
document in:")
* changed some of the translations (e.g. the value associated to 
bb_addnewcategory translation key) and saved
* went to the Bulletin Board home page and the French translation was in 
  place

Now, I can see that on the Bulletin Board home page only the en language 
is listed in view mode in the top right corner of the page. This is both 
correct, because the Bulletin Board home page wasn't translated in a 
different language, and wrong because the user is not able to switch the 
UI language.

Unfortunately the language of the UI is currently mixed with the 
document language. You can force the French language by appending 
language=fr to the query string of the URL. For instance

/xwiki/bin/view/BulletinBoard/?language=fr

should display the Bulletin Board home page in French.

Hope this helps,
Marius

> Second method : I created a new BBCode.TranslationFr page which I added in
> the document bundles Programming field (with a separated comma to the
> original BBCode.Translations). But I have the same result...
> I think there is something I don't understand... But what ? !!
> 
> I feel like a newbie 'cause i don't stop to mail my problems (it's the third
> in one week !)... Though, I read the documentation, the FAQ and the Nabble
> Forum and I did some tests... Hope I don't bother you too much ! :)
> 
> Marine
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to