Country specific localization

Kurt Muller asked on January 29, 2018 13:00

Hi all

I am busy setting up localization for my website, but I want this configured against the users Current Geo Location rather than rendering based on Current Culture. Is this at all possible?

Thanks Kurt

Recent Answers


Trevor Fayas answered on January 29, 2018 14:39

Built in localization is a "language-region" (such as es-es and es-mx).

However, sometimes the content needed to change on the region, not the language, so I had to use categories and add region categories and set pages to have those categories, and adjusted what they saw based on that (I used the actual maxmind ip to county service along with a custom region selector).

This may be the route you want to go, use global events or a custom web part to determine the county, and with some form of alookup say "Mexico, Spain, etc use es-es Spanish, USA Canada use en-us English"

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on January 31, 2018 10:12

Thanks Trevor, I'll look into this.

What I am trying at the moment is the following: I created a Custom Table with 2 simple fields, Country List dropdown and a text field to populate a custom value. What I am attempting now is writing a macro to print the custom value where the Country matches the current GeoLocation.

something like this - GlobalObjects.CustomTables["customtable.table"].Items.ItemsAsFields.customvalue[where country = geolocation]

I haven't worked out the correct syntax yet due to my limited knowledge of the k# syntax.

Does this look like I am on the right track?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.