Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile module problem when using Translatable module and non-default locale #29

Open
sasmk opened this issue Aug 24, 2012 · 3 comments
Open

Comments

@sasmk
Copy link

sasmk commented Aug 24, 2012

When using the mobile module in combination with the translatable module (https://github.com/silverstripe/silverstripe-translatable) the mobile theme set in the admin backend does not get loaded when using a non-default locale based on ?locale=... parameter.

I.e. when default locale is set to "en_US" and a translation "de_AT" exists, the mobile theme is not loaded. Instead, the default theme is shown.

E.g.

http://server/home -> default theme is loaded, with default locale is set to en_US
http://server/home?locale=de_AT -> ALSO default theme is loaded

Translated pages exist and work correctly when not in mobile mode.

@C10ne
Copy link

C10ne commented Feb 19, 2013

It's not SilverStripe Mobile issue. You need to create translation of site Configuration, and set the mobile options for selected locale.

@rjlopes
Copy link

rjlopes commented May 14, 2014

How do you do that? I don't know which file to extend...

@C10ne
Copy link

C10ne commented May 24, 2014

Sorry for the late reply,
You need to extend site config, as:
Object::add_extension('SiteConfig', 'Translatable');
And then create the translation in "Settings" menu of the CMS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants