我目前正在使用 C# 在 MVC3 中开发一个 Web 应用程序。
目前我正在尝试将资源文件放入他们的特定文化中。当他们在同一个文件夹中时我已经成功了
本土化\
帐户\
- 资源.resx
- Resources.es-ES.resx
- Resources.fr-FR.resx
[显示(ResourceType = typeof(Localization.Accounts.Resources), Name = "LOGIN_PASSWORD_LABEL")]
但是,如果它们不在同一个文件夹中,我将无法找到它们的特定文化。
本土化\
- Accounts.resx
es-ES\
- Accounts.es-ES.resx
FR-FR\
- Accounts.fr-FR.resx
[显示(ResourceType = typeof(Localization.Accounts), Name = "LOGIN_PASSWORD_LABEL")]
下面是 web.config 设置
<globalization enableClientBasedCulture="true" fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="auto:en-AU" uiCulture="auto:en-AU" />