要用不同的语言来显示本地字符串,就需要准备不同地区的资源文件。
To display the native strings in different languages, you need to prepare the resource files for different locales.
为此,您需要为要支持的每种语言创建单独的资源文件。
To do this you need to create a separate resource file for each spoken language that you need to support.
我不打算在此花费更多的时间来详细描述资源文件,因为您在开始本地化应用程序和类库dll时不需要处理它们。
I don't want to spend any more time here on the low-level details of resource files because you will not be required to deal with them when you begin localizing applications and class library DLLs.
要开始本地化,需要制作多个资源文件的副本 -对于要支持的每种语言,每个资源文件一个副本。
To begin localization, you make multiple copies of resource files-one copy of each resource file for each language you want to support.
可以阅读Nokia 238RI的自述文件了解相关步骤,但基本上,您需要为字符串和图片编写一个xml资源文件,运行ResourceMaker工具获得二进制文件。
You could read the Nokia 238 ri readme for the steps, but basically, you need to write a resource XML file for your strings and image and run the ResourceMaker tool to get the binary file.
一旦您在项目中添加了资源文件,就不需要直接处理.resx文件内部所需的xml格式。
Once you have added a resource file to a project, there's no need to work directly with the XML format required inside a.resx file.
为了做到这点,你需要为你需要支持的每种语言建立单独的资源文件,实际的资源文件是一种基于文本的包含XML以。resx为扩展名的。
To do this you need to create a separate resource file for each spoken language that you need to support. The actual resource file is a text-based file containing XML with a.resx extension.
如果你坚持使用一个按钮那么字符串的存储在一个资源文件并使用绑定绑定到视图(如果需要帮助和本地化)。
If you insist on using one button then maybe store the string's in a Resource file and use Bindings to bind to them from the View (Helps with localisation too if needed).
例如,如果序列化程序需要写入另一个文件(如资源文件),则将序列化程序设计为在写入完成后关闭该文件的效率是很低的。
For example, if a serializer needs to write to another file, such as a resource file, it is inefficient to design the serializer to close the file when finished.
例如,如果序列化程序需要写入另一个文件(如资源文件),则将序列化程序设计为在写入完成后关闭该文件的效率是很低的。
For example, if a serializer needs to write to another file, such as a resource file, it is inefficient to design the serializer to close the file when finished.
应用推荐