diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-03-29 00:01:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-04-19 14:52:15 +0200 |
commit | 9bcab9fb4274c6e1aa1a2621dbfedf829e7fcfc5 (patch) | |
tree | 932f6a3645b5cedca308ffdb70e8448985335226 /cmake | |
parent | 9e403da98b9ca8f43f928b9f5c899aba7fa5471d (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> |