Multiple Locales

The purpose of resource files is to support multiple locales. The official way of specifying locales is via cultures, as specified in RFC 1766, ISO 639, and ISO 6133. Cultures are denoted with four-character designations. The first two characters specify the language in lowercase, and the second two specify the country or region in uppercase. Table 29.2 contains some examples of culture designations. The total list is much too large to be included here. You can check out the RFC and ISOs listed previously for further information.

Table 29.2. Sample List of Cultures
TagDescription
de_CHSwiss German
EnEnglish
en_USUnited States English
en_GBBritish English
ItItalian
JaJapanese

A separate resource file must be created for each locale. ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.