| 1 | == Steps to Translate OSGeo4W-setup.exe == |
| 2 | |
| 3 | * checkout local copy of setup files from Subversion, for example: |
| 4 | {{{ |
| 5 | svn co https://svn.osgeo.org/osgeo4w/trunk/setup/ setup --username yourname |
| 6 | }}} |
| 7 | * copy ''res_en.rc'' and rename extension to your new language, such as: |
| 8 | {{{ |
| 9 | res_ja.rc |
| 10 | }}} |
| 11 | * modify line#1 and #2 for your new language |
| 12 | * use appropriate code identifier for your international characters (http://msdn.microsoft.com/en-us/library/dd317756%28VS.85%29.aspx) |
| 13 | * replace English installer text in all CONTROL, CAPTION, LTEXT, RTEXT objects, such as: |
| 14 | {{{ |
| 15 | CAPTION "OSGeo4Wセットアップ-インストールタイプの選択" |
| 16 | }}} |
| 17 | * be careful of making sure that the interface accelerators are kept, such as ''"(&D)"'': |
| 18 | {{{ |
| 19 | CONTROL "インストールせずにダウンロード(&D)", |
| 20 | }}} |
| 21 | * (background on menu resource accelerators: http://msdn.microsoft.com/en-us/library/syzb5sda%28VS.80%29.aspx) |
| 22 | * you might have to modify the size/spacing of your new strings in the objects. For example, the values below for "71,120,200,10" mean: x,y,width,height - you might have to change the ''width'' value for longer translated strings |
| 23 | |
| 24 | {{{ |
| 25 | CONTROL "ローカルディレクトリからインストール(&L)",IDC_SOURCE_CWD,"Button", |
| 26 | BS_AUTORADIOBUTTON | WS_TABSTOP,71,120,200,10 |
| 27 | }}} |
| 28 | |
| 29 | * include your new '''res_[lang].rc''' file at the bottom of the file ''res.rc'' such as: |
| 30 | {{{ |
| 31 | #include "res_en.rc" |
| 32 | ... |
| 33 | #include "res_ja.rc" |
| 34 | }}} |
| 35 | * complile your new ''setup.exe'', by following the steps in SetupDevelopment |
| 36 | * test your new translated setup.exe |
| 37 | * commit your changes to Subversion |
| 38 | * inform the mailing list of your new translation |
| 39 | * you might need assistance to publish the live osgeo4w-setup.exe to the download server (inform mailing list) |
| 40 | |
| 41 | == Documentation Translation == |
| 42 | |
| 43 | * to be determined |