Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Multilanguage websites in CMS


Reply

8 Posts   5998 Views

Avatar
Tomae

13 February 2009 at 3:35am (Last edited: 13 February 2009 3:40am), Community Member, 14 Posts

Hi all , Tomae here

I have been working on a project, there user shld be able to view the website in multiple languages. My current website is in danish. Other language options are english and spanish......... i m using silver stripe's latest version 2.3...

i have gone through many posts in the forum , unfortunately i couldnt find any proper answer to my question . Pls can anybody tell me in detail how can i work it out ??

Thanks in advance .......

Avatar
Taffy

13 February 2009 at 10:11pm Community Member, 119 Posts

Sorry I can't help directly but have you seen the following documentation:

http://doc.silverstripe.org/doku.php?id=multilingualcontent
http://doc.silverstripe.org/doku.php?id=i18n

And an alternative:

http://doc.silverstripe.org/doku.php?id=recipes:multilingual_content

Avatar
Tomae

20 March 2009 at 7:20pm Community Member, 14 Posts

that was helpful ....... thanks buddy ...........

i have one more problem ......... i dont want some menus in other languages ............ suppose in the danish site i have 7 links in Menu(1) and in the english one i hav only 4 .............

Is it possible to remove the menus which i dont want to show in other languages ??

thanks in advance

Avatar
rndmerle

24 March 2009 at 3:42am Community Member, 24 Posts

Hi Tomae.

I'm far from an expert but one way I'm thinking of is to edit your Navigation.ss, replace the dynamic menu generating code by a static menu with conditional lang checks :
<% if current_lang = en %>...<% else %>...<% end_if %>

Best regards.

Avatar
BuddhaSource

24 March 2009 at 6:03pm Community Member, 57 Posts

Well a better solutions would be to have " SHOW IN MENU " for each language.

I am not sure how this can be done but this seems like a more positive solutions to the problem above.

Avatar
Taffy

25 March 2009 at 12:12am Community Member, 119 Posts

@Tomae: Are you using multilingual content with Silverstripe 2.3+ ?

If so, how did you manage this? Well documented problems translatable and 2.3 http://open.silverstripe.org/ticket/3517

Avatar
Tomae

25 March 2009 at 2:04am Community Member, 14 Posts

I am following the alternative method http://doc.silverstripe.org/doku.php?id=recipes:multilingual_content

Added content fields for each language and converted the language manually ...............

Avatar
Tomae

14 April 2009 at 9:15pm Community Member, 14 Posts

Finally i got the solution .............
just put a space in other language's navigation label .............
this is how u can disable particular menu item if u dont require it for other languages..................

Cheers!!