mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
autodetect system language on MacOS
This commit is contained in:
parent
b6b745f8fa
commit
31a9f91961
1 changed files with 0 additions and 4 deletions
|
@ -33,7 +33,6 @@ endif()
|
||||||
add_executable(qbt_app)
|
add_executable(qbt_app)
|
||||||
|
|
||||||
# Generate lproj folders for the translations
|
# Generate lproj folders for the translations
|
||||||
set(LPROJ_FOLDERS "")
|
|
||||||
foreach(TS_FILE IN LISTS QBT_TS_FILES)
|
foreach(TS_FILE IN LISTS QBT_TS_FILES)
|
||||||
string(FIND "${TS_FILE}" "_" POS)
|
string(FIND "${TS_FILE}" "_" POS)
|
||||||
math(EXPR START "${POS} + 1")
|
math(EXPR START "${POS} + 1")
|
||||||
|
@ -41,9 +40,6 @@ foreach(TS_FILE IN LISTS QBT_TS_FILES)
|
||||||
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
|
# @ is not valid as a language code for a lproj folder on MacOS
|
||||||
string(REPLACE "@" "-" LPROJ_FOLDER "${LPROJ_FOLDER}")
|
string(REPLACE "@" "-" LPROJ_FOLDER "${LPROJ_FOLDER}")
|
||||||
list(APPEND LPROJ_FOLDERS "${LPROJ_FOLDER}")
|
|
||||||
endforeach()
|
|
||||||
foreach(LPROJ_FOLDER IN LISTS LPROJ_FOLDERS)
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET qbt_app
|
TARGET qbt_app
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue