[xwiki-users] Application translations with the properties located in XWiki pages (Bulleting Board example)
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!")... 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
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
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/InternationalizingApplicat... 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-in... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Tue, Apr 20, 2010 at 11:37, Marine JULIAN <[email protected]> wrote:
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/InternationalizingApplicat... Internationalizing Applications page it's written that we have to edit in wiki mode... Perhaps, it should be bigger ! :)
I made it a little more visible ;)
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-in... Sent from the XWiki- Users mailing list archive at Nabble.com.
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (3)
-
Marine JULIAN -
Marius Dumitru Florea -
Thomas Mortagne