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

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
JeremyBASS

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

Post by JeremyBASS »

for what it's worth

{news category="`$page_lang`_news"}

should work also
as well as

{news category="`$page_lang`*"}


Cheers
jeremyBass
tosi

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

Post 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?
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 255
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

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

Post 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.
icefist

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

Post 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
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

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

Post 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
Last edited by plger on Wed Aug 26, 2009 12:36 pm, edited 1 time in total.
User avatar
alinome.net
Forum Members
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

Post 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.
Marcos Cruz
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 255
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

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

Post 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 !
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

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

Post 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)
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 255
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

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

Post 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 !
Pierre M.

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

Post by Pierre M. »

About Translations/TC, French speakers ask Jean-Claude in http://forum.cmsmadesimple.org/index.ph ... ,10.0.html
Pierre
tosi

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

Post 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!
Last edited by tosi on Thu Sep 10, 2009 4:08 pm, edited 1 time in total.
tosi

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

Post by tosi »

Is there any way to have multiple menus using this method / module?
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

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

Post by plger »

Could you explain what you mean exactly by multiple menus?
evheniys
New Member
New Member
Posts: 6
Joined: Fri Sep 11, 2009 10:00 am

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

Post 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.
User avatar
plger
Forum Members
Forum Members
Posts: 196
Joined: Wed Oct 15, 2008 10:38 am

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

Post 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?
Post Reply

Return to “Tips and Tricks”