Table of contents
TOC
折叠目录
展开目录

警告:自定义语言设置不可便携Warning: custom language settings not portable

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

并非所有语言设置都是可移植的。此警告具有以下原因和解决方法:Not all language settings are portable. This warning has the following cause and solution:

  • 您可以在代码中使用自定义语言设置。当您选择一个自定义的语言/国家/地区设置为您的代码,您的代码匹配,那些在系统控制面板设置中使用的语言约定。您可以使用自定义代码的区域设置,但您的代码可能无法在其他语言环境中或在其他系统使用不同的设置。宿主应用程序分析基础,它正在其运行的计算机的控制面板设置某些字符串。如果目标计算机上的控制面板设置不相同为那些计算机在其中编写代码时,由宿主应用程序进行分析的字符串不起作用,例如,取决于特定于区域设置的小数分隔符的代码。因此,除非您不想要发送给其他用户的代码不应使用自定义语言设置。如果打算将您的代码发送给其他用户,则选择一个预定义的区域。You used a custom language setting in your code. When you choose a custom language/country setting for your code, the language conventions used in your code match those set in the Control Panel of your system. You can use custom codelocale settings, but your code may not work in other locales or on other systems with different settings. Thehost application parses some strings based on the Control Panel settings of the machine on which it is running. If the Control Panel settings on the target machine aren't the same as those on the machine on which the code was written, strings parsed by a host application don't work, for example, code that depends on a locale-specific decimal separator. Therefore, you should not use a custom language setting unless you don't intend to send your code to other users. If you plan to send your code to other users, select a predefined locale.

有关其他信息,请选择相关项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft