On 12/19/2012 04:55 PM, Marius Dumitru Florea wrote:
On Wed, Dec 19, 2012 at 10:29 PM, Haru <[email protected]> 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 <[email protected]>:
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/