From 045c7bd93a86a5f94958817da480561560c905a9 Mon Sep 17 00:00:00 2001 From: Ryu481 <142620516+Ryu481@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:26:36 +0200 Subject: [PATCH] autodetect system language on MacOS --- src/app/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 23ef3650c..e9c4afe24 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -107,7 +107,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") string(FIND "${TS_FILE}" "_" POS) math(EXPR START "${POS} + 1") string(SUBSTRING "${TS_FILE}" ${START} -1 LPROJ_FOLDER) - string(REPLACE "ts" "lproj" LPROJ_FOLDER "${LPROJ_FOLDER}") + string(REPLACE ".ts" ".lproj" LPROJ_FOLDER "${LPROJ_FOLDER}") # @ is not valid as a language code for a lproj folder on MacOS string(REPLACE "@" "-" LPROJ_FOLDER "${LPROJ_FOLDER}") list(APPEND LPROJ_FOLDERS "${LPROJ_FOLDER}")