Page 8 of 9

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Mon Jul 06, 2009 6:32 pm
by JeremyBASS
for what it's worth

{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

Posted: Sat Jul 25, 2009 1:08 am
by tosi
{language_menu} user defined tag doesn't work correctly on CMSMS 1.6.

For example, instead of displaying

Code: Select all

<span xml:lang="en">English</span>
It displays

Code: Select all

<span xml:lang="en">English</span>
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?

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Tue Jul 28, 2009 5:02 pm
by Franck
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.

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Fri Aug 07, 2009 2:55 pm
by icefist
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

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Wed Aug 26, 2009 12:34 pm
by plger
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:
  • 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.
Pierre-Luc

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Wed Aug 26, 2009 2:16 pm
by alinome.net
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.
Great. I've included links to your message in the implementation guide.

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Sun Sep 06, 2009 8:54 pm
by Franck
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 !

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Mon Sep 07, 2009 7:57 am
by plger
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

Posted: Mon Sep 07, 2009 12:51 pm
by Franck
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 !

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Tue Sep 08, 2009 2:50 pm
by Pierre M.
About Translations/TC, French speakers ask Jean-Claude in http://forum.cmsmadesimple.org/index.ph ... ,10.0.html
Pierre

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Thu Sep 10, 2009 3:59 pm
by tosi
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

Code: Select all

{menu start_level="2"}
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!

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Thu Sep 10, 2009 5:13 pm
by tosi
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

Posted: Sun Sep 13, 2009 2:42 pm
by plger
Could you explain what you mean exactly by multiple menus?

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Mon Sep 14, 2009 12:56 am
by evheniys
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.

Re: One more approach to build a multilingual site with the regular CMSMS

Posted: Sat Sep 19, 2009 8:37 am
by plger
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?