1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-30 15:19:40 +03:00

Add the new languages to the installed files.

* You need to add a 'Directory' entry for the new file *and* then list it in 'Features'.
 * Translations.md updated with the necessary steps.

closes #547
This commit is contained in:
Athanasius 2020-07-02 15:58:28 +01:00
parent 79f86039d2
commit 2dddffd1f7
2 changed files with 43 additions and 12 deletions

View File

@ -261,9 +261,15 @@
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\ru.strings" />
</Component>
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\sl.strings" />
</Component>
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\sr-Latn.strings" />
</Component>
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\sr-Latn-BA.strings" />
</Component>
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\uk.strings" />
</Component>
@ -561,7 +567,9 @@
<ComponentRef Id="ru.strings" />
<ComponentRef Id="select.pyd" />
<ComponentRef Id="ships.p" />
<ComponentRef Id="sl.strings" />
<ComponentRef Id="sr_Latn.strings" />
<ComponentRef Id="sr_Latn_BA.strings" />
<ComponentRef Id="snd_good.wav" />
<ComponentRef Id="snd_bad.wav" />
<ComponentRef Id="sqlite3.dll" />

View File

@ -73,6 +73,7 @@ Adding a New Language
===
To add a new language to the app:
1. Add it to the OneSkyApp project:
1. open [EDMarketConnector - Miscellaneous Manage Languages](https://marginal.oneskyapp.com/admin/project/languages/project/52710)
1. Search for the language.
1. Ensure you have the correct one if there are variants.
@ -80,7 +81,29 @@ To add a new language to the app:
Remember that until there are translations all strings will default to the English version (actually the key, which is always specified in English).
You will also want to add it to the installer. This is simple enough, only requiring you add a number to an array in `EDMarketConnector.wxs`.
1. You need to get the new `.string` file added to the files the installer will install:
1. Edit `EDMarketConnector.wxs` to add an appropriate section to the:
`<Directory Id="L10n" Name="L10n">`
section, e.g.:
<Component Guid="*">
<File KeyPath="yes" Source="SourceDir\L10n\sr-Latn-BA.strings" />
</Component>`
1. You also need to add a line in the:
<Feature Id='Complete' Level='1'>
section, e.g.:
<ComponentRef Id="sr_Latn_BA.strings" />
Note how the `-` characters have been changed to `_`. If needs be run the build process once and look out for
lines like:
\EDMarketConnector\EDMarketConnector.wxs(264) : error LGHT0204 : ICE21: Component: 'sr_Latn_BA.strings' does not belong to any Feature.
to see what the applicable string is.
1. You will also want to add it to the installer's languages. This is simple enough, only requiring you add a number to an array in `EDMarketConnector.wxs`.
1. In `EDMarketConnector.wxs` find the line beginning `Languages="1033,`, e.g.