fixed update translation on CI
This commit is contained in:
parent
4acfc10aa4
commit
ca8b96f23c
87
build/ci/linux/local/workflow.sh
Executable file
87
build/ci/linux/local/workflow.sh
Executable file
|
@ -0,0 +1,87 @@
|
|||
#!/usr/bin/env bash
|
||||
#This is an imitation of a workflow to run it locally for testing and debugging purposes
|
||||
|
||||
TRANSIFEX_API_TOKEN="123"
|
||||
|
||||
github_run_id=42
|
||||
GITHUB_ENV=""
|
||||
DO_SETUP='true'
|
||||
DO_BUILD='true'
|
||||
|
||||
# - name: "Configure workflow"
|
||||
# env:
|
||||
# pull_request_title: ${{ github.event.pull_request.title }}
|
||||
# run: |
|
||||
bash ./build/ci/tools/make_build_mode_env.sh -e workflow_dispatch -m testing_build
|
||||
BUILD_MODE=$(cat ./build.artifacts/env/build_mode.env)
|
||||
|
||||
DO_UPDATE_TS='false'
|
||||
if [[ "$BUILD_MODE" == "testing_build" || "$BUILD_MODE" == "stable_build" ]]; then
|
||||
DO_UPDATE_TS='true'
|
||||
if [ -z "${TRANSIFEX_API_TOKEN}" ]; then
|
||||
echo "warning: not set TRANSIFEX_API_TOKEN, update .ts disabled"
|
||||
DO_UPDATE_TS='false'
|
||||
fi
|
||||
fi
|
||||
|
||||
DO_PLACEHOLDER_TRANSLATIONS='false'
|
||||
if [[ "$DO_BUILD" == "true" ]]; then
|
||||
if [[ "$BUILD_MODE" == "nightly_build" || "$BUILD_MODE" == "devel_build" ]]; then
|
||||
DO_PLACEHOLDER_TRANSLATIONS='true'
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# - name: Setup environment
|
||||
# if: env.DO_BUILD == 'true'
|
||||
if [ $DO_SETUP == 'true' ]; then
|
||||
#run: |
|
||||
bash ./build/ci/linux/setup.sh
|
||||
fi
|
||||
|
||||
# - name: Generate _en.ts files
|
||||
# if: env.DO_BUILD == 'true'
|
||||
if [ $DO_BUILD == 'true' ]; then
|
||||
# run: |
|
||||
bash ./build/ci/translation/run_lupdate.sh
|
||||
fi
|
||||
|
||||
# - name: Update .ts files
|
||||
# if: env.DO_UPDATE_TS == 'true'
|
||||
if [ $DO_UPDATE_TS == 'true' ]; then
|
||||
# run: |
|
||||
bash ./build/ci/translation/tx_install.sh -t ${TRANSIFEX_API_TOKEN} -s linux
|
||||
bash ./build/ci/translation/tx_pull.sh
|
||||
fi
|
||||
|
||||
# - name: Generate placeholder.ts files
|
||||
# if: env.DO_PLACEHOLDER_TRANSLATIONS == 'true'
|
||||
# run: |
|
||||
# sudo python3 ./tools/translations/placeholder_translations.py
|
||||
# - name: Generate .qm files
|
||||
# if: env.DO_BUILD == 'true'
|
||||
if [ $DO_BUILD == 'true' ]; then
|
||||
# run: |
|
||||
bash ./build/ci/translation/run_lrelease.sh
|
||||
fi
|
||||
|
||||
#exit 0
|
||||
# - name: Build
|
||||
# if: env.DO_BUILD == 'true'
|
||||
if [ $DO_BUILD == 'true' ]; then
|
||||
# run: |
|
||||
# YT_API_KEY=${{ secrets.YOUTUBE_API_KEY }}; if [ -z "$YT_API_KEY" ]; then YT_API_KEY="''"; fi
|
||||
# C_URL=${SENTRY_URL}; if [ -z "$C_URL" ]; then C_URL="''"; fi
|
||||
bash ./build/ci/linux/build.sh -n ${github_run_id}
|
||||
fi
|
||||
# - name: Generate dump symbols
|
||||
# if: env.DO_BUILD == 'true'
|
||||
# run: |
|
||||
# sudo bash ./build/ci/linux/dumpsyms.sh
|
||||
# - name: Package
|
||||
# if: env.DO_BUILD == 'true'
|
||||
if [ $DO_BUILD == 'true' ]; then
|
||||
# run: |
|
||||
bash ./build/ci/linux/package.sh
|
||||
fi
|
||||
|
|
@ -87,12 +87,12 @@ if [ "$PACKTYPE" == "appimage" ]; then
|
|||
esac
|
||||
|
||||
bash ./build/ci/linux/tools/make_appimage.sh "${INSTALL_DIR}" "${ARTIFACT_NAME}.AppImage"
|
||||
mv "${BUILD_DIR}/${ARTIFACT_NAME}.AppImage" "${ARTIFACTS_DIR}/"
|
||||
mv "${INSTALL_DIR}/../${ARTIFACT_NAME}.AppImage" "${ARTIFACTS_DIR}/"
|
||||
bash ./build/ci/tools/make_artifact_name_env.sh $ARTIFACT_NAME.AppImage
|
||||
|
||||
if [ -v UPDATE_INFORMATION ]; then
|
||||
# zsync file contains data for automatic delta updates
|
||||
mv "${BUILD_DIR}/${ARTIFACT_NAME}.AppImage.zsync" "${ARTIFACTS_DIR}/"
|
||||
mv "${INSTALL_DIR}/../${ARTIFACT_NAME}.AppImage.zsync" "${ARTIFACTS_DIR}/"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ case $TARGET in
|
|||
;;
|
||||
|
||||
appimage)
|
||||
MUSESCORE_INSTALL_DIR=MuseScore
|
||||
MUSESCORE_INSTALL_DIR=../MuseScore
|
||||
MUSESCORE_INSTALL_SUFFIX="-portable${MUSESCORE_INSTALL_SUFFIX}" # e.g. "-portable" or "-portable-nightly"
|
||||
MUSESCORE_LABEL="Portable AppImage"
|
||||
MUSESCORE_NO_RPATH=ON
|
||||
|
|
|
@ -21,17 +21,18 @@
|
|||
file(GLOB INSTRUMENTS_TS_FILES ${CMAKE_CURRENT_LIST_DIR}/instruments*.ts )
|
||||
file(GLOB MUSESCORE_TS_FILES ${CMAKE_CURRENT_LIST_DIR}/musescore*.ts )
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_LIST_DIR}/musescore_en_US.qm
|
||||
COMMAND Qt5::lrelease ${INSTRUMENTS_TS_FILES}
|
||||
COMMAND Qt5::lrelease ${MUSESCORE_TS_FILES}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
||||
# Translations update and generate on CI
|
||||
#add_custom_command(
|
||||
# OUTPUT ${CMAKE_CURRENT_LIST_DIR}/musescore_en_US.qm
|
||||
# COMMAND Qt5::lrelease ${INSTRUMENTS_TS_FILES}
|
||||
# COMMAND Qt5::lrelease ${MUSESCORE_TS_FILES}
|
||||
# WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
#)
|
||||
|
||||
add_custom_target(lrelease ALL
|
||||
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/musescore_en_US.qm
|
||||
COMMENT "Generating .qm files" VERBATIM
|
||||
)
|
||||
#add_custom_target(lrelease ALL
|
||||
# DEPENDS ${CMAKE_CURRENT_LIST_DIR}/musescore_en_US.qm
|
||||
# COMMENT "Generating .qm files" VERBATIM
|
||||
#)
|
||||
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/languages.json
|
||||
|
|
|
@ -7829,6 +7829,11 @@ By default, they will be placed such as that their right end are at the same lev
|
|||
<source>Add clef: bass</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/notation/internal/notationuiactions.cpp" line="1804"/>
|
||||
<source>Add accidental: sharp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/notation/internal/notationuiactions.cpp" line="1828"/>
|
||||
<source>Transpose up half a step</source>
|
||||
|
@ -9319,11 +9324,6 @@ By default, they will be placed such as that their right end are at the same lev
|
|||
<source>Add sharp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/notation/internal/notationuiactions.cpp" line="1804"/>
|
||||
<source>Apply accidental: sharp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/notation/internal/notationuiactions.cpp" line="1809"/>
|
||||
<source>Add natural</source>
|
||||
|
@ -22281,18 +22281,18 @@ Whether you are just getting started with music notation software, or are a powe
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="896"/>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="895"/>
|
||||
<source>Load Palette</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="897"/>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="900"/>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="896"/>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="899"/>
|
||||
<source>MuseScore Palette</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="899"/>
|
||||
<location filename="../../src/palette/internal/paletteprovider.cpp" line="898"/>
|
||||
<source>Save Palette</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
Loading…
Reference in a new issue