mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
autodetect system language on MacOS
This commit is contained in:
parent
183938ca28
commit
045c7bd93a
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
string(FIND "${TS_FILE}" "_" POS)
|
string(FIND "${TS_FILE}" "_" POS)
|
||||||
math(EXPR START "${POS} + 1")
|
math(EXPR START "${POS} + 1")
|
||||||
string(SUBSTRING "${TS_FILE}" ${START} -1 LPROJ_FOLDER)
|
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
|
# @ 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}")
|
list(APPEND LPROJ_FOLDERS "${LPROJ_FOLDER}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue