Can I have multilingual product name?

Comments

3 comments

  • Avatar
    michiel

    Hi,

    You could add a custom language file for Chinese and hardcode the Chinese name in the string. For example:

      Installer.Welcome.Text=欢迎使用 CHINESE_NAME 安装向导。

    You can find more information about using custom language files in the following section of our manual:

    https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#built_in_strings

    You can change the project.shortName variable in the project depending on whether the language is Chinese.

     <preInstallationActionList>
     <setInstallerVariable>
      <name>project.shortName</name>
      <value>chineseName</value>
      <ruleList>
       <compareText>
        <value>${installation_language_code}</value>
        <text>zh_CN</text>
       </compareText>
      </ruleList>
     </setInstallerVariable>
    </preInstallationActionList>

    Best regards,

    Michiel

     

     

     

     

  • Avatar
    Xi Yang

    Hi Michiel:

    The second way works for most pages, but not the first welcome page.

    <preInstallationActionList>
    <setInstallerVariable>
    <name>project.fullName</name> <value>Raindrop &amp; Blade Samples</value>
    <ruleList>
    <compareText>
    <value>${installation_language_code}</value> <text>en</text>
    </compareText>
    </ruleList>
    </setInstallerVariable>
    <setInstallerVariable>
    <name>project.fullName</name> <value>落英采样</value>
    <ruleList>
    <compareText>
    <value>${installation_language_code}</value> <text>zh_CN</text>
    </compareText>
    </ruleList>
    </setInstallerVariable>
    </preInstallationActionList>

    From debugger, I can see the codes executed. The display name in all following pages, such as folder selection page and ready-to-install page, are replaced by the Chinese version; but the welcome page that is displayed first still have English version of name, both title and text. 

    In this installer, I only used builtin pages, no custom parameter pages.

    I guess that texts for welcome page are generated before pre-install actions executed, and all other texts are generated after pre-install actions?

     

  • Avatar
    michiel

    Hi,

    For the Welcome page you can use the following strings:

        Installer.Welcome.Title=設定 - %1$s
        Installer.Welcome.Text=歡迎來到 %1$s 安裝精靈

    And replace the variable with the name of your company.

    Regards,

    Michiel

     

Please sign in to leave a comment.