Several questions that develop multi-language version programs should pay attention to

xiaoxiao2021-03-06  187

A program that supports multiple languages, is generally consisting of a main program and a plurality of language packs (resource files). When running, according to different language settings, to read the corresponding resource files. In combination with yourself to develop Resourceworkshop (.NET Resource File Builder) experience, I feel that I should pay attention to the following questions:

1, the font, the choice of the font size. One method, the font of the form, all of which use the default font, the Chinese Song, English Microsoft Sans Serif, the font size is 9PT, the advantage is simple, the disadvantage is no feature. Another method is to set different fonts through a different language, and the advantage is aesthetically pleasing, and the disadvantage is a bit trouble. On the English interface, it is recommended to use Arial, Tahoma, Verdana font.

2, the layout of the interface. The same word, Chinese and English are different, such as "password", accounting for 4 characters, "PassWrod" will account for 8 characters. At this time, it is necessary to coordinate in setting up labels, text boxes, drop-down list boxes, preventing the appearance of good appearances under the Chinese interface, but there is too much white in the English interface. It can be appropriate to change the different languages ​​and keep the length approach. It can also be controlled by the program, and the layout is dynamically adjusted according to the current language setting. However, this, the programming workload can be mostly.

3, help the call of the file. Help files are generally .chm files, can not dynamically change according to the contents of the resource file at runtime. My approach is to make the help files of different languages ​​and name them according to certain regularities. For example, the Chinese Help file is resourceworksho_chs.chm, and the English help file name is resourceworksho_en.chm. When you call your help, determine the help file name that you need to call according to the current language settings.

4, the use of pictures. On the picture used in the program, you must not have a text outside English, and the English is also not necessary.

5, package. You must use English installation and fabrication tool software, such as Installsheld, you can make installation interfaces for multiple languages. I just started to make ResourceWorkshop installer with vs.net Chinese version, and when I installed, "Previous", "Next", "Next", "Cancel" is garbled, and I don't understand. Later, IInstallsheld solved this problem.

6, test. This should be the most important part, and it is also the most easily ignored. This procedure does not light the way to change the regional setting of the current thread to make a simple test, so you must perform a complete test in a real environment, from the installation to the uninstallation. I don't have a variety of language environments, please help with friends, you can also use VMware to install a few operating systems on your own machine.

It is not necessarily right.

转载请注明原文地址:https://www.9cbs.com/read-128856.html

New Post(0)