Hi Marius,
Thank your very much. I've found where my problem was !
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
I already did what you say except one thing : instead of editing
BBCode.Translations in wiki mode, I did it in WYSIWYG mode... And, thank to
you, I realize that, in WYSIWYG mode, some codes are added in the page. Look
this quote :
|| bb_bb=Bulletin Board
|| bb_welcomebb=Welcome to your Bulletin Board!
My problem was this automatical "bb_" piece of code...
But, mea culpa, because on the
http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplica…
Internationalizing Applications page it's written that we have to edit in
wiki mode... Perhaps, it should be bigger ! :)
Anyway, thank you ! Now, it works !
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.
I understand that but
it's too bad... Is there a way (a workaround ?) to
detect if there are many translations in the translation document and not in
the page itself ? Or, if there isn't, a way to force the wiki to have the
list of all languages available (in the top right corner) even if the
current page is translated in only one language ?
--
View this message in context:
http://n2.nabble.com/Application-translations-with-the-properties-located-i…
Sent from the XWiki- Users mailing list archive at
Nabble.com.