Page 1 of 1
Multilanguage CMSms: setup the default language
Posted: Tue May 02, 2006 1:58 am
by dernier_recours
I use CMSms multilang beta 2. It has few bugs, but works great (if you take time to go through the readme...). However, I have not found a way the change the default langage, so that the introduction page (the index) would be rendered in another language than english. Somebody knows how?
Thanks for this wonderful cms.
Re: Multilanguage CMSms: setup the default language
Posted: Tue May 02, 2006 10:58 am
by katon
No, English is hardcoded as the default language, and there is no way to change this. Sorry about this.
Re: Multilanguage CMSms: setup the default language
Posted: Tue May 02, 2006 12:26 pm
by dernier_recours
A solution is a simple html redirection in the root directory, in a file called index.html:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<META http-EQUIV="Refresh" CONTENT="0; url=index.php?&lan=fr">
</head>
</__body>
<__body>
</__html>
Re: Multilanguage CMSms: setup the default language
Posted: Tue May 02, 2006 11:04 pm
by katon
nice

Re: Multilanguage CMSms: setup the default language
Posted: Thu May 04, 2006 2:23 am
by dernier_recours
Hi Katon,
I saw your multilingual site. Its awesome. How could you get different templates for different languages? For example, I would like to title a column "News" in English and "Nouvelles" in French.
Thanks!
Re: Multilanguage CMSms: setup the default language
Posted: Thu May 04, 2006 8:06 pm
by katon
I didn't use different templates. If I had to use different languages in the template, I used User-Defined Tags. For instance:
if ($_GET['lan'] == 'ua'){
echo 'Копирайт 2004-2006 Киевская федерация Айкидо и боевых искусств.
Все права защищены.
Дизайн студии "Зебрасус",
Движок CMSMadeSimple';
} else {
echo 'Copyright 2004-2006 Kiev Aikido and Marital Arts Federation. All Rights Reserved.
Design by Zebrasus Studio,
Powered by CMSMadeSimple';
}