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.