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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multilanguage websites in CMS


Go to End


8 Posts   7442 Views

Avatar
Tomae

Community Member, 14 Posts

13 February 2009 at 3:35am

Edited: 13/02/2009 3:40am

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

Community Member, 119 Posts

13 February 2009 at 10:11pm

Avatar
Tomae

Community Member, 14 Posts

20 March 2009 at 7:20pm

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

Community Member, 24 Posts

24 March 2009 at 3:42am

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

Community Member, 57 Posts

24 March 2009 at 6:03pm

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

Community Member, 119 Posts

25 March 2009 at 12:12am

@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

Community Member, 14 Posts

25 March 2009 at 2:04am

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

Community Member, 14 Posts

14 April 2009 at 9:15pm

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!!