CMS Made Simple Forums
https://forum.cmsmadesimple.org/

One more approach to build a multilingual site with the regular CMSMS
https://forum.cmsmadesimple.org/viewtopic.php?f=4&t=19099
Page 8 of 9

Author:  JeremyBASS [ Mon Jul 06, 2009 6:32 pm ]
Post subject:  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

Author:  tosi [ Sat Jul 25, 2009 1:08 am ]
Post subject:  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
\$1:
<span xml:lang="en">English</span>


It displays
\$1:
<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?

Author:  Tomek [ Tue Jul 28, 2009 5:02 pm ]
Post subject:  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.

Author:  icefist [ Fri Aug 07, 2009 2:55 pm ]
Post subject:  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

Author:  plger [ Wed Aug 26, 2009 12:34 pm ]
Post subject:  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:
  • 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

Author:  alinome.net [ Wed Aug 26, 2009 2:16 pm ]
Post subject:  Re: One more approach to build a multilingual site with the regular CMSMS

plger \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.


Great. I've included links to your message in the implementation guide.

Author:  Tomek [ Sun Sep 06, 2009 8:54 pm ]
Post subject:  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 !

Author:  plger [ Mon Sep 07, 2009 7:57 am ]
Post subject:  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)

Author:  Tomek [ Mon Sep 07, 2009 12:51 pm ]
Post subject:  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 !

Author:  Pierre M. [ Tue Sep 08, 2009 2:50 pm ]
Post subject:  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

Author:  tosi [ Thu Sep 10, 2009 3:59 pm ]
Post subject:  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
\$1:
{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!

Author:  tosi [ Thu Sep 10, 2009 5:13 pm ]
Post subject:  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?

Author:  plger [ Sun Sep 13, 2009 2:42 pm ]
Post subject:  Re: One more approach to build a multilingual site with the regular CMSMS

Could you explain what you mean exactly by multiple menus?

Author:  evheniys [ Mon Sep 14, 2009 12:56 am ]
Post subject:  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.

Author:  plger [ Sat Sep 19, 2009 8:37 am ]
Post subject:  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?

Page 8 of 9 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/