什么是允许以多种语言显示的好界面 [英] What is a good interface to allow display in multiple languages

查看:57
本文介绍了什么是允许以多种语言显示的好界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个理论上应该以所有语言提供的网站.界面和内容非常简单,因此这不是问题.问题是通常使用哪种国际化界面来提示用户多种语言的可用性?

I'm working on a website that theoretically should be available in all languages. The interface and content are very simple so this is not a problem. The problem is what internationalization interfaces are usually used to cue the user to the availability of multiple language?

显而易见的是一个下拉列表.还有其他很好的例子说明了如何做到这一点吗?

The obvious one is a drop down list. Any other good examples of how this has been done elegantly?

作为一个附带问题:是否有专门针对i18n和本地化的书籍或材料,最好是PHP,但有关该主题的任何好的资源都可以提供帮助.

As a side question: are there any books or material dedicated to the topic of i18n and localization, preferably for PHP but any good resources on the topic can help.

推荐答案

我发现一个简单的下拉列表包含两个字符的ISO-639代码和该语言的语言名称(例如法语的Français)就足够了.您可以尝试使用建议的语言图标来帮助标记菜单,但似乎没有得到了很大的牵引力.如果将语言选择器放在右上角,那么人们可能会看到它.

I've found that a simple drop down list with two character ISO-639 codes and the language name in the language (i.e. Français for French) works well enough. You could try using the proposed language icon to help mark the menu but that doesn't seem to have gotten a lot of traction. If you put the language selector in the upper right corner then people will probably see it.

您可以尝试使用接受语言 HTTP标头或JavaScript中的navigator.languagenavigator.userLanguage属性以选择一种初始语言.

You can try to use the Accept-Language HTTP header or the navigator.language and navigator.userLanguage properties in JavaScript to choose an initial language.

不要使用标记图标.巴西人讲葡萄牙语,但可能不知道葡萄牙的国旗是什么,瑞士有三种官方语言,加拿大魁北克人讲法语,美国人不想单击英国国旗来选择英语,等等.

Don't use flag icons. People in Brazil speak Portuguese but probably don't know what Portugal's flag is, Switzerland has three official languages, people in Québec Canada speak French, Americans won't want to click a UK flag to select English, etc.

如果要面对任何L10N或I18N问题,请确保从一开始就前后使用UTF-8.实际上,即使您不希望本地化应用程序,也可以在任何地方使用UTF-8.

Make sure you use UTF-8 front to back and sideways from the start if you're going to be facing any L10N or I18N issues; actually, use UTF-8 everywhere even if you're not expecting to localize your application.

这篇关于什么是允许以多种语言显示的好界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆