Skip to content

Commit 9b697aa

Browse files
committed
Split out installer translations into separate files
The English string is used for any language that is missing a translation so that all message names are present for each language.
1 parent b5b3f21 commit 9b697aa

File tree

21 files changed

+145
-65
lines changed

21 files changed

+145
-65
lines changed

CONTRIBUTING.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,24 @@ Keep in mind that you don't need to submit a perfect pull request; just follow t
4141

4242
First check that an [Inno Setup translation](http://www.jrsoftware.org/files/istrans/) exists for your language. Unofficial translations are acceptable, but require a bit of extra handling. If there isn't an official or unofficial translation for Inno Setup, you're better off making a translation and getting it listed on the linked page before continuing.
4343

44+
To translate the LOOT-specific messages:
45+
46+
1. Copy `resources/l10n/en/LC_MESSAGES/inno.islu` to `resources/l10n/<language>/LC_MESSAGES/inno.islu` if the latter file does not exist, where `<language>` is the [POSIX locale code](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html) for your language.
47+
2. Open the copied file in your favourite text editor.
48+
2. Translate the string(s) into your language. Do not change the text before the first `=` as that is the message's name.
49+
3. Save your changes.
50+
51+
To add your language as an option in LOOT's installer:
52+
4453
1. Open the installer script at `scripts/installer.iss` in a text editor of your choice.
4554
2. If your language only has an unofficial translation, add a `#define <Language>Exists` block for it near the top of the script, like it has been done for Korean and Simplified Chinese.
46-
3. Add your language to the `[Languages]` section. The `Name` should be the [POSIX locale code](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html) for your language. The `MessagesFile` filename is the filename of the Inno Setup translation that you checked exists. If your language only has an unofficial translation, wrap its line in `#ifdef` and `#endif` lines, again like it has been done for Korean and Simplified Chinese.
47-
4. Translate the string(s) in the `[CustomMessages]` into your language, following the example of the existing translations. Again, if your language only has an unofficial translation, wrap its line(s) in `#ifdef` and `#endif` lines.
55+
3. Add your language to the `[Languages]` section.
56+
57+
The `Name` value should be the POSIX locale code for your language.
58+
59+
The `MessagesFile` value should be `compiler:Languages\<translation file>,resources/l10n/<language>/LC_MESSAGES/inno.islu`, where `<translation file>` is the filename of the Inno Setup translation that you checked exists and `<language>` is your language's POSIX locale code.
60+
61+
If your language only has an unofficial translation, wrap its line in `#ifdef` and `#endif` lines, again like it has been done for Korean and Simplified Chinese.
4862
5. Save your changes.
4963

5064
If your language's Inno Setup translation is unofficial, also do the following:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Искате ли да изтриете Вашите настройки и потребителските метаданни?
3+
4+
InstallingMSVCRedist=Инсталиране на „Visual C++ 2019 Redistributable“…
5+
6+
DownloadMasterlists=Изтегляне и инсталиране на най-новите основни списъци
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Vymazat Uživatelské Soubory
3+
4+
InstallingMSVCRedist=Installing Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Download and install the latest masterlists
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Ønsker du at slette dine indstillinger og bruger metadata?
3+
4+
InstallingMSVCRedist=Installing Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Download and install the latest masterlists
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Möchten Sie Ihre Einstellungen und Benutzer-Metadaten löschen?
3+
4+
InstallingMSVCRedist=Installiere Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Lade und installiere die aktuellen Masterlisten
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Do you want to delete your settings and user metadata?
3+
4+
InstallingMSVCRedist=Installing Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Download and install the latest masterlists
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=¿Desea borrar sus ajustes y metadatos de usuario?
3+
4+
InstallingMSVCRedist=Installing Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Download and install the latest masterlists
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Haluatko poistaa asetukset ja paikallisesti muokatut metatiedot?
3+
4+
InstallingMSVCRedist=Asennetaan Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Lataa ja asenna uusimmat pääluettelot
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Voulez-vous supprimer vos paramètres et les métadonnées de l'utilisateur?
3+
4+
InstallingMSVCRedist=Installing Visual C++ 2019 Redistributable…
5+
6+
DownloadMasterlists=Download and install the latest masterlists
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[CustomMessages]
2+
DeleteUserFiles=Vuoi cancellare le tue impostazioni e i meta-dati utente?
3+
4+
InstallingMSVCRedist=Installazione di Visual C++ 2019 Redistributable“…
5+
6+
DownloadMasterlists=Scarica e installa le ultime Masterlist

0 commit comments

Comments
 (0)