| 1 |
Internationalization (I18N) of the Win32 installer. |
| 2 |
=================================================== |
| 3 |
|
| 4 |
The intention of adding internationalization to the Win32 Firebird |
| 5 |
installer is to provide a minimum level of translation to support |
| 6 |
the installation process only. This means just translating the install |
| 7 |
dialogues, the readme file and the installation readme file. All other |
| 8 |
documentatation i18n should be available separately. I18n is a |
| 9 |
good thing, but bloating the installer with large amounts of translated |
| 10 |
documentation is not desirable. |
| 11 |
|
| 12 |
The current version of InnoSetup used by Firebird - 6.2.1 - provides |
| 13 |
generic support for the following languages: |
| 14 |
|
| 15 |
BrazilianPortuguese, Catalan, Corsican, Czech, Danish, Dutch, Finnish, French, |
| 16 |
German, Greek, Hebrew, Hungarian, Italian, Japanese, Nepali, Norwegian, Polish, |
| 17 |
Portuguese, Russian,ScottishGaelic, SerbianCyrillic, SerbianLatin, Slovenian, |
| 18 |
Spanish, Turkish and Ukrainian |
| 19 |
|
| 20 |
In addition, the InnoSetup user community has made other language packs |
| 21 |
available for download. See here for details: |
| 22 |
|
| 23 |
http://www.jrsoftware.org/files/istrans/ |
| 24 |
|
| 25 |
Therefore adding i18n support to the Firebird installer is extremely |
| 26 |
simple as all we need are translations of the Firebird specific messages. |
| 27 |
|
| 28 |
Currently the Firebird installer has support for Bosnian, Czech, Spanish, |
| 29 |
French, German, Hungarian, Italian, Polish, Portuguese (standard), Russian, |
| 30 |
Slovakian and Slovenian installs. So there are still opportunities for others |
| 31 |
to provide support for their native language. |
| 32 |
|
| 33 |
|
| 34 |
How to add new languages |
| 35 |
------------------------ |
| 36 |
|
| 37 |
The simplest way to understand this is to study the implementation of |
| 38 |
an existing translation. The steps to follow are these: |
| 39 |
|
| 40 |
o The Win32 install files are located in install\arch-specific\win32. |
| 41 |
This sub-directory is located as follows: |
| 42 |
|
| 43 |
Firebird 1.5 - firebird2\src |
| 44 |
Firebird 2.n and newer - firebird2\builds |
| 45 |
|
| 46 |
o You can use a tool such as TortoiseSVN to checkout the Win32 install |
| 47 |
kit. Just open the SVN checkout dialogue and enter something similar |
| 48 |
to this Repository URL: |
| 49 |
https://firebird.svn.sourceforge.net/svnroot/firebird/firebird/branch/B2_5_Release/builds/install/arch-specific/win32 |
| 50 |
or this: |
| 51 |
https://firebird.svn.sourceforge.net/svnroot/firebird/firebird/tags/R2_5_1/builds/install/arch-specific/win32 |
| 52 |
For 2.1 the equivalent URLs would be: |
| 53 |
https://firebird.svn.sourceforge.net/svnroot/firebird/firebird/branch/B2_1_Release/builds/install/arch-specific/win32 |
| 54 |
https://firebird.svn.sourceforge.net/svnroot/firebird/firebird/tags/R2_1_4/builds/install/arch-specific/win32 |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
o Each language has its own sub-directory under install\arch-specific\win32. |
| 59 |
If possible a two-letter language code should be used for the |
| 60 |
directory name. This two letter code should, if possible, be the |
| 61 |
internationally recognised two-letter identifier for the langauge. |
| 62 |
|
| 63 |
|
| 64 |
o Three files are required: |
| 65 |
|
| 66 |
* custom_messages_%LANG_CODE%.inc |
| 67 |
|
| 68 |
where %LANG_CODE% represents the language identifier used in the |
| 69 |
directory name. This file contains the translated strings that are |
| 70 |
used throughout the installation process. The original, english |
| 71 |
strings are stored in install\arch-specific\win32\custom_messages.inc |
| 72 |
|
| 73 |
* readme.txt |
| 74 |
|
| 75 |
where the actual file name can be either in english or in the |
| 76 |
translated equivalent of the name. The readme file stores last |
| 77 |
minute documentation changes as well as general notes on using |
| 78 |
firebird. It is displayed at the end of the installation process. |
| 79 |
|
| 80 |
The readme file is always subject to change from one beta or |
| 81 |
pre-release to the next (or final release.) For this reason the |
| 82 |
translated readme should always explain that the english language |
| 83 |
readme.txt is the definitive version. This is because it will |
| 84 |
not be possible to hold up a release while waiting for translators |
| 85 |
to complete their work. |
| 86 |
|
| 87 |
* installation_readme.txt |
| 88 |
|
| 89 |
This filename can be translated or left with the original english |
| 90 |
title. It contains installation specific details. It is displayed |
| 91 |
near the beginning of the installation process. The installation |
| 92 |
readme is usually static and only changes from point release to |
| 93 |
point release. |
| 94 |
|
| 95 |
|
| 96 |
o Issues to bear in mind |
| 97 |
|
| 98 |
* Use ascii characters for filenames where possible. |
| 99 |
|
| 100 |
* All strings that appear as text labels in dialogue screens should contain |
| 101 |
an ampersand ( & ) to support keyboard input during setup. |
| 102 |
|
| 103 |
* The installation readme file and the readme file must be formatted to |
| 104 |
a column width of 55 chars. Otherwise the installer will wrap lines |
| 105 |
awkwardly. This is because the installer screens use the Courier New |
| 106 |
font to display these text files. Courier New guarantees to maintain |
| 107 |
column alignment. |
| 108 |
|
| 109 |
|
| 110 |
o Adding the new language to the InnoSetup install script |
| 111 |
|
| 112 |
Changes have been kept to the absolute minimum. Only the following |
| 113 |
sections need to be altered: |
| 114 |
|
| 115 |
[Languages] |
| 116 |
Name: en; MessagesFile: compiler:Default.isl; InfoBeforeFile: output\doc\installation_readme.txt; InfoAfterFile: src\install\arch-specific\win32\readme.txt; |
| 117 |
Name: fr; MessagesFile: compiler:Languages\French.isl; InfoBeforeFile: src\install\arch-specific\win32\fr\installation_lisezmoi.txt; InfoAfterFile: src\install\arch-specific\win32\fr\lisezmoi.txt; |
| 118 |
|
| 119 |
[CustomMessages] |
| 120 |
#include "custom_messages.inc" |
| 121 |
#include "fr\custom_messages_fr.inc" |
| 122 |
|
| 123 |
You are not required to make these changes. |
| 124 |
|
| 125 |
|
| 126 |
o Submitting your changes |
| 127 |
|
| 128 |
All i18n is being co-ordinated by Paul Reeves who maintains the Win32 |
| 129 |
installation kits. He can be contacted at: |
| 130 |
|
| 131 |
mailto: preeves at ibphoenix.com |
| 132 |
|
| 133 |
|