Cannot set the Default Language to other language like Traditional Chinese
Is there a way to set the default language to Traditional Chinese? To show content in Chinese.
We got referenced from this site (http://forumarchive.dotcms.com/Default-Language-Setting-td5442673.html) but still not work.
We changed the code of language from "CHARSET = text/html;charset=UTF-8 DEFAULTLANGUAGECOUNTRY = United States DEFAULTLANGUAGE = enUS DEFAULTLANGUAGECODE = en DEFAULTLANGUAGESTR = English DEFAULTLANGUAGECOUNTRYCODE = US" To "CHARSET = text/html;charset=UTF-8 DEFAULTLANGUAGECOUNTRY = Hong Kong DEFAULTLANGUAGE = zhHK DEFAULTLANGUAGECODE = zh DEFAULTLANGUAGESTR = Traditional Chinese DEFAULTLANGUAGECOUNTRYCODE = HK"
After we changed the language code, the website fail to load vtl files and only display text in inner page and display error 404 in homepage.
Thanks.
Hi, what is you "DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE=" property set to? Try to set it to "true" so that if it doesn't find a Chinese version of content it defaults back to English.
We do have clients running default languages other than English so it's either a setting or an issue with the Chinese language specifically.
Take a look at our documentation and email me if you have any additional questions. Thanks.
https://dotcms.com/docs/latest/page-language-configuration
Hi, The DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE was set to true, but we can’t load any vtl files in front-end and the error is the dotcms can’t find the vtl path. However, we can found the default language is changed to Chinese in back-end panel. The process we did
- Change the language setting and save the file
- Restart the server
May I know if there any process we missed?
@allychan I think we can move this conversation to our community group as we use github just to report bugs but let me help you here: when you changed your language to DEFAULT_LANGUAGE = zh_HK along with the other properties that's the right way to change the default language, the problem here is that all the widgets are already saved in English, so when you are trying to reach them using the default language the widgets are not found, the system is trying to find them in Chinese, you must change them manually to your default language in order to use them properly.