forked from cnpack/cnwizards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HowToTranslate.txt
46 lines (36 loc) · 1.78 KB
/
HowToTranslate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
**********************************************************************
CnPack For Delphi/C++Builder
A Free, Open Source Project from China
(C)Copyright 2001-2016 CnPack Team
**********************************************************************
How to add translation for CnWizards?
-------------------------------------
CnWizards supports multi-language UI. If you want to add new translation
for CnWizards, please do follow steps:
1.You can get all language files from our GIT.
* How to access our GIT:
http://github.com/cnpack
There are 2 repositories named cnvcl and cnwizards.
2.Our language files are in cnwizards\Bin\Lang, 1033 is English.
Also the Lang directory is in our installation destination, such as
C:\Program Files\CnPack\CnWizards\Lang
3.For a new language, such as French, you can copy 1033(English) directory
to 1036(French) and translate all the txt files in it into French.
4.For example, if there's a line in CnWizards.txt
TCnWizAboutForm.Caption=About CnPack IDE Wizards
You can translate it as:
TCnWizAboutForm.Caption=(French string)
5.You can edit follow basic information in every new language file. Such as:
!LanguageID=1036
!LanguageName=French
!TranslationAuthor=Your Name
!TranslationAuthorEmail=Your email
6.You can copy new language directory to Lang directory in CnWizards
installation destination. So you can see and select the new language in IDE.
7.You need to translate follow files to new language for CnWizards installer:
cnwizards\License.enu.txt
cnwizards\Readme.enu.txt
cnwizards\Install\Src\Lang\CnWizInst_enu.nsh
8.When you finished, please mail them to master@cnpack.org. You'll see the
new language in CnWizards and your name in our credits in next build .
[EOF]