So I have my wiki configured to only allow 1 language, English. However, some pages don’t seem to be getting any language assigned at all. These are normal wiki pages without any special code or scripting.
How do I change the page language of an existing page?
I’m hoping I can do this to my templates as I believe these are the root cause. Then update the existing pages with a script or something.
So yes you can use XWikiDocument#setDefaultLocale(Locale locale) or XWikiDocument#setDefaultLanguage(String language) (Deprecated) to set a default language.
Thanks for your responses Vincent and sorry for the late reply.
I’ve checked a few things and it seems something is overriding the default language as set under the administration panel. Is there a setting in the config files I should be aware of?
I turned on multilingual support as shown below,
And then whenever I create a page the right hand panel has a blank default language:
I tried checking the xml as you suggested but my wiki instance doesn’t seem to like it, my browser just hangs. Note that most of my pages are terminal, but did try with Main/WebHome and got the same problem. Any idea what might cause this?