How do I write Delphi programs in Traditional Chinese? How to Develop the English version? Is it a plug-in Language Pack?
Let me give you a complete explanation of my problem:
I wrote a Delphi Program. The development environment is in the Simplified Chinese version Windows XP system + Delphi 7. Now I want to create a Traditional Chinese version and other non-Simplified Chinese versions. The following problems are encountered:
1. garbled characters or incorrect interface text appear in non-Simplified Chinese systems.
2. The Language Pack is too slow. You Need To preread the language file for interface translation every time you start the pack. When there are a large number of projects, the startup speed is obviously reduced.
3. Because the workload is large, it is troublesome to set the language packs for "prompt content" and "interface content" one by one. Therefore, you do not want to use the Language Pack form of the INI file or DLL resource library.
How did you do it? Is there a permanent way?
I heard that Delphi's built-in multi-language functions are helpful in usage?
Are there any other easy-to-use and powerful Unicode Language Pack controls?
Certificate -----------------------------------------------------------------------------------------------------------------------------------------------------
Delphi is used in multiple languages, but the compilation speed is slow after multiple languages are added, sometimes 10 minutes.
You can distribute your delphi's window file to the translation. If Delphi7 is used, conver.exe is used to convert the file to the text format.
1. Project-New Application: Create your Chinese Version Software.
2. Add project-language-add to your language, such as enu ). Or file-New-others-DLL wizard.
3. Save and generate multiple folders.
4. Project-build all
5. language files generated under the program directory and with the same name as the project files: myexe. enu; myexe. CHN. These files must be included in the software release.
6. Define all strings in the software as resource strings.
Resourcestring
C_apptitle = 'xx management system ';
C_error = 'error ';
C_warning = 'Warning ';
7. Use the following code to switch the language in the software:
Const
// Define your language:
English = (sublang_english_us SHL 10) or lang_english;
Chinese = (sublang_chinese_simplified SHL 10) or lang_chinese;
Uses
Reinit;
...
If loadnewresourcemodule (English) <> 0 then
Begin
Reinitializeforms ();
End;
For more information, see the help of Delphi.
I used to use multiple languages in the INI file. It was quite easy to use. It was too slow to compile the language with Delphi, and it always took half a day to build the language.