Change default language

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 09:57:33
Script start
Timing: Jan 19 2025 09:57:33
Module start 'layout'
Timing: Jan 19 2025 09:57:33
Module start 'content'
Timing: Jan 19 2025 09:57:34
Module end 'content'
Timing: Jan 19 2025 09:57:34
Script end

Main resources:

Total runtime0.5786 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.1719152.6250
Module start 'layout' 0.00790.0036 741.796939.4453
Module start 'content' 0.01160.5658 781.2422624.1094
Module end 'content' 0.57730.0013 1,405.351612.1719
Script end 0.5786  1,417.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6055160.0002
Check MTime0.00140.2446160.0001
Mysql Total
Database connection0.00080.139310.0008
Mysqli_queries0.519689.8086640.0081
Looping result0.00060.1044620.0000
Template Total0.544394.120.2721
Template load0.00210.359320.0010
Template processing0.542293.705220.2711
Template load and register function0.00010.015410.0001
states
state_id_array0.00270.473910.0027
state_identifier_array0.00120.207420.0006
Override
Cache load0.00170.3016180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.087540.0001
Fetch class attribute name0.00110.183170.0002
XML
Image XML parsing0.00921.598640.0023
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00901.5583280.0003
String conversion0.00000.002140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs