This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Setup & design » submission problem :(

submission problem :(

submission problem :(

Saturday 10 May 2003 4:30:29 pm - 1 reply

just found another problem sad.gif Emoticon

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 !

Saturday 10 May 2003 5:17:14 pm

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,
real_translation )
VALUES( '$objectID',
'$translation' )";


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

any idea ?!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from