diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 00:01:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 00:04:46 +0200 |
commit | 66f541ee1d2c1ea2cd760cec74338b90208821f5 (patch) | |
tree | a54372dab916b7e0b745572dfbfe1edf74500950 /cmake | |
parent | 0ee4dd997d17f57a5473443569548a8d2eaad779 (diff) |
fix i18n generation
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-i18n.cmake | 1 | ||||
-rw-r--r-- | cmake/translation-stub.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmake/opentrack-i18n.cmake b/cmake/opentrack-i18n.cmake index 2902a14b..6c424017 100644 --- a/cmake/opentrack-i18n.cmake +++ b/cmake/opentrack-i18n.cmake @@ -24,6 +24,7 @@ function(otr_i18n_for_target_directory n) if (NOT EXISTS "${t}") file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lang") file(READ "${CMAKE_SOURCE_DIR}/cmake/translation-stub.ts" stub) + string(REPLACE "@LANG@" "${i}" stub "${stub}") file(WRITE "${t}" "${stub}") endif() endforeach() diff --git a/cmake/translation-stub.ts b/cmake/translation-stub.ts index 6401616d..9d616636 100644 --- a/cmake/translation-stub.ts +++ b/cmake/translation-stub.ts @@ -1,4 +1,4 @@ <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> -<TS version="2.1"> +<TS version="2.1" language="@LANG@"> </TS> |