Page 2 of 3

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 4:10 pm
by saltydog
alby wrote:
Restore old, Gnenerla Settings > MLE languages, check and one moment before hit rename to config_lang.php.old and create a empty file config_lang.php (in same way of config.php in new installation)

Alby

I did it, but the new config_lang.php keeps empty. Nothing is stored in. 0 bytes.

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 4:22 pm
by mel
saltydog wrote:
I did it, but the new config_lang.php keeps empty. Nothing is stored in. 0 bytes.
Same for me.

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 5:49 pm
by seensite
humm, maybe you have found a bug for a new installation not in upgrade .....

EDIT: For avoid is necessary to create a config_lang.php in same way of create config.php in new installation
That's what I did, I gave it the same chmod as config.php, then 0777 when I became "Writing config_lang failed!" - with the same result. I'll write the config_lang by hand as explained in the README of v.1.6 and post if it works.
See U

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 6:30 pm
by alby
Someone can test this?
- download attach file
- rename attach from .mpg to .zip
- uncompress to siteprefs_mle.php
- rename your admin/siteprefs_mle.php to admin/siteprefs_mle.php.old
- copy new siteprefs_mle.php in admin folder
- try and report

Alby

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 6:45 pm
by seensite
Perfect : I just had to check the box "Use root_url for Default page (there is a problem on few php-cgi installations):" in MLE settings tab because otherway I had the error message "xyz\web\gnagnagna not suitable for php writing", and everything is now turned on green. :D
Thank you Alby

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 6:48 pm
by saltydog
So, what? Should we all do the same?

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 6:51 pm
by mel
Almost fine for me. It get effectivily green and seems fine. But I think I have a problem with url.

In admin: Check DEFAULT_LANG and language array sintax in config_lang.php!
In front end (debug):

Code: Select all

Notice: Undefined index: fr_FR in /opt/lampp/www/dev_lab/include.php on line 267

Notice: Undefined index: fr_FR in /opt/lampp/www/dev_lab/include.php on line 268

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/www/dev_lab/include.php:267) in /opt/lampp/www/dev_lab/index.php on line 377

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/www/dev_lab/include.php:267) in /opt/lampp/www/dev_lab/lib/content.functions.php on line 601

Warning: Cannot modify header information - headers already sent by (output started at /opt/lampp/www/dev_lab/include.php:267) in /opt/lampp/www/dev_lab/lib/content.functions.php on line 602

Code: Select all

new file:
$hls = array(
 'fr' => array(
	'locale_cms'=>'fr_FR',
	'block'=>'fr',
	'parent'=>'fr',
	'flag'=>'<img src="http://localhost/dev_lab/uploads/lang/fr.png" style="border:0;opacity:1;" alt="Français" title="Français" />',
	'text'=>'Français',
	'locale'=>'fr_FR.utf8@euro'
 ),

old file:$hls = array(
 'fr' => array(
	'block'=>'fr',
	'flag'=>'<img src="images/lang/fr.png" style="border:0; opacity:1;" alt="Français" />',
	'text'=>'Français',
	'locale'=>'fr_FR.utf8@euro', 
	'locale_cms'=>'fr_FR',
	),
Still work on it and see if I could find other informations

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 7:05 pm
by seensite
seensite wrote: Perfect : I just had to check the box "Use root_url for Default page (there is a problem on few php-cgi installations):" in MLE settings tab because otherway I had the error message "xyz\web\gnagnagna not suitable for php writing", and everything is now turned on green. :D
Thank you Alby
I don't know if it can change something to the result, but before uploading the new siteprefs_mle.php I had written the config_lang.php as explained in README doc 1.6. Just in case of... I'll go on with rest of setup.

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 7:45 pm
by alby
mel wrote: Almost fine for me. It get effectivily green and seems fine. But I think I have a problem with url.

In admin: Check DEFAULT_LANG and language array sintax in config_lang.php!
In front end (debug):

Code: Select all

Notice: Undefined index: fr_FR in /opt/lampp/www/dev_lab/include.php on line 267
...............

Code: Select all

new file:
$hls = array(
 'fr' => array(
	'locale_cms'=>'fr_FR',
	'block'=>'fr',
	'parent'=>'fr',
	'flag'=>'<img src="http://localhost/dev_lab/uploads/lang/fr.png" style="border:0;opacity:1;" alt="Français" title="Français" />',
	'text'=>'Français',
	'locale'=>'fr_FR.utf8@euro'
 ),

old file:$hls = array(
 'fr' => array(
	'block'=>'fr',
	'flag'=>'<img src="images/lang/fr.png" style="border:0; opacity:1;" alt="Français" />',
	'text'=>'Français',
	'locale'=>'fr_FR.utf8@euro', 
	'locale_cms'=>'fr_FR',
	),
Still work on it and see if I could find other informations
have you change something?
What is your default lang in Global Settings > MLE languages
from your config_lang must be "fr" and not "fr_FR"

Alby

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 7:50 pm
by alby
seensite wrote:
seensite wrote: Perfect : I just had to check the box "Use root_url for Default page (there is a problem on few php-cgi installations):" in MLE settings tab because otherway I had the error message "xyz\web\gnagnagna not suitable for php writing", and everything is now turned on green. :D
Thank you Alby
I don't know if it can change something to the result, but before uploading the new siteprefs_mle.php I had written the config_lang.php as explained in README doc 1.6. Just in case of... I'll go on with rest of setup.
humm... if it's ok with "extended version" then I think it's ok (or replace your old config_lang with new siteprefs)
check in MLE settings Test DB and config

Alby

Re: Multilanguage CMSMS MLE 1.6

Posted: Sat Jun 27, 2009 8:03 pm
by mel
alby wrote: have you change something?
What is your default lang in Global Settings > MLE languages
from your config_lang must be "fr" and not "fr_FR"

Alby
I was stick to message Check DEFAULT_LANG and language array sintax in config_lang.php! until I re-install my old confi_lang...
OK, my stupid error. I forget to put radio button in default language option...
Everything seem to work correctly now!!!  :)
Thanks so much for your time!
Mel

Re: Multilanguage CMSMS MLE 1.6

Posted: Sun Jun 28, 2009 1:15 pm
by antibart
Most things are working fine and it was pretty easy to install. Thanks for it.

Untill now there just one thing:

pretty url again. Generally this works fine too.

But: when I uncheck "Use root_url for Default page (there is a problem on few php-cgi installations):" in the global settings
my startpage (home) is not displayed in the default language. It starts with last visited language instead of German. Even if I cleared browser-cache.

And when I check this option all pages work in pretty url except "HOME". It is  displayed as  www*domain*de/?hl=de_DE and language-navigation does not work (in HOME only - all other pages are working fine).

I don not know if this is a special 1.6.-problem, a pretty url problem or a problem with the default page. Here are my .htaccess-settings:

Code: Select all

#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]

Re: Multilanguage CMSMS MLE 1.6

Posted: Sun Jun 28, 2009 1:30 pm
by alby
antibart wrote: But: when I unckeck "Use root_url for Default page (there is a problem on few php-cgi installations):" in the global settings
my startpage (home) is not displayed in the default language. It starts with last visited language instead of German. Even if I cleared browser-cache.

And when I check this option all pages work in pretty url except "HOME". It is  displayed as  www*domain*de/?hl=de_DE and language-navigation does not work (in HOME only - all other pages are working fine).
1. navigation save your last language in a cookie browser for 1 hour in frontend and 30' in backend (this is necessary for avoid some modules that are not close to API). If you want display "real" home that depend of your browser accept languages you must delete your cookies browser for this site

2. System Information what said? php-cgi or php-fcgi? If yes you must uncheck "Use root_url for Default page" because php cgi has problem when is missing your script

Alby

Re: Multilanguage CMSMS MLE 1.6

Posted: Sun Jun 28, 2009 2:14 pm
by seensite
alby wrote: humm... if it's ok with "extended version" then I think it's ok (or replace your old config_lang with new siteprefs)
check in MLE settings Test DB and config

Alby
Yes, it is ok with "extended version", MLE set up all good until real MLE.
Many thanks, this release is Very cool  :)

Re: Multilanguage CMSMS MLE 1.6

Posted: Sun Jun 28, 2009 5:34 pm
by maca
Hi,

I made upgrade from 1.5.4b MLE to 1.6 MLE.
After that I solved some small "problems", but one of them remains.

I am use to using typical set of variables via TranslationManager (new version 0.7.7). Unfortunately all variables are displayed only in my default language now. I cannot understand where is the problem...

For example:
{tr_key key="skip_to_content" lang="$lang" assign="skip_to_content"}
{anchor anchor='skip' title=$skip_to_content accesskey='3' text=$skip_to_content}

Help me please.

Thaks MaCa