Skip to main content

Posts

Showing posts with the label localization

Best way to determine user"s locale within browser

I have a website (Flash) localized into a dozen of languages and I want to auto-define a default value depending on the user's browser settings in order to minimize the steps to access the content. FYI, I cannot use server-scripts due to proxy restrictions, so I guess JavaScript or ActionScript would be appropriate to solve the problem. Questions: What would be the best method to 'guess' the user's locale ? Are there any existing simple classes/functions that could help me out (no complex localization bundles) ? Specially to break down all the possible languages into a smaller number (the translations I have) on a smart way . To which point can I trust such a solution ? Any other workarounds or suggestions ? Thanks in advance! Source: Tips4all