Change language stopped working

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.
Locked
sunmoonqueen
New Member
New Member
Posts: 5
Joined: Sun Jul 12, 2009 9:14 pm

Change language stopped working

Post by sunmoonqueen »

Hi, I am running CMSMS MLE 1.6. All was fine until suddenly changing the language does not work anymore. I can see in the URL that the language parameter changes, but the content of the site is still shown in the old language. Also, the old language flag stays enabled.
I tried it with different browsers: Firefox keeps showing me the English page, IE keeps showing me the Chinese page.
See for yourself: http://meiaijia.de/china

What happened? How can I repair it?
sunmoonqueen
New Member
New Member
Posts: 5
Joined: Sun Jul 12, 2009 9:14 pm

Re: Change language stopped working

Post by sunmoonqueen »

Sorry, I forgot to include...

Actually, I did a mistake at first. I wanted the URLS look more pretty, i.e. "..../de/home" instead of ".../de_DE/home". I found the Label URL not changable in the MLE settings, so I tried to change it in the config_lang.php
I changed

Code: Select all

$hls = array(
 'de_DE' => array(
	'locale_cms'=>'de_DE',
	'block'=>'de',
	'parent'=>'de',
	'flag'=>'<img src="http://meiaijia.de/china/uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
	'text'=>'Deutsch (German)',
	'locale'=>'de_DE.UTF-8'
 ),
to

Code: Select all

$hls = array(
 'de_DE' => array(
	'locale_cms'=>'de',
	'block'=>'de',
	'parent'=>'de',
	'flag'=>'<img src="http://meiaijia.de/china/uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
	'text'=>'Deutsch (German)',
	'locale'=>'de_DE.UTF-8'
 ),
and the same with the two other languages.
I changed the permissions of config_lang.php to 777 to upload.
Then all languages were gone anyway, it was not even possible to edit content in different languages.
So I changed the config_lang.php back as it was before.
Now the problem as I described it in my first post appeared and is still there.

Can you see where the problem is? I will be thankful for every hint to solve it.
alby

Re: Change language stopped working

Post by alby »

sunmoonqueen wrote: Actually, I did a mistake at first. I wanted the URLS look more pretty, i.e. "..../de/home" instead of ".../de_DE/home". I found the Label URL not changable in the MLE settings, so I tried to change it in the config_lang.php
I changed
$hls = array(
'de_DE' => array(
'locale_cms'=>'de_DE',
'block'=>'de',
'parent'=>'de',
'flag'=>'',
'text'=>'Deutsch (German)',
'locale'=>'de_DE.UTF-8'
),
The correct is this but clean your browser cookie for this site or waitinng 30'

sunmoonqueen wrote: Now the problem as I described it in my first post appeared and is still there.
Have you apply doc/htaccess.mle to your htaccess  ........

Alby
sunmoonqueen
New Member
New Member
Posts: 5
Joined: Sun Jul 12, 2009 9:14 pm

Re: Change language stopped working

Post by sunmoonqueen »

Language switch is working again.

But two other problems:

1) What you suggested as correct solution is not working.

Code: Select all

$hls = array(
 'de' => array(
   'locale_cms'=>'de_DE',
   'block'=>'de',
   'parent'=>'de',
   'flag'=>'<img src="http://meiaijia.de/china/uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
   'text'=>'Deutsch (German)',
   'locale'=>'de_DE.UTF-8'
 ),
I only get 404 errors for every page with this.
How can I change the URLs correctly from ".../de_DE/home" to ".../de/home"?

2) Guestbook URLs not working: Module Guestbook 1.1.12
The links to the guestbook are in all languages ".../guestbook", which gives me a 404 error.
I can access the Guestbook only by manually typing the URL ".../de_DE/guestbook" or ".../en_US/guestbook"
How to solve?
alby

Re: Change language stopped working

Post by alby »

sunmoonqueen wrote: 1) What you suggested as correct solution is not working.

Code: Select all

$hls = array(
 'de' => array(
   'locale_cms'=>'de_DE',
   'block'=>'de',
   'parent'=>'de',
   'flag'=>'<img src="http://meiaijia.de/china/uploads/lang/de.png" style="border:0;opacity:1;" alt="Deutsch (German)" title="Deutsch (German)" />',
   'text'=>'Deutsch (German)',
   'locale'=>'de_DE.UTF-8'
 ),
I only get 404 errors for every page with this.
How can I change the URLs correctly from ".../de_DE/home" to ".../de/home"?
Have you waiting at least 30' or drop your cookies for this site?
Is better enter in Global Settings and re-save new Default language (de or other)


sunmoonqueen wrote: 2) Guestbook URLs not working: Module Guestbook 1.1.12
The links to the guestbook are in all languages ".../guestbook", which gives me a 404 error.
I can access the Guestbook only by manually typing the URL ".../de_DE/guestbook" or ".../en_US/guestbook"
How to solve?
I don't know Guesbook module and I don't think that support multilang

Alby
Locked

Return to “[locked] CMSMS MLE fork”