One more approach to build a multilingual site with the regular CMSMS
Re: One more approach to build a multilingual site with the regular CMSMS
for what it's worth
{news category="`$page_lang`_news"}
should work also
as well as
{news category="`$page_lang`*"}
Cheers
jeremyBass
{news category="`$page_lang`_news"}
should work also
as well as
{news category="`$page_lang`*"}
Cheers
jeremyBass
Re: One more approach to build a multilingual site with the regular CMSMS
{language_menu} user defined tag doesn't work correctly on CMSMS 1.6.
For example, instead of displaying
It displays
Because of that the menu is displayed incorrectly.
It took me a while to figure out what's wrong with that. It seems that in CMSMS 1.6 all text passed to function cms_selflink() are also passed to function cms_htmlentities(). That effectively replaces html special characters with html entities.
In order to make it work again, you have to comment lines 345, 361 and 439 in function.cms_selflink.php.
Threads that I've found the info about this problem:
http://forum.cmsmadesimple.org/index.php?topic=34935.0
http://forum.cmsmadesimple.org/index.php/topic,31913.0.html
I wonder if there's a way to fix this problem without editing function.cms_selflink.php?
For example, instead of displaying
Code: Select all
<span xml:lang="en">English</span>
Code: Select all
<span xml:lang="en">English</span>
It took me a while to figure out what's wrong with that. It seems that in CMSMS 1.6 all text passed to function cms_selflink() are also passed to function cms_htmlentities(). That effectively replaces html special characters with html entities.
In order to make it work again, you have to comment lines 345, 361 and 439 in function.cms_selflink.php.
Threads that I've found the info about this problem:
http://forum.cmsmadesimple.org/index.php?topic=34935.0
http://forum.cmsmadesimple.org/index.php/topic,31913.0.html
I wonder if there's a way to fix this problem without editing function.cms_selflink.php?
Re: One more approach to build a multilingual site with the regular CMSMS
I hope so, this multilanguage option is useful and easy to setup.
I just upgraded one site and was wondering how to fix this display problem... Anyway, thanx for the temporary solution.
I just upgraded one site and was wondering how to fix this display problem... Anyway, thanx for the temporary solution.
Re: One more approach to build a multilingual site with the regular CMSMS
Sorry for a lame question, I really spend 4-5 hours trying to find whats wrong..
But I couldnt find what I did wrong, I can only get to show the languages flag picture, but no menu.. Where should I look?
site is here video-foto . lt
Thanks a lot
But I couldnt find what I did wrong, I can only get to show the languages flag picture, but no menu.. Where should I look?
site is here video-foto . lt
Thanks a lot
Re: One more approach to build a multilingual site with the regular CMSMS
For those interested, I released a module in the forge (http://dev.cmsmadesimple.org/projects/babel) that manages frontend languages based on Marcos Cruz's separate tree branches method.
Features:
Features:
- Admin Interface to allow easy setup (reading the help should be enough) and customization.
- Possibility to find alternatives pages either with Marcos Cruz's manual method (the ''Other languages' content block) or by using page hierarchy (recommended usage).
- Possibility of redirection based on cookies and/or browser language.
- Uses a template to display the menu, so that you can do pretty much what you want.
- Includes a small translation system like the modules' Lang() function.
Last edited by plger on Wed Aug 26, 2009 12:36 pm, edited 1 time in total.
- alinome.net
- Forum Members
- Posts: 124
- Joined: Thu Jan 25, 2007 2:54 pm
- Location: España / Hispanujo / Spain
Re: One more approach to build a multilingual site with the regular CMSMS
Great. I've included links to your message in the implementation guide.plger wrote: For those interested, I released a module in the forge (http://dev.cmsmadesimple.org/projects/babel) that manages frontend languages based on Marcos Cruz's separate tree branches method.
Marcos Cruz
Re: One more approach to build a multilingual site with the regular CMSMS
Hi Pierre-Luc,
looks promising, will try it for a new site i'm working on the next coming days.
Is there a way that this module appears in the translate center so that we can translate it ? Do you already have a french version of it ?
Thanx a lot !
looks promising, will try it for a new site i'm working on the next coming days.
Is there a way that this module appears in the translate center so that we can translate it ? Do you already have a french version of it ?
Thanx a lot !
Re: One more approach to build a multilingual site with the regular CMSMS
It is a shame, but I don't have the slightest idea how the translation center works... in any case, I have added french language files to the last release (0.3.2) of the module (which also solves two significative bugs)
Re: One more approach to build a multilingual site with the regular CMSMS
Nice
BTW, don't have a clue either for the translate center, but it could be interesting for other languages (than english & french) to be able to translate this module, don't you think ? As I'm french, it's ok for me now
Thanx !
BTW, don't have a clue either for the translate center, but it could be interesting for other languages (than english & french) to be able to translate this module, don't you think ? As I'm french, it's ok for me now
Thanx !
Re: One more approach to build a multilingual site with the regular CMSMS
About Translations/TC, French speakers ask Jean-Claude in http://forum.cmsmadesimple.org/index.ph ... ,10.0.html
Pierre
Pierre
Re: One more approach to build a multilingual site with the regular CMSMS
This module really looks great! Thanks!
Though I can't get the main menu to show, but I hope I'll soon figure it out
It should work just by specifying
right ?
I get the language menu, but the main menu doesn't seem to work...
EDIT:
Ok, I've found the problem - it seems it's a bug in MenuManager module in CMSMS 1.6.5, please see this link:
http://forum.cmsmadesimple.org/index.ph ... 147.0.html
After editing modules\MenuManager\action.default.php everything is working ok.
Thanks again for the great module, it really saved me a lot of time!
Though I can't get the main menu to show, but I hope I'll soon figure it out
It should work just by specifying
Code: Select all
{menu start_level="2"}
I get the language menu, but the main menu doesn't seem to work...
EDIT:
Ok, I've found the problem - it seems it's a bug in MenuManager module in CMSMS 1.6.5, please see this link:
http://forum.cmsmadesimple.org/index.ph ... 147.0.html
After editing modules\MenuManager\action.default.php everything is working ok.
Thanks again for the great module, it really saved me a lot of time!
Last edited by tosi on Thu Sep 10, 2009 4:08 pm, edited 1 time in total.
Re: One more approach to build a multilingual site with the regular CMSMS
Is there any way to have multiple menus using this method / module?
Re: One more approach to build a multilingual site with the regular CMSMS
Could you explain what you mean exactly by multiple menus?
Re: One more approach to build a multilingual site with the regular CMSMS
Thanks for this module!
But i have some trouble. When I click in Language menu I have blank page (redirection don't work) (I use hierarchy for redirection)
Please tell me what I do wrong.
But i have some trouble. When I click in Language menu I have blank page (redirection don't work) (I use hierarchy for redirection)
Please tell me what I do wrong.
Re: One more approach to build a multilingual site with the regular CMSMS
I'm afraid you'll have to give me a bit more info if you want help...
First of all, is the url of your blank page the url of the page you were at, the one that should be shown (in the new language), or completely something else?
First of all, is the url of your blank page the url of the page you were at, the one that should be shown (in the new language), or completely something else?