More multi-language problems (basic)

Author Message

Clemens T

Monday 13 March 2006 5:35:00 am

Heya all!

I'm currently trying to make my Dutch website English as well!

Translating contentobjects is ez, but what to do with templates? Is there a simple system, that for dutch it picks some directory.. like: dut-NL and for english eng-GB, how does this work?

Thanks,
Clemens

Felix Laate

Monday 13 March 2006 5:46:33 am

Hoy,

if I understand you right, you could do somthing like this:

1) make different siteaccesses for each language and configure <i>site.ini.append.php</i> for each access like this (example for a certain strange norwegian sub-language):

[RegionalSettings]
Locale=nno-NO
HTTPLocale=no
ContentObjectLocale=nno-NO
TextTranslation=enabled

[ContentSettings]
TranslationList=eng-GB;ger-DE;nor-NO

For each access you need to replace nno-NO with the language needed for that access.

2) On your pagelayout, put som HTML which links to each access

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Clemens T

Tuesday 14 March 2006 2:09:16 am

Isn't it a bit uhm.. expensive in terms of diskspace/engineering etc. to be making a different site-access for every language. Or is this THE WAY to do multi-language in ezpublish? Maybe I'll try translation files, is that a good idea? Because the layout of every language is exactly the same, and I would not like to edit 2 files if it is about a layout issue.

So basically the question is, to enable multi-language, what is a better idea:
-use translation (.ts) files, and implement translation in my templates
-creating a siteaccess for every language I want to add.

Thanks for all the help!
Great forum :),
Clemens

Hapee de Groot

Tuesday 14 March 2006 2:19:37 am

That has always been the discussion, it was my choice to do it with the siteaccess solution, but the reason to make this choice that I did not really have to translate all articles. So we have a dutch section, english and spanish one and we each siteaccess has it own content so the translation way was not an option because you can only translate an article if it exists in its default language and we did not have a default language. Up till now the siteaccess solution works perfect.

Clemens T

Tuesday 14 March 2006 11:17:57 am

Ok.

thanks for the input!

I will do this:

- using translation files to translate the non-contentobject-related text in templates.
- using the translation system of ezpublish to translate all the contentobjects I would like to be translate

this is because I DO have a default language and a sub-language which covers part of the site.

Thanks a lot all!
Greets,
Clemens

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 18 2025 19:30:08
Script start
Timing: Jan 18 2025 19:30:08
Module start 'layout'
Timing: Jan 18 2025 19:30:08
Module start 'content'
Timing: Jan 18 2025 19:30:09
Module end 'content'
Timing: Jan 18 2025 19:30:09
Script end

Main resources:

Total runtime0.7097 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9219152.6250
Module start 'layout' 0.00520.0022 740.546939.4609
Module start 'content' 0.00740.7007 780.0078600.4531
Module end 'content' 0.70800.0016 1,380.460912.1563
Script end 0.7096  1,392.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4809160.0002
Check MTime0.00130.1872160.0001
Mysql Total
Database connection0.00090.133010.0009
Mysqli_queries0.651091.7397650.0100
Looping result0.00060.0843630.0000
Template Total0.678495.620.3392
Template load0.00210.299620.0011
Template processing0.676395.293920.3381
Template load and register function0.00030.035410.0003
states
state_id_array0.00170.244210.0017
state_identifier_array0.00090.120720.0004
Override
Cache load0.00180.2537380.0000
Sytem overhead
Fetch class attribute can translate value0.00170.245630.0006
Fetch class attribute name0.00120.166270.0002
XML
Image XML parsing0.00090.122630.0003
class_abstraction
Instantiating content class attribute0.00000.001670.0000
General
dbfile0.00090.1258220.0000
String conversion0.00000.001340.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs