"Delphi's full Chinese" final version

zhaozj2021-02-08  244

"Delphi's full Chinese" final version (has been published in "Household Computer" 37, new bottle old vinegar please understand!)

Xi'an Liang Ming

-------------------------------------------------- ------------------------------

I have such a dirty thought before writing this article: I can't miss this trick "," I will tell me right away, I can't have such an idea! I immediately wrote her, both It is a supplement to the last "Delphi's full Chinese" article, it is a reply to his own conscience!

Now cut into the topic: Everyone knows that when we deal with Delphi's own message (I refer to the Delphi System dialog, all news from Delphi's own message, etc.), the general approach is "walking in front of Delphi" Or block the role of the system, thereby handling it in our own way, with a view to providing the purpose of providing a pure Chinese environment. However, this can only be subjectively predicted with the existing experience of programmers! Due to the complexity of the system And our own horizontal, this result is inevitably lost, maybe there may be problems that may happen at any time. Imagine that there is no more or not. Imagine: In the user's use, some English prompts, your program "Grade" is not a big discount?

Therefore, we must also find more ideal and more thorough methods, at least, when the procedure is bug, ordinary users can understand the tips (can not let you want to be with you). Fortunately, after the repetition test of the author, Find another good policy. Please listen to me one by one (only for your Delphi version with VCL source code - ie professional or enterprise version):

0. Backup Delphi's VCL source code (the directory is usually "x: / program files / borland / delphi4 / source / vcl"). Of course, only the files we need to modify can also be replaced as needed;

1. Open cell files such as BDeconst.Pas, Consts.Pas, BDeconst.Pas, DBCONSTS.PAS, MIDCONST.PAS, MXCONSTS.PAS, MIDCONST.PAS, MXCONSTS.PAS, OLECONST.PAS, WebConst.PAS, Oleconst.Pas, WebConst.Pas, etc. in the Delphi environment

Righted the constant used by Delphi;

2. Translate Delphi's own string "translation" into our great native language - Chinese;

3. After the "translation" is completed, save it according to the original file name;

4. Try now our results, create a new project, deliberately preparing the code that will have system prompts, and add a search before compilation, go to the search path option of the Delphi's Project Options dialog box The path (that is, we have just modified the directory where the constant unit is located) is determined;

5. Watch your English translation level!

note:

1 If your version is Delphi 3, the above path makes the corresponding change, and the Directories / Conditionals for the Project Options dialog is Directories;

2 The movement of the compilation conditions is only valid for this project. After the new project needs to be reset. If you want one to be eternal, please follow me:

Run the Windows Registry Editing Regedit.exe, Open HKEY_CURRENT_USER-> Software-> Borland-> Delphi-> 4.0-> library, add "$ (Delphi) / Source / VCL in one of the string values ​​of" Search Path " ".Ok, destination!

Here is the message sent by the author to modify the constant of the function messagedlg in the Consts.PAS unit file. This time, we have seen the message box of half "English" half-yang. How, enough?

...

Begin

Messagedlg ('How do you feel?' # 13 # 10 # 13 # 10

'I am here to translate "SMSGDLGINFORMATION" to' 'Message' ''; ' # 13 # 10 ' Remitting "Sokbutton" to '' Determine '' to get the result! ',

Mtinformation, [Mbok], 0);

END;

...

**** Insert Figure 4 ***

Is it too honest?! In fact, we can customize these constants (as long as INPRISE consent) according to our own will, for example, we can translate "smsgdlginformation" for you. Software title or its own studio, etc., so, your extraordinary personality will show no legacy!

About Delphi "complete Chinese" experience, skill author intends to introduce so much (I will put this complete set of stuff on my personal home page after the two programs in my hand, please go Down). Of course, the crown is "complete Chinese" to be red, but I hope that INPRISE has ended our "envy" VB programmer!

There are still some problems, for example: Delphi's environment is English, the report previews and buttons are also in English. For the first question, I personally think that there is not much necessary, because no programmer even the menu I don't understand, the goal of our efforts is the user; there is also a way to solve the second question, this should not be involved in this topic, but I have seen many people on request, so I will talk about this. Let's take the end of this topic:

1 Develop a QUICKREP according to the requirements;

2 照 照 r 的 预览 的 q 模式 的 q q;

3 qrprinter assigned to the Qrpreview of Qrprinter in QUICKREP's onpreview event

(Such as qrpreview1.qrprinter: = quickrep1.qrprinter;) allows qrpreview to replace QuickRep

The preview mode is.

Moderator: Liang Ming

Date: 1999-03-01

E-mail: delphifan@990.net

-------------------------------------------------- ------------------------------

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

New Post(0)