Changes between Initial Version and Version 1 of OSGeo4W_jp/InstallerTranslation


Ignore:
Timestamp:
Feb 15, 2010, 5:28:11 PM (14 years ago)
Author:
yukatohhana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OSGeo4W_jp/InstallerTranslation

    v1 v1  
     1== Steps to Translate OSGeo4W-setup.exe into another Language ==
     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 the file for your new language in the form '''res_[lang].rc''', such as:
     8   {{{
     9     res_ja.rc
     10   }}}
     11 * open your new '''res_[lang].rc''' file in a text editor and edit:
     12   * modify line!#1 and !#2 for your new language
     13     * use appropriate code identifier for your international characters ([http://msdn.microsoft.com/en-us/library/dd317756%28VS.85%29.aspx microsoft documentation])
     14   * replace English installer text in all CONTROL, CAPTION, LTEXT, RTEXT objects, such as:
     15      {{{
     16        CAPTION "OSGeo4W Setup - Choose Installation Type"
     17
     18        translated to:
     19
     20        CAPTION "OSGeo4Wセットアップ-インストールタイプの選択"
     21      }}}
     22     * be careful of making sure that the interface accelerators are kept, such as ''"(&D)"'':
     23       {{{
     24          CONTROL "&Download Without Installing",
     25
     26          translated to:
     27
     28          CONTROL "インストールせずにダウンロード(&D)",
     29       }}}
     30       * (background on menu resource accelerators: [http://msdn.microsoft.com/en-us/library/syzb5sda%28VS.80%29.aspx microsoft documentation])
     31   * you might have to modify the size/spacing of your new strings in the objects, if you notice that your new text is cutoff in the installer. For example, the values below for "60,85,88,10" mean: x,y,width,height - you might have to change the ''width'' value for longer translated strings
     32     {{{
     33       CONTROL "Use HTTP/FTP &Proxy:",IDC_NET_PROXY,"Button",
     34                BS_AUTORADIOBUTTON | WS_TABSTOP,60,85,88,10
     35
     36       translated to:
     37
     38       CONTROL "HTTP/FTPプロキシを利用する(&P):",IDC_NET_PROXY,"Button",
     39                BS_AUTORADIOBUTTON | WS_TABSTOP,60,85,188,10
     40     }}}
     41 * open '''res.rc''' in a text editor
     42   * include your new ''res_[lang].rc'' file at the bottom of the file ''res.rc'' such as:
     43     {{{
     44       #include "res_en.rc"
     45       ...
     46       #include "res_ja.rc"
     47     }}}
     48 * complile your new ''setup.exe'', by following the steps in SetupDevelopment
     49 * test your new translated setup.exe
     50 * commit your changes to Subversion
     51 * inform the mailing list of your new translation
     52   * you might need assistance to publish the live osgeo4w-setup.exe to the download server (inform mailing list)
     53
     54=== Current Issues ===
     55
     56 * some installer text is hardcoded (see ticket:130)
     57 * packages' ''setup.hint'' text is also only in English (see ticket:131)
     58
     59== Documentation Translation ==
     60
     61* to be determined
     62
     63[wiki:OSGeo4W_jp 戻る]