mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Update translations?
Took 19 seconds
This commit is contained in:
parent
d6db8ba1e3
commit
31e57246e6
3 changed files with 1835 additions and 1791 deletions
8
.github/workflows/translations-push.yml
vendored
8
.github/workflows/translations-push.yml
vendored
|
|
@ -31,10 +31,10 @@ jobs:
|
||||||
- name: Update Cockatrice translation source
|
- name: Update Cockatrice translation source
|
||||||
id: cockatrice
|
id: cockatrice
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
run: |
|
||||||
FILE: 'cockatrice/cockatrice_en@source.ts'
|
FILE="cockatrice/cockatrice_en@source.ts"
|
||||||
DIRS: 'cockatrice/src common'
|
DIRS="cockatrice/src $(find . -maxdepth 1 -type d -name 'libcockatrice_*')"
|
||||||
run: .ci/update_translation_source_strings.sh
|
FILE="$FILE" DIRS="$DIRS" .ci/update_translation_source_strings.sh
|
||||||
|
|
||||||
- name: Update Oracle translation source
|
- name: Update Oracle translation source
|
||||||
id: oracle
|
id: oracle
|
||||||
|
|
|
||||||
|
|
@ -273,15 +273,26 @@ configure_file(
|
||||||
set(cockatrice_RESOURCES cockatrice.qrc)
|
set(cockatrice_RESOURCES cockatrice.qrc)
|
||||||
|
|
||||||
if(UPDATE_TRANSLATIONS)
|
if(UPDATE_TRANSLATIONS)
|
||||||
file(GLOB_RECURSE translate_cockatrice_SRCS ${CMAKE_SOURCE_DIR}/cockatrice/src/*.cpp
|
# Cockatrice main sources
|
||||||
${CMAKE_SOURCE_DIR}/cockatrice/src/*.h
|
file(GLOB_RECURSE translate_cockatrice_SRCS
|
||||||
|
${CMAKE_SOURCE_DIR}/cockatrice/src/*.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/cockatrice/src/*.h
|
||||||
)
|
)
|
||||||
file(GLOB_RECURSE translate_common_SRCS ${CMAKE_SOURCE_DIR}/common/*.cpp ${CMAKE_SOURCE_DIR}/common/*.h)
|
|
||||||
set(translate_SRCS ${translate_cockatrice_SRCS} ${translate_common_SRCS})
|
# All libcockatrice_* libraries (recursively)
|
||||||
|
file(GLOB_RECURSE translate_lib_SRCS
|
||||||
|
${CMAKE_SOURCE_DIR}/libcockatrice_*/**/*.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/libcockatrice_*/**/*.h
|
||||||
|
)
|
||||||
|
|
||||||
|
# Combine all sources for translation
|
||||||
|
set(translate_SRCS ${translate_cockatrice_SRCS} ${translate_lib_SRCS})
|
||||||
|
|
||||||
set(cockatrice_TS "${CMAKE_CURRENT_SOURCE_DIR}/cockatrice_en@source.ts")
|
set(cockatrice_TS "${CMAKE_CURRENT_SOURCE_DIR}/cockatrice_en@source.ts")
|
||||||
else()
|
else()
|
||||||
file(GLOB cockatrice_TS "${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts")
|
file(GLOB cockatrice_TS "${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts")
|
||||||
endif(UPDATE_TRANSLATIONS)
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(cockatrice_SOURCES ${cockatrice_SOURCES} cockatrice.rc)
|
set(cockatrice_SOURCES ${cockatrice_SOURCES} cockatrice.rc)
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue