[xwiki-users] Problems setting up multilingual site
With XWiki 7.4 I have a site setup in Brazilian Portuguese (pt_BR). I edited the localization settings as follows: Multilingual - Yes Supported languages - pt_BR, en Default language - pt_BR After saving the settings, the site looks like it switches to the pt local (European Portuguese?). I can tell this because the pt local is much more sparsely translated. On the drop down menu on the right, I now see a Languages item with Portuguese and English options and selecting English switches the site to English. I go back to the drop down menu and select languages. But now I only see English - Portuguese is not listed as an available language. I tried to repeat the above with a fresh install. This time I first set the local to pt (no multilingual support) and verified that the site is switch to pt. Then I set the multilingual support to yes and added the en local (pt still the default). Now the site switches immediately to English and the only language available on the drop down menu on the right is English. I'd appreciate some help in setting up my site for multilingual support with both English and Brazilian Portuguese. Is there something I'm doing wrong? -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp75... Sent from the XWiki- Users mailing list archive at Nabble.com.
Is it ok when you put ?language=pt_BR in the URL (this explicitly set and remember the locale to use for you) ? Seems to work well for me. Looks like there is an issue when automatically choosing the locale based on the browser configuration according to http://jira.xwiki.org/browse/XWIKI-10083. On Wed, Jan 20, 2016 at 4:27 PM, Mark Sack <[email protected]> wrote:
With XWiki 7.4 I have a site setup in Brazilian Portuguese (pt_BR). I edited the localization settings as follows: Multilingual - Yes Supported languages - pt_BR, en Default language - pt_BR
After saving the settings, the site looks like it switches to the pt local (European Portuguese?). I can tell this because the pt local is much more sparsely translated. On the drop down menu on the right, I now see a Languages item with Portuguese and English options and selecting English switches the site to English.
I go back to the drop down menu and select languages. But now I only see English - Portuguese is not listed as an available language.
I tried to repeat the above with a fresh install. This time I first set the local to pt (no multilingual support) and verified that the site is switch to pt. Then I set the multilingual support to yes and added the en local (pt still the default). Now the site switches immediately to English and the only language available on the drop down menu on the right is English.
I'd appreciate some help in setting up my site for multilingual support with both English and Brazilian Portuguese. Is there something I'm doing wrong?
-- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp75... 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
Yes, I can switch back and forth between the different languages using the URL method. However, this functionality seems to be exhibiting some strange and inconsistent behaviour. This time I created a new instance in a VM and observed the following: 1. Logged in as Admin and set the Multilingual - Yes, Supported languages - pt_BR,en and Default language - pt_BR 2. Saved the configuration with the result that the page was displayed in French (I did not list fr as a supported language). 3. Tried switching between different languages (pt_BR, en and fr) and they all were displayed as expected. The languages shown on the side are English and French as in the attached image. <http://xwiki.475771.n2.nabble.com/file/n7597692/35.png> Another thing I noted is it appears that the list of supported languages cannot contain spaces. If I put a space after the comma, there is an error in catalina.out. Also I don't quite understand is how to edit a page for a specific language only. If I go to the first blog post page with language pt_BR and make some edits, those same edits show up if I display the page with language en. I read the Internationalization page http://http://platform.xwiki.org/xwiki/bin/view/Features/I18N <http://http://platform.xwiki.org/xwiki/bin/view/Features/I18N> But I can't see a "Document Information" panel as it describes. The last item on the ... drop down menu gives some information about the page but does not say anything about the language. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp75... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Jan 25, 2016 at 6:04 PM, Mark Sack <[email protected]> wrote:
Yes, I can switch back and forth between the different languages using the URL method.
However, this functionality seems to be exhibiting some strange and inconsistent behaviour. This time I created a new instance in a VM and observed the following:
1. Logged in as Admin and set the Multilingual - Yes, Supported languages - pt_BR,en and Default language - pt_BR 2. Saved the configuration with the result that the page was displayed in French (I did not list fr as a supported language). 3. Tried switching between different languages (pt_BR, en and fr) and they all were displayed as expected.
In xwiki.cfg file you have a fiew properties to control this behaviour i the section "Internationalization": #-# By default, XWiki chooses the language specified by the client (browser) in the Accept-Language HTTP header. This #-# allows to use the default language of the wiki when the user didn't manually choose a language. # xwiki.language.preferDefault=0 #-# Force only one of the supported languages to be accepted. # xwiki.language.forceSupported=0
The languages shown on the side are English and French as in the attached image. <http://xwiki.475771.n2.nabble.com/file/n7597692/35.png>
Another thing I noted is it appears that the list of supported languages cannot contain spaces. If I put a space after the comma, there is an error in catalina.out.
Also I don't quite understand is how to edit a page for a specific language only. If I go to the first blog post page with language pt_BR and make some edits, those same edits show up if I display the page with language en. I read the Internationalization page http://http://platform.xwiki.org/xwiki/bin/view/Features/I18N <http://http://platform.xwiki.org/xwiki/bin/view/Features/I18N> But I can't see a "Document Information" panel as it describes. The last item on the ... drop down menu gives some information about the page but does not say anything about the language.
That's because you did not choose the right example. Blog post is not a simple wiki page and when you edit it you get a custom edit view. You should try with a new page for example.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp75... 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
I understand this better now. Another question related to the blog feature. In the current pt_BR localization, the months under the archive blog panel are still in English although the titles, etc. of the blog panels are in Portuguese. I was able to update the pt_BR localization for some of the other apps (eg. full calendar) but haven't figured out where to do this for the months on the blog panel. I did a search on the translations web site but didn't find anything that worked for this case. Can you point me in the right direction? -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp75... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Mark Sack -
Thomas Mortagne