Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Marius Dumitru Florea
On Wed, Dec 19, 2012 at 9:22 AM, Haru haru_mamb...@mail.ru wrote:
  Hi, All!

 Clean XEM 4.3. Default page set. I wan't to set multilanguage support.

 Multilingual: YES
 Supported languages : en, ru, uk, fr
 Default Language : ru

 After I click on save, XWiki takes default language from browser and shows me 
 uk as default, ignoring default language settings.

 Moreover, there is no languages available, besides  en (as shown on the 
 picture  http://awesomescreenshot.com/04cqa3uc7 )

 Any ideas how to fix it?

First of all, in your screenshot the default language is set to en.
Then, you need to understand the distinction between the language of
the UI (menu text, button labels, notification messages, etc.) and the
document language (the language of the content of a document). The
list of available languages you are referring to, displayed on the top
right side of the page, represents the list of languages the content
of the current document has been translated to. In this particular
case, the content of XWiki.XWikiPreferences document has been
translated only in English, which is normal because this page contains
code, and code shouldn't be translated.

If you create a new wiki page, you'll see that there is a panel that
lets you translate the content in any of the supported languages. Once
you translate the content you'll see the languages listed in the top
right corner.

Hope this helps,
Marius



 Kind regards,

 Dmitry
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot for help, Marius. Yes, I made screenshot english to be readable.
It's clear now with pages, but why UI falls into browser default language in 
abovementioned configuration, ignoring default language settings?


Среда, 19 декабря 2012, 11:15  от Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com:
On Wed, Dec 19, 2012 at 9:22 AM, Haru  haru_mamb...@mail.ru  wrote:
  Hi, All!

 Clean XEM 4.3. Default page set. I wan't to set multilanguage support.

 Multilingual: YES
 Supported languages : en, ru, uk, fr
 Default Language : ru

 After I click on save, XWiki takes default language from browser and shows 
 me uk as default, ignoring default language settings.

 Moreover, there is no languages available, besides  en (as shown on the 
 picture  http://awesomescreenshot.com/04cqa3uc7 )

 Any ideas how to fix it?

First of all, in your screenshot the default language is set to en.
Then, you need to understand the distinction between the language of
the UI (menu text, button labels, notification messages, etc.) and the
document language (the language of the content of a document). The
list of available languages you are referring to, displayed on the top
right side of the page, represents the list of languages the content
of the current document has been translated to. In this particular
case, the content of XWiki.XWikiPreferences document has been
translated only in English, which is normal because this page contains
code, and code shouldn't be translated.

If you create a new wiki page, you'll see that there is a panel that
lets you translate the content in any of the supported languages. Once
you translate the content you'll see the languages listed in the top
right corner.


Hope this helps,
Marius



 Kind regards,

 Dmitry
 ___
 users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

Dmitry
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language in 
 abovementioned configuration, ignoring default language settings?
 

There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot, Sergiu!

The problem was following: default language is set in UI in XWiki (it was ru), 
but was ignored. Is it a bug to jira it? Or it is expected behaviour? If it's 
expected, why do we have default language in UI?
Moreover, in XEM it could be possible to have different default languages in 
workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.


Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu ser...@xwiki.org:
On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language in 
 abovementioned configuration, ignoring default language settings?
 

There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

Dmitry
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Marius Dumitru Florea
On Wed, Dec 19, 2012 at 10:29 PM, Haru haru_mamb...@mail.ru wrote:
  Thanks a lot, Sergiu!


 The problem was following: default language is set in UI in XWiki (it was 
 ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? If 
 it's expected, why do we have default language in UI?

I think the default language you set in the Localization section of
the administration refers to the document content not to the UI. It is
the default content language when you create a new document.

Hope this helps,
Marius

 Moreover, in XEM it could be possible to have different default languages in 
 workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.


 Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu ser...@xwiki.org:
On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?


There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.

--
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


 Kind regards,

 Dmitry
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 04:55 PM, Marius Dumitru Florea wrote:
 On Wed, Dec 19, 2012 at 10:29 PM, Haru haru_mamb...@mail.ru wrote:
  Thanks a lot, Sergiu!

 
 The problem was following: default language is set in UI in XWiki (it was 
 ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? 
 If it's expected, why do we have default language in UI?
 
 I think the default language you set in the Localization section of
 the administration refers to the document content not to the UI. It is
 the default content language when you create a new document.

Almost. To be more precise, it's the default language to fall back when:

- the language(s) requested browser are not available
- a document doesn't specify its default language

When creating a new document, the default language is the current
context language.

But it is NOT the default language that users will see unless they
explicitly select another one. The setting I mentioned is the one that
moves the behavior closer to what you expect.

 Hope this helps,
 Marius
 
 Moreover, in XEM it could be possible to have different default languages in 
 workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.


 Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu ser...@xwiki.org:
 On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?


 There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

 Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 03:29 PM, Haru wrote:
  Thanks a lot, Sergiu!
 
 The problem was following: default language is set in UI in XWiki (it was 
 ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? If 
 it's expected, why do we have default language in UI?

It's the expected behavior, at least with the way translations work at
the moment. I'm not happy with the current mechanism, but changing it
requires a lot of refactoring.

Configured default wiki language is different from document default
language, which can be set for each document. See my other reply for
what the default wiki language actually does.

 Moreover, in XEM it could be possible to have different default languages in 
 workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.

I agree, this should be a setting configurable in each wiki, or even space.

 
 Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu ser...@xwiki.org:
 On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?


 There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

 Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot for help, Sergiu!


Среда, 19 декабря 2012, 20:10  от Sergiu Dumitriu ser...@xwiki.org:
On 12/19/2012 03:29 PM, Haru wrote:
  Thanks a lot, Sergiu!
 
 The problem was following: default language is set in UI in XWiki (it was 
 ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? 
 If it's expected, why do we have default language in UI?

It's the expected behavior, at least with the way translations work at
the moment. I'm not happy with the current mechanism, but changing it
requires a lot of refactoring.

Configured default wiki language is different from document default
language, which can be set for each document. See my other reply for
what the default wiki language actually does.

 Moreover, in XEM it could be possible to have different default languages in 
 workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.

I agree, this should be a setting configurable in each wiki, or even space.

 
 Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu  ser...@xwiki.org :
 On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?


 There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

 Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

Dmitry
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users