English 中文(简体)
Using flag to identify spoken language
原标题:

In the webapp I am doing, I need to identify language people are speaking. I wanted to use flag to do that. But I have some problems.

For example, if you speak French, you can put the French flag. But if you speak English you can put either the US or UK flag or a mix of both.

Which flag to choose for Arabic language ? Saudi Arabian flag ? Algeria ? Morocco ?

最佳回答

I think it s usual to use fragments of the language as a kind of graphic (text, instead of flags), for example:

  • english
  • français
  • русский язык
  • العربية
  • 中文
问题回答

The answer is to not use flags to identify languages. Not only there isn t a one-to-one mapping, and you won t cover all languages that way (Kurdish?), but some flags may be controversial (consider Taiwan flag for Traditional Chinese).

As many other answers stated, it s clearly a bad idea to use flags for languages.

See arguments here: Flag as a symbol of language - stupidity or insult?

Language and nationality are different terms, if your English translation is American English, you should use American flag, for British English use England flag and so on. There are lots of dialects in Arabic so which flag you should use depends on which language/dialect you use.

You know that the browser sends a list of locales that the user likes? And you can choose from them inside your webserver to select the one the person likes the most?

You can see here how the Debian project has solved this issue: http://www.debian.org/intro/cn





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签