Multilanguage CMSMS MLE version 1.1.1
Posted: Thu Aug 23, 2007 7:55 pm
I had an old academic site with Multilanguage CMSMS MLE 1.02 of Katon and other.
I wanted upgrade to new version of official release of CMSMS and I couldn't wait 2.0 release for security concerns :-\
It's very very "great and simple" for users but this project is dead
True than I don't like the logic (add columns to [cms_]content and [cms_]htmlblobs is a bad idea) but it's a transition until 2.0 stable :)
Well, I have apply patch parts of CMSMS MLE 1.02 to 1.07, 1.08 and in production with 1.1 and I think that works.
Now, I have apply to 1.1.1 (SVN revision 4085) of 23 August, 19.30 UTC.
I tested, and working, directly on normal CMSMS installation (don't rename to config_lang.php in root directory)
IMPORTANT: missing install MLE part, you can't install directly a new site in a MLE version, therefore:
- is required a working site with CMSMS MLE 1.02 or
- install a new site and after you transform in MLE or
- use a working CMSMS site and transform in MLE
- For semplicity I move logical define MLE from index.php to include.php (include.php is required in any scripts, admin too)
- Limited difference (in number and part) of files for relative simple synch with official CMSMS release
- Change language array config_lang.php to locale (no en,es but p.e. en_GB,es_MX) for finest language selection
- Selected language is define in:
locale (overwrite locale, leave empty in config.php),
frontend language (overwrite frontend language, leave empty in admin -> Global Settings),
current language (in this way CMSMS load current locale language for ALL modules)
- Define a smarty compileid language dependant for avoid compiling and caching problem with a unique template for all languages
- Increment of caching at level of official release (caching of MLE 1.02 is off)
- Smarty template variable {$lang} assign to current locale language (p.e. en_US, it_IT) and {$currlang} (p.e. en, es) for use in metadata language tag
- Define a personal language file (mle/lang/en_US.php, mle/lang/it_IT.php, ...) for template use, sintax is {$mle_translation.your_key_for_translation} (see in mle/lang/ for example)
- Try to recognize user visited and display relative language (TCN plus cookie), DEFAULT LANGUAGE if not. It's the method of php site and similar to this
- Lang Icons are in /admin/images/lang and /images/lang. Check your flags if present or rename from "your_country.png" to "your_locale.png".
- Add use of additional content block (language dependant transparent)
REMEMBER:
- It's not a fork of CMSMS but un update of CMSMS MLE 1.02 (http://dev.cmsmadesimple.org/projects/multilang)
- I don't support this (lack of time) for feature and bugs
- If you don't have CMSMS MLE 1.02 and you can wait a few months, go directly to CMSMS 2.0 release
- If you want to try this then:
EDIT: follow this topic for other info
DOWNLOAD in Multilingual project
Difference files only. The difference, in source, with official release are between comments:
// Start MLE
... difference ...
// End MLE
Good luck
Alby
I wanted upgrade to new version of official release of CMSMS and I couldn't wait 2.0 release for security concerns :-\
It's very very "great and simple" for users but this project is dead

True than I don't like the logic (add columns to [cms_]content and [cms_]htmlblobs is a bad idea) but it's a transition until 2.0 stable :)
Well, I have apply patch parts of CMSMS MLE 1.02 to 1.07, 1.08 and in production with 1.1 and I think that works.
Now, I have apply to 1.1.1 (SVN revision 4085) of 23 August, 19.30 UTC.
I tested, and working, directly on normal CMSMS installation (don't rename to config_lang.php in root directory)
IMPORTANT: missing install MLE part, you can't install directly a new site in a MLE version, therefore:
- is required a working site with CMSMS MLE 1.02 or
- install a new site and after you transform in MLE or
- use a working CMSMS site and transform in MLE
PLEASE read README.FIRST file in root directory for other info, sql queries for transform in MLE, ....
DIFFERENCE FROM 1.02 MLE, in bold the difference that BREAK compatibility with MLE 1.02:- For semplicity I move logical define MLE from index.php to include.php (include.php is required in any scripts, admin too)
- Limited difference (in number and part) of files for relative simple synch with official CMSMS release
- Change language array config_lang.php to locale (no en,es but p.e. en_GB,es_MX) for finest language selection
- Selected language is define in:
locale (overwrite locale, leave empty in config.php),
frontend language (overwrite frontend language, leave empty in admin -> Global Settings),
current language (in this way CMSMS load current locale language for ALL modules)
- Define a smarty compileid language dependant for avoid compiling and caching problem with a unique template for all languages
- Increment of caching at level of official release (caching of MLE 1.02 is off)
- Smarty template variable {$lang} assign to current locale language (p.e. en_US, it_IT) and {$currlang} (p.e. en, es) for use in metadata language tag
- Define a personal language file (mle/lang/en_US.php, mle/lang/it_IT.php, ...) for template use, sintax is {$mle_translation.your_key_for_translation} (see in mle/lang/ for example)
- Try to recognize user visited and display relative language (TCN plus cookie), DEFAULT LANGUAGE if not. It's the method of php site and similar to this
- Lang Icons are in /admin/images/lang and /images/lang. Check your flags if present or rename from "your_country.png" to "your_locale.png".
- Add use of additional content block (language dependant transparent)
REMEMBER:
- It's not a fork of CMSMS but un update of CMSMS MLE 1.02 (http://dev.cmsmadesimple.org/projects/multilang)
- I don't support this (lack of time) for feature and bugs
- If you don't have CMSMS MLE 1.02 and you can wait a few months, go directly to CMSMS 2.0 release
- If you want to try this then:
EDIT: follow this topic for other info
DOWNLOAD in Multilingual project
Difference files only. The difference, in source, with official release are between comments:
// Start MLE
... difference ...
// End MLE
Good luck
Alby