Forums / Install & configuration / Selecting a diferent language as user

Selecting a diferent language as user

Author Message

Paulo Almeida

Wednesday 26 March 2003 10:08:27 pm

I have had made post this questions before, but it was in beta versions, so...
Can anyone help me to create a link to select the site language. I tested a lot of addresses, like /content/view/full/xxx?Language=eng-GB , /content/view/full/XXX/eng-GB, and i doesn't work. I don't know if addresses are right but need to change something in config or use another address.

Thanks in advance

Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Jan Borsodi

Thursday 27 March 2003 1:05:28 am

Using /content/view/full/XXX/eng-GB is only meant to change the viewed language of a content object.

Changing the site language per user is not supported yet, as it is now it is always read from site.ini. A user should be able to set a preffered language for the site and also the possibility to change language by url could be interesting. I'll see if this can be added as a feature in upcoming releases.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Zeno Streich

Thursday 27 March 2003 1:45:43 am

So in this situation i don't understand the idea behind the internalisation / language concept ? Should we create different site's for each language and navigate the user to there when he want's to select the language ?

@Jan: for my current project i have an additional need. a user should be able to select his prefered language in which the site should appear and also enable additional languages in which he well see content which is not available in the main language ;-).
Up to now i have found no system on the market with this feature.

regards Zeno

Paulo Almeida

Thursday 27 March 2003 2:04:44 am

So the only way to do this is create virtualhosts for all languages, configure the site.ini.php with hostmatchmap and change the locale settings for all VH.

Is there another way?
Will exist onother options/way to do this?

Sorry all that questions, and thanks

Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Jan Borsodi

Thursday 27 March 2003 2:30:20 am

You should create one siteaccess per language and one for the main site. I would also suggest using url based siteaccess matching, that way you can easily add new languages without specifying new hosts.

If you use two hosts one for admin and one for user you can use specify this in site.ini:

[SiteAccessSettings]
MatchOrder=host;uri

HostMatchType=map
HostMatchMapItems[]=myadminhost.com;admin

[SiteSettings]
DefaultAccess=user

That way it will first try host matching and match the admin, if admin is not matched it will try url based using DefaultAccess if none is specified.
Then create one siteaccess per language for instance sp (spanish) and fr (french), you will then get url's like this:
/sp/content/view/full/2 and /fr/content/view/full/2.
It can also be a good idea to use a different siteaccess for the default site to avoid urls like /user/content/view/full/2.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paulo Almeida

Thursday 27 March 2003 5:22:33 am

Well, first part os hostmap i understud (was what i posted before), but your idea of /en, /sp, /pt, etc sound very interesting, but i can't understand that (i never understud URIMatch :-( ). Can you give an example of that?

Thanks

Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

eZ debug

Timing: Jan 30 2025 19:45:36
Script start
Timing: Jan 30 2025 19:45:36
Module start 'content'
Timing: Jan 30 2025 19:45:36
Module end 'content'
Timing: Jan 30 2025 19:45:36
Script end

Main resources:

Total runtime0.2039 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0703370.2813
Module start 'content' 0.00740.0145 958.35161,009.5781
Module end 'content' 0.02190.1820 1,967.92973,897.8672
Script end 0.2039  5,865.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00512.5235200.0003
Check MTime0.00150.7558200.0001
Mysql Total
Database connection0.00070.350110.0007
Mysqli_queries0.099348.71221410.0007
Looping result0.00130.62201390.0000
Template Total0.181489.010.1814
Template load0.00100.512010.0010
Template processing0.180488.455410.1804
Override
Cache load0.00070.337910.0007
Sytem overhead
Fetch class attribute can translate value0.00170.821810.0017
XML
Image XML parsing0.00030.130510.0003
General
dbfile0.00834.0475200.0004
String conversion0.00000.002630.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs