Page 1 of 3
"Languages not set" in multilang
Posted: Sun Nov 26, 2006 2:21 pm
by OlafNoehring
Hi
I can install thge MLE (multilang) mod - but when I open the only installed page (home) afterwards it reads in the upper right corner:
Languages not set!
I can not find where I need to define languages.
I have tried to reinstall - same problem.
I can create a new page - but can not set any language here either.
Olaf
Re: "Languages not set" in multilang
Posted: Sun Nov 26, 2006 4:05 pm
by moorezilla
Did you check the "install multi-lang support" checkbox (or words to that effect) when you installed? When you do, it should proceed to a screen where you can select languages to include.
Re: "Languages not set" in multilang
Posted: Sun Nov 26, 2006 4:24 pm
by OlafNoehring
Hi
yes, I did - I have selected english (of course - can not deseletc) french, german, italian and spanish.
The flag-images have been created in /admin/images/lang and /images/lang
The file in cmsroot "config_lang" contains only
$config['root_path'] = "/srv/www/htdocs/XXXX";
- the correct root to cmsms
Olaf
Re: "Languages not set" in multilang
Posted: Mon Nov 27, 2006 7:23 am
by katon
sounds like the installer failed to create the config_lang.php file.
Re: "Languages not set" in multilang
Posted: Mon Nov 27, 2006 7:27 am
by OlafNoehring
Hi
well, what is sopposed to be in the file config_lang ?
I will be glad to edit the file by hand.
Olaf
Re: "Languages not set" in multilang
Posted: Mon Nov 27, 2006 7:35 am
by katon
Please find attached a sample config_lang.php file.
Update: The attached file replaced!!!
[gelöscht durch Administrator]
Re: "Languages not set" in multilang
Posted: Mon Nov 27, 2006 8:50 am
by OlafNoehring
Hi
thanks already - but the file seems to be empty. Can you please upload another or email it to
olaf 2006 [at] team-noehring.de
Olaf
Re: "Languages not set" in multilang
Posted: Mon Nov 27, 2006 10:40 pm
by katon
I have fixed the file above, please try again.
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 7:31 am
by OlafNoehring
Hi Katon
thanks but it still does not work - the result when I open the website (
http://www.blabla.com/cms):
Not Found
The requested URL was not found on this server.
My config_lang looks like this:
$hls = array(
'en' => '',
'de' => '',
'es' => '',
'it' => '',
'fr' => ''
);
define('DEFAULT_LANG', 'en');
When I wo to the admin area (
http://www.blabla.com/cms/admin), I can log in and when I go to pages, it looks like this:
Olaf
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 7:47 am
by OlafNoehring
Hi again
well also I tried something else..
I reinstalled - and cerated an empty config_lang with chmod 777-
after install the file looks like this (plus php tags):
define('DEFAULT_LANG', 'en');
no languages were added.
Olaf
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 7:50 am
by katon
I don't know the exact reason, but I assume that you upgraded a German unilingual web site to MLE. You have probably renamed db columns from content_title and menu_text to content_title_de and menu_text_de, which is logical if these columns contained German text. However, your *_en columns remained empty, and since English is your default language, you can't see the page names in the admin area. I would recommend changing the default language to "de" in config_lang.php.
I see it's time to create a FAQ/Troubleshooter for MLE, since the way it works now causes a lot of troubles, and the redesign to fix the problems won't come soon.
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 7:54 am
by katon
OlafNoehring wrote:
Hi again
well also I tried something else..
I reinstalled - and cerated an empty config_lang with chmod 777-
after install the file looks like this (plus php tags):
define('DEFAULT_LANG', 'en');
no languages were added.
Olaf
Please make the entire directory writable (not recursively) for the time of the installation process.
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 9:41 am
by OlafNoehring
Hi Katon
your 1st post: no, I did not upgrade, but did a clean installation with latest mle, I did not do anything to the database (before, while, after) the install.
your 2nd post: I deleted the first instalation, made my /cms "chmod 777" and explicitly config.php and config_lang.php also to chmod 777: Same result after installation is done: "Not found" error.
The config_lang.php seems now correct (but after the last entry in the array there is a "," - which should not be there).
What columns do you mean (what should their name be, in which tables)?
In the database I find for example the table
cms7_content
with the fields
content_name
menu_text
...
prop_names
In prop_names I can find value: "content_en,content_de,content_es,content_fr"
In the table
cms7_content_props
I can find records with ID and prop_name corresponding to teh entries in cms7_content - this seems to be correct (afaik)
Olaf
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 9:45 am
by katon
Then I just don't understand how you get 4 pages after a clean install. The install creates only one page. Or did you create the 3 other pages manually after the installation?
Re: "Languages not set" in multilang
Posted: Tue Nov 28, 2006 9:50 am
by OlafNoehring
Hi
sorry,
yes, I created the other pages after Install because I thought (at that time I did not see any flags) you can choose the language of a page while creating it.
But it was a clean install.
Olaf