Submission for different sites .. Language code problem !

Author Message

Selmah Maxim

Wednesday 18 June 2003 5:49:32 am

I had create new class for users, and i have multi sites, and am wondering if ezp can get the site language and based on store it in DB, I mean if am browesing hungarian site , and submiting somthing, I wanna to store it as hu language, not en-GB !

From admin site i get all the submited data with en-GB langauge code, but the content i had submited from another langauge code, is there any way to slove this , or admin should do it manually as copy and pase content to anther language code !

I had tried with many hidden vars, but didn`t work, am trying this since version 3.0 !

thx in advnace !

Bård Farstad

Wednesday 18 June 2003 5:56:24 am

This is defined in site.ini ( ContentObjectLocale ). You need to set up a siteaccess for the translation. This is the default translation. If you need another translation you need to use the translation button in eZ publish.

So you would need to set up a siteaccess for every language to support this.

E.g.
ez.no/norwegian
ez.no/english
ez.no/german

Then if you e.g. would post a forum message for any of these languages it would be stored in the correct locale.

--bård

Documentation: http://ez.no/doc

Selmah Maxim

Wednesday 18 June 2003 6:02:40 am

Ohhh .. now i get the use of [ContentObjectLocale ] ;)

thx alot !! :)

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 15:03:18
Script start
Timing: Jan 18 2025 15:03:18
Module start 'layout'
Timing: Jan 18 2025 15:03:18
Module start 'content'
Timing: Jan 18 2025 15:03:20
Module end 'content'
Timing: Jan 18 2025 15:03:20
Script end

Main resources:

Total runtime1.7033 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1797152.6406
Module start 'layout' 0.00690.0039 741.820339.4766
Module start 'content' 0.01071.6908 781.2969531.6563
Module end 'content' 1.70150.0018 1,312.95318.1094
Script end 1.7033  1,321.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1997160.0002
Check MTime0.00140.0798160.0001
Mysql Total
Database connection0.00070.042310.0007
Mysqli_queries1.642396.4176570.0288
Looping result0.00060.0340550.0000
Template Total1.657097.320.8285
Template load0.00190.112120.0010
Template processing1.655197.169620.8275
Template load and register function0.00030.020310.0003
states
state_id_array0.00150.087110.0015
state_identifier_array0.00220.130620.0011
Override
Cache load0.00160.0958200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.053420.0005
Fetch class attribute name0.00140.079640.0003
XML
Image XML parsing0.00090.052120.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00110.0660170.0001
String conversion0.00000.000540.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs