submission problem :(

Author Message

Selmah Maxim

Saturday 10 May 2003 7:30:29 am

just found another problem :(

my site will have 3 language, now when user sumbit commnet with english it`s ok, but when he submit with another language ez3 also will store it as english content !!

1. is there are any variabel to detect which language the user is browsing ?

2. can ez3 store into DB the content base on with which language the user is browsing ?

3. now my the comments, another inputs is sorting with 3 language, how to sort just on based on the browesed language ?

just idea;
once i made site with 2 language, the defualt language stored in session, and every where in the site in user wanna see the content with another language, he just click a link, then the new language code will replace the defualt one, and the redicrect the user the same page with another language.

i hope this option will be in the next verions !

Selmah Maxim

Saturday 10 May 2003 8:17:14 am

just found this :

___________________ ezcontentobject.php __________
function defaultLanguage()
{
$ini =& eZINI::instance();
return $ini->variable( 'RegionalSettings', 'ContentObjectLocale' );
// return eZLocale::currentLocaleCode();
}
___________
if ( !$translation )
{
$translation = $this->defaultLanguage();
}
$query = "INSERT INTO ezcontentobject_name( contentobject_id,
name,
content_version,
content_translation,
real_translation )
VALUES( '$objectID',
'$objectName',
'$versionNum',
'$translation',
'$translation' )";

______________________

how can i pass the $translation ?
i had made hidden input with translation name, but the query wan`t get it !

any idea ?!

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

Main resources:

Total runtime1.7609 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8906152.6094
Module start 'layout' 0.00630.0040 740.500039.4141
Module start 'content' 0.01031.7492 779.9141430.4219
Module end 'content' 1.75950.0013 1,210.33598.1875
Script end 1.7608  1,218.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.1826160.0002
Check MTime0.00130.0744160.0001
Mysql Total
Database connection0.00120.070110.0012
Mysqli_queries1.690596.0036520.0325
Looping result0.00070.0403500.0000
Template Total1.722097.820.8610
Template load0.00190.106820.0009
Template processing1.720197.683020.8600
Template load and register function0.01871.061710.0187
states
state_id_array0.00180.104310.0018
state_identifier_array0.00070.040620.0004
Override
Cache load0.00160.0893390.0000
Sytem overhead
Fetch class attribute can translate value0.00140.076710.0014
Fetch class attribute name0.00160.088220.0008
XML
Image XML parsing0.00010.007710.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00060.0333100.0001
String conversion0.00000.000640.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
2content/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
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs