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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Using Geoip to automatically set language of site?


Go to End


3 Posts   768 Views

Avatar
mrcheeks

Community Member, 3 Posts

8 April 2013 at 11:56am

Hi, I'm very new to silverstripe.

I have searched around but can't find an explanation or I just don't get it.

How would one set this up? is it in the config?
I have inherited a site... two different languages working (v2.4) and change fine with a nav.
How would I set it up to use the visitors IP to set the language automatically?
Also whats the best way to test it by yourself? just set it to the default to a region you're not in I imagine?
or could someone point me to a "how to"?

Cheers.

Avatar
mrcheeks

Community Member, 3 Posts

10 April 2013 at 12:07pm

or should i use a module?

Avatar
mrcheeks

Community Member, 3 Posts

15 April 2013 at 1:02pm

Can anybody please help me with this?
I'm new to Silverstripe and not sure which is the best way to do it.

Can you set if statements in the config to set the locale?

Have I missed something very basic and is this a really stupid question?
Sorry if so.
Any help would obviously be appreciated.