Changes between Version 4 and Version 5 of InstallerTranslation


Ignore:
Timestamp:
02/15/10 02:11:59 (15 years ago)
Author:
jmckenna
Comment:

minor formatting

Legend:

Unmodified
Added
Removed
Modified
  • InstallerTranslation

    v4 v5  
    55     svn co https://svn.osgeo.org/osgeo4w/trunk/setup/ setup --username yourname
    66   }}}
    7  * copy ''res_en.rc'' and rename extension to your new language, such as:
     7 * copy '''res_en.rc''' and rename the file for your new language in the form '''res_[lang].rc''', such as:
    88   {{{
    99     res_ja.rc
    1010   }}}
    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 microsoft documentation])
    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      {{{
     11 * open your new '''res_[lang].rc''' 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セットアップ-インストールタイプの選択"
     17      }}}
     18     * be careful of making sure that the interface accelerators are kept, such as ''"(&D)"'':
     19       {{{
    1920          CONTROL         "インストールせずにダウンロード(&D)",
    20      }}}
    21      * (background on menu resource accelerators: [http://msdn.microsoft.com/en-us/library/syzb5sda%28VS.80%29.aspx microsoft documentation])
     21       }}}
     22       * (background on menu resource accelerators: [http://msdn.microsoft.com/en-us/library/syzb5sda%28VS.80%29.aspx microsoft documentation])
    2223   * 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 
    2424     {{{
    2525           CONTROL         "ローカルディレクトリからインストール(&L)",IDC_SOURCE_CWD,"Button",
    2626                           BS_AUTORADIOBUTTON | WS_TABSTOP,71,120,200,10
    2727     }}}
    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    }}}
     28 * open '''res.rc''' in a text editor
     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     }}}
    3535 * complile your new ''setup.exe'', by following the steps in SetupDevelopment
    3636 * test your new translated setup.exe