You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add cultures that do not follow the xx-xx language/country/region convention #12029
When you package your application's resources, you must name them using the resource naming conventions that the common language runtime expects. The runtime identifies a resource by its culture name. Each culture is given a unique name, which is usually a combination of a two-letter, lowercase culture name associated with a language and, if required, a two-letter, uppercase subculture name associated with a country or region. The subculture name follows the culture name, separated by a dash (-). Examples include ja-JP for Japanese as spoken in Japan, en-US for English as spoken in the United States, de-DE for German as spoken in Germany, or de-AT for German as spoken in Austria. See the National Language Support (NLS) API Reference at the Go Global Developer Center for a complete list of culture names.
Generating a Resource using Visual Studio (2019) and setting language to different simplified chinise versions result in following files
Form1.zh-Hans.resx
Form1.zh-Hans-HK.resx
Form1.zh-Hans-MO.resx
The subculture does not consists of a two-letter subculture code.
Dokumentdetails
⚠ Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.
ID: 4e742bf0-abf8-259c-5194-3687febd38b0
Version Independent ID: 6d1d9bfb-6174-6215-befe-641babe8a746
The documentation indicates that this is usually a combination of a two-letter language code and a two-letter country/region code. I'm going to close this as By Design; the qualification is here is adequate, even if some culture/region names violate the rule.
It might be helpful to add some examples with code that are more than two letters in length, @LokiMidgard. I'll reopen this issue and add it to our backlog, as well as to the community contributor's project.
changed the title [-]The Documentation state that the resource file usese two-letter culture name and two-letter subculture. This seems to be incorrect.[/-][+]Add cultures that do not follow the xx-xx language/country/region convention[/+]on Apr 29, 2019
Activity
CeciAc commentedon Apr 25, 2019
Hi team,
I'm moving this here since the contributor is making a suggestion on the original documentation
best
rpetrusha commentedon Apr 25, 2019
The documentation indicates that this is usually a combination of a two-letter language code and a two-letter country/region code. I'm going to close this as By Design; the qualification is here is adequate, even if some culture/region names violate the rule.
LokiMidgard commentedon Apr 26, 2019
Thanks for the fast response.
@rpetrusha The documentation also includes some samples.
Could it make sense to include a sample that violate this usally. This would emphasize that there are exceptions.
rpetrusha commentedon Apr 29, 2019
It might be helpful to add some examples with code that are more than two letters in length, @LokiMidgard. I'll reopen this issue and add it to our backlog, as well as to the community contributor's project.
[-]The Documentation state that the resource file usese two-letter culture name and two-letter subculture. This seems to be incorrect.[/-][+]Add cultures that do not follow the xx-xx language/country/region convention[/+]