Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Director Rul and Translatable Module

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 285 Views
  • khalid
    Avatar
    Community Member
    1 Post

    Director Rul and Translatable Module Link to this post

    I am developing a Project using Silverstripe 3.1 beta 3. It is Multilingual, only two languages (de_DE, en_US).
    For Implementing Multilingual functionality on the site I installed the Translatable Module. It is working properly on the Pages but not on DataObjects. For that purpose I tried to solve it in a way to make more fields for each Language since I have only 3 fields to be translated. It is all working properly in CMS and Frontend. To show the DataObjects in Frontend I am using the Director rules in mysite/_config/config.yml file:
    Director:
    rules:
    'referenzen/projekte/$Kat/$RefID/$LeistungID': 'ReferenzDetailPage_Controller'
    'references/projects/$Kat/$RefID/$LeistungID': 'ReferenzDetailPage_Controller'

    Problem:
    My problem is that in the Controller and its viewer Template I have no access on the Locale Variable to show the right Language Fields accordingly. I tried to save the Locale value on a session variable and use it to differentiate between languages but it is overwritten and shows me always the default set Language which is (de_DE).

    Using Uncle Cheese Module for DataObject Translation having the same problem.

    Can anyone Help please? Am I on the right path? I am relatively new to Silverstirpe. Thanks!

    285 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.