Forums / Setup & design / dual-lingual site - how/which way?

dual-lingual site - how/which way?

Author Message

Christopher Thorjussen

Tuesday 20 May 2003 7:01:03 pm

I'm about to try to set up ezPub 3 as a corporate website, and I want to have it so I can have both norwegian (default) and english pages.

Would it be best to set up two sections, like /no/ and /en/ and have the same folders under each (most of the articles and info is the same, just diff languages), or is it easier to just have one section and two article for each "topic" - using templates perhaps?

I guess I'm not the first one who want to display more or less the same site in two languages/translations?

Selmah Maxim

Wednesday 21 May 2003 1:01:04 am

Hi ..

I`ll run my site with 3 language, for this i had create 3 folder in settings\siteaccess, i mean :

settings\siteaccess\en (english)
settings\siteaccess\de (dutch)
settings\siteaccess\hu (hungarian)

and each folder have site.ini.php, an inside it you can choose the defualt language by setting the RegionalSettings :

[RegionalSettings]
Locale=eng-GB
HTTPLocale=de
ContentObjectLocale=eng-GB

now, for 3 language :

http://mysite.com/en
http://mysite.com/de
http://mysite.com/hu

that`s it all !

Christopher Thorjussen

Wednesday 21 May 2003 4:46:14 pm

This is perhaps only part of what I want...

Let me try to explain what I want to achive

http://admin.mysite.com --> open admin site
http://www.mysite.com --> open norwegian site - default/always
http://www.mysite.com/en -> open english site

Looking at the demosite data and configurations, opening
http://www.mysite.com and http://www.mysite.com/no could/should give me the same result? Do I need to make a /no/ folder in

settings/siteaccess?

At the demodata again.. it shows me a webpage with the demo template (and it's overrides). As I've said, opening

www.demosite.com or www.demosite.com/demo results in the same page. All links is like

www.demosite.com/demo/content/view/full/159/. BUT, changing /demo/ to, lets say /user/ -

www.demosite.com/user/content/view/full/159/ gives me the same content but with another design.
In my case, I don't think want to mix the content like this - so this should in my case (/no/ and /en/) result in showing an error or just displaying the default page for that site.

As a newbie to ezPub I am, all these folders, sections, siteaccess, matchorder etc is quite confusing..

And as I want to have both norwegian and english content, do I need to install both languages during setup? Does the translation function(s) translate more than the links and text on the admin page?

Selmah Maxim

Saturday 24 May 2003 9:28:18 am

you need alot to know :)

try with this link, i was just like :)

read this :
http://ez.no/developer/ez_publish_3/forum/setup_design/really_i_need_help_about_ulr_alias_language_

eZ debug

Timing: Jan 18 2025 04:24:14
Script start
Timing: Jan 18 2025 04:24:14
Module start 'content'
Timing: Jan 18 2025 04:24:15
Module end 'content'
Timing: Jan 18 2025 04:24:15
Script end

Main resources:

Total runtime1.0855 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.8438180.8359
Module start 'content' 0.00680.9434 769.6797492.1406
Module end 'content' 0.95020.1352 1,261.8203333.5000
Script end 1.0854  1,595.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3973210.0002
Check MTime0.00170.1549210.0001
Mysql Total
Database connection0.00080.072910.0008
Mysqli_queries1.015793.57411970.0052
Looping result0.00200.18571950.0000
Template Total1.053697.120.5268
Template load0.00210.190120.0010
Template processing1.051596.869420.5257
Template load and register function0.00020.020810.0002
states
state_id_array0.00120.108910.0012
state_identifier_array0.00250.234620.0013
Override
Cache load0.00170.1571430.0000
Sytem overhead
Fetch class attribute can translate value0.00140.132930.0005
Fetch class attribute name0.00110.097240.0003
XML
Image XML parsing0.00050.046430.0002
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00230.2158210.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/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
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs