Multilanguage CMSMS MLE 1.6

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Multilanguage CMSMS MLE 1.6

Post 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.
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: Multilanguage CMSMS MLE 1.6

Post by mel »

saltydog wrote:
I did it, but the new config_lang.php keeps empty. Nothing is stored in. 0 bytes.
Same for me.
Version 1.6-MLE
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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
The universe of information technology is constantly growing and contains only emerging products built on successive patches
alby

Re: Multilanguage CMSMS MLE 1.6

Post 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
Attachments

[The extension mpg has been deactivated and can no longer be displayed.]

User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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
The universe of information technology is constantly growing and contains only emerging products built on successive patches
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Multilanguage CMSMS MLE 1.6

Post by saltydog »

So, what? Should we all do the same?
Last edited by saltydog on Sat Jun 27, 2009 6:52 pm, edited 1 time in total.
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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
Version 1.6-MLE
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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.
The universe of information technology is constantly growing and contains only emerging products built on successive patches
alby

Re: Multilanguage CMSMS MLE 1.6

Post 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
Last edited by alby on Sat Jun 27, 2009 7:47 pm, edited 1 time in total.
alby

Re: Multilanguage CMSMS MLE 1.6

Post 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
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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
Version 1.6-MLE
antibart
Power Poster
Power Poster
Posts: 1155
Joined: Sun Aug 17, 2008 9:29 am

Re: Multilanguage CMSMS MLE 1.6

Post 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]
Last edited by antibart on Sun Jun 28, 2009 1:24 pm, edited 1 time in total.
alby

Re: Multilanguage CMSMS MLE 1.6

Post 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
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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  :)
The universe of information technology is constantly growing and contains only emerging products built on successive patches
maca
Forum Members
Forum Members
Posts: 13
Joined: Thu Mar 05, 2009 12:08 pm

Re: Multilanguage CMSMS MLE 1.6

Post 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
Locked

Return to “[locked] CMSMS MLE fork”