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?
Change language stopped working
-
- New Member
- Posts: 5
- Joined: Sun Jul 12, 2009 9:14 pm
-
- New Member
- Posts: 5
- Joined: Sun Jul 12, 2009 9:14 pm
Re: Change language stopped working
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
to
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.
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'
),
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'
),
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.
Re: Change language stopped working
The correct is this but clean your browser cookie for this site or waitinng 30'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'
),
Have you apply doc/htaccess.mle to your htaccess ........sunmoonqueen wrote: Now the problem as I described it in my first post appeared and is still there.
Alby
-
- New Member
- Posts: 5
- Joined: Sun Jul 12, 2009 9:14 pm
Re: Change language stopped working
Language switch is working again.
But two other problems:
1) What you suggested as correct solution is not working.
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?
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'
),
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?
Re: Change language stopped working
Have you waiting at least 30' or drop your cookies for this site?sunmoonqueen wrote: 1) What you suggested as correct solution is not working.I only get 404 errors for every page with this.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' ),
How can I change the URLs correctly from ".../de_DE/home" to ".../de/home"?
Is better enter in Global Settings and re-save new Default language (de or other)
I don't know Guesbook module and I don't think that support multilangsunmoonqueen 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?
Alby