Forums / Install & configuration / Change default language
Daniele Cacace
Wednesday 27 July 2005 3:52:53 am
How I can change the default language after the installation?
David Eriksson
Wednesday 27 July 2005 4:03:48 am
You can edit site.ini.
Beware, however, that if you change ContentObjectLanguage you will not be able to edit any objects that does not have a translation in your new language already.
Did that make sense? :)
/David
Xavier Dutoit
Wednesday 27 July 2005 4:25:48 am
As David said, you need to update the database. Example (to change to french):
UPDATE ezcontentobject_name SET content_translation='fre-FR', real_translation='fre-FR' WHERE content_translation='eng-GB' OR real_translation='eng-GB'; UPDATE ezcontentobject_attribute SET language_code='fre-FR' WHERE language_code='eng-GB';
http://www.sydesy.com
Matthew Carroll
Saturday 28 January 2006 12:51:41 pm
Here's what worked for me, mysql 4.1, also making sure that untranslated objects retain the correct 'real_translation'...
UPDATE `ezcontentobject_name` SET `content_translation`='eng-CA' WHERE `content_translation`='eng-GB'; UPDATE `ezcontentobject_name` SET `real_translation`='eng-CA' WHERE `real_translation`='eng-GB'; UPDATE `ezcontentobject_attribute` SET `language_code`='eng-CA' WHERE `language_code`='eng-GB';
Have fun!
http://carroll.org.uk