JavaSercer Pages Here, a Locale for U.S. English (Verizon web hosting)

December 29, 2006 on 8:08 pm | In Java |

JavaSercer Pages Here, a Locale for U.S. English is created. George Bernard Shaw (a famous Irish playwright) once observed, “England and America are two countries divided by a common language,” so it’s no surprise that both a language code and a country code are needed to describe some locales completely. The language code, a lowercase two-letter combination, is defined by the ISO 639 standard, available at http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt. The country code, an uppercase two-letter combination, is defined by the ISO 3166 standard, available at http://www.chemie.fuberlin. de/diverse/doc/ISO_3166.html. Table 11.1 and Table 11.2 show some of these codes. Table 11.1, ISO-639 Language Codes Language Code Language af Afrikaans da Danish de German el Greek en English es Spanish fr French ja Japanese pl Polish ru Russian sv Swedish zh Chinese Table 11.2, ISO-3166 Country Codes Country Code Country DK Denmark DE Germany GR Greece MX Mexico NZ New Zealand ZA South Africa GB United Kingdom US United States As luck would have it, these two standards are also used to define language and country codes in HTTP. As you may remember from Chapter 2, a browser can send an Accept-Language header with a request for a web resource such as a JSP page. The value of this header contains one or more codes for languages that the user prefers, based on how the browser is configured. If you use a Netscape 4 browser, you can specify your preferred languages in the Edit->Preferences dialog, under the Languages tab. In Internet Explorer 4, you find the same thing in View->Internet Options when you click the Language button under the General tab. If you specify more than one language, they are included in the header as a comma-separated list: Accept-Language: en-US, en, sv page 149
Quick Hint: If you are looking for cheap and reliable provider to host and run your servlet application check Vision servlet hosting plans

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.