From 9bcab9fb4274c6e1aa1a2621dbfedf829e7fcfc5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 29 Mar 2022 00:01:31 +0200 Subject: fix i18n generation --- cmake/opentrack-i18n.cmake | 1 + cmake/translation-stub.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') 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 @@ - + -- cgit v1.2.3