James Turner
55fc3d99ae
Launcher: fix selection of English language
...
Due to the file naming, we would not pick English (even if it was
the first UI language), if the active region was not US.
Ticket-Id: https://sourceforge.net/p/flightgear/codetickets/2406/
2020-11-12 09:30:36 +00:00
James Turner
37936496a4
CMake translations: don’t break no-translation builds
...
Move all the relevant pieces inside the do_translate guard, so we
don’t break compilation when translation is disabled.
2020-05-13 23:35:53 +01:00
James Turner
3dc3d4399a
Cmake: detect required translations automatically
...
This avoids needs to manually keep this file in sync with the actual
available translation dirs.
2020-05-13 15:01:50 +01:00
James Turner
05d455debc
Fix build issue when a translation file is missing
...
Only try to build XLF files we actually found in the source dir.
2020-05-12 13:36:28 +01:00
James Turner
b52d41b0c3
Allow region/local specifications of translations
2020-05-08 14:54:53 +01:00
James Turner
a46a73459f
Launcher: add Catalan, Slovak to languages
2020-04-16 11:14:14 +01:00
James Turner
d0c12149c3
Fixes to translation updating: use correct path.
2020-03-10 17:29:33 +00:00
James Turner
ecb48062ef
Add CMake target to update Launcher translations
...
Invoke ‘make ts’ (or equivalent for your build system) to update the
.XLF files for the launcher.
2020-03-10 17:25:03 +00:00
Florent Rougon
b2d6acdd4d
CMake changes related to FGDATA_SRC_DIR and TRANSLATIONS_SRC_DIR
...
- When FGDATA_SRC_DIR isn't explicitly set by the user, set it to
${PROJECT_SOURCE_DIR}/../fgdata if this is a directory.
- When TRANSLATIONS_SRC_DIR isn't explicitly set by the user, look for
translations in ${FGDATA_SRC_DIR}/Translations instead of
${PROJECT_SOURCE_DIR}/../fgdata/Translations (i.e., honor the setting
of FGDATA_SRC_DIR for the sake of translation lookup).
This fixes the problem explained in [1] and [2].
[1] https://sourceforge.net/p/flightgear/mailman/message/36645499/
[2] b2274fbbed
/
2019-04-25 19:11:01 +02:00
James Turner
2b1913e118
Add Russian to list of Qt translations to sync
2018-10-12 11:37:08 +01:00
James Turner
ca8b84dae0
Make translations detection more robust
...
Thanks to Scott Giese for the suggestion, check for a full valid
path inside the Translation setup, in case FGData exists but is not
populated.
2018-09-22 18:24:23 +01:00
Stuart Buchanan
c5840b1039
Fix translations variable where no translations data
2018-09-01 16:22:08 +01:00
James Turner
c537bbcfe7
Translations: detect missing lrelease explicitly.
...
This gives a clearer message and behaviour when Qt is installed but
the translation tools have been omitted.
2018-09-01 14:59:24 +01:00
James Turner
41687767b9
Translations looked up correctly
...
Tweak both the launcher and main locale lookups, to tolerate the
different region suffixes encountered in reality.
2018-08-28 23:34:44 +01:00
James Turner
2329654e3b
Disabling translations is tricky.
2018-08-28 17:12:31 +01:00
James Turner
eaa2ed5cbb
Launcher translations enabled
...
Translations are build into the executable at compile time, providing
FGData is available during the build.
2018-08-27 13:20:23 +01:00