From 46db4dcfcb20e71ae133c14fb12d169b263b955e Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Fri, 26 Jan 2024 17:55:13 +0100 Subject: [PATCH] README.md and language update --- .github/workflows/build-qt.yml | 72 ++++++++++++++++----------------- README.md | 34 ++++++++-------- resources/i18n/caesium_en_US.ts | 14 +++---- resources/i18n/caesium_it_IT.ts | 14 +++---- 4 files changed, 67 insertions(+), 67 deletions(-) diff --git a/.github/workflows/build-qt.yml b/.github/workflows/build-qt.yml index c01c1ef..b33b4da 100644 --- a/.github/workflows/build-qt.yml +++ b/.github/workflows/build-qt.yml @@ -24,7 +24,7 @@ jobs: uses: jurplel/install-qt-action@v3 with: aqtversion: '==3.0.*' - version: '6.5.2' + version: '6.5.3' host: 'windows' target: 'desktop' arch: 'win64_mingw' @@ -40,40 +40,40 @@ jobs: - name: Build run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor -# build-macos: -# runs-on: macos-latest -# steps: -# - name: Checkout code -# uses: actions/checkout@v3 -# -# - name: Cache libcaesium -# id: cache-libcaesium -# uses: actions/cache@v3 -# env: -# cache-name: cache-libcaesium -# with: -# path: ${{github.workspace}}/build-${{ runner.os }}/libcaesium-prefix -# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/libcaesium.conf') }} -# -# - name: Install Qt -# uses: jurplel/install-qt-action@v3 -# with: -# aqtversion: '==3.0.*' -# version: '6.5.2' -# host: 'mac' -# target: 'desktop' -# arch: 'clang_64' -# modules: 'qtimageformats' -# cache: true -# -# - name: Setup Sparkle -# run: brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-cask/c6dfe6baf1639998ba1707f68668cf8fa97bac9d/Casks/sparkle.rb && sudo cp -R /usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework /Library/Frameworks/Sparkle.framework -# -# - name: Configure CMake -# run: cmake -B build_dir -DCMAKE_PREFIX_PATH="${{env.Qt6_Dir}}" -DSPARKLE_INCLUDE_DIR=/usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework/Versions/Current/Headers -DLIBSSH_INCLUDE_DIR=/usr/local/opt/openssl/ -DCMAKE_BUILD_TYPE=Release -B ${{github.workspace}}/build-${{ runner.os }} -# -# - name: Build -# run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor + build-macos: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Cache libcaesium + id: cache-libcaesium + uses: actions/cache@v3 + env: + cache-name: cache-libcaesium + with: + path: ${{github.workspace}}/build-${{ runner.os }}/libcaesium-prefix + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/libcaesium.conf') }} + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + aqtversion: '==3.0.*' + version: '6.5.3' + host: 'mac' + target: 'desktop' + arch: 'clang_64' + modules: 'qtimageformats' + cache: true + + - name: Setup Sparkle + run: brew install --cask https://raw.githubusercontent.com/Homebrew/homebrew-cask/c6dfe6baf1639998ba1707f68668cf8fa97bac9d/Casks/sparkle.rb && sudo cp -R /usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework /Library/Frameworks/Sparkle.framework + + - name: Configure CMake + run: cmake -B build_dir -DCMAKE_PREFIX_PATH="${{env.Qt6_Dir}}" -DSPARKLE_INCLUDE_DIR=/usr/local/Caskroom/sparkle/1.27.1/Sparkle.framework/Versions/Current/Headers -DLIBSSH_INCLUDE_DIR=/usr/local/opt/openssl/ -DCMAKE_BUILD_TYPE=Release -B ${{github.workspace}}/build-${{ runner.os }} + + - name: Build + run: cmake --build ${{github.workspace}}/build-${{ runner.os }} --config Release --target caesium_image_compressor build-ubuntu: runs-on: ubuntu-latest @@ -94,7 +94,7 @@ jobs: uses: jurplel/install-qt-action@v3 with: aqtversion: '==3.0.*' - version: '6.5.2' + version: '6.5.3' host: 'linux' target: 'desktop' arch: 'gcc_64' diff --git a/README.md b/README.md index b811731..026c9a6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Please open an [issue](https://github.com/Lymphatus/caesium-image-compressor/iss ### Build from source ##### Requirements - [Rust](https://www.rust-lang.org/tools/install): required to compile [libcaesium](https://github.com/Lymphatus/libcaesium). Make sure you have `cargo` executable on you `$PATH` -- [Qt6 SDK](https://www.qt.io/download/): binaries are built on 6.5.1 (open source) +- [Qt6 SDK](https://www.qt.io/download/): binaries are built on 6.5.3 (open source) - [libssh](https://www.libssh.org/): macOS only - [Sparkle](https://sparkle-project.org/): macOS only. Only version 1.27.1 is supported. @@ -70,24 +70,24 @@ cmake --build build_dir --config Release --target caesium_image_compressor ### Languages and translations The 1.0 version of Caesium had a lot of community made translations, but this 2.0 release has a whole new set of strings and no old translations can be used anymore. Caesium 2.0 is currently available in: -- EG ar_EG ![78%](https://progress-bar.dev/78) -- DE de_DE ![100%](https://progress-bar.dev/100) -- GR el_GR ![95%](https://progress-bar.dev/95) +- EG ar_EG ![75%](https://progress-bar.dev/75) +- DE de_DE ![96%](https://progress-bar.dev/96) +- GR el_GR ![91%](https://progress-bar.dev/91) - US en_US ![100%](https://progress-bar.dev/100) -- ES es_ES ![93%](https://progress-bar.dev/93) -- FI fi_FI ![99%](https://progress-bar.dev/99) -- FR fr_FR ![76%](https://progress-bar.dev/76) -- IN hi_IN ![99%](https://progress-bar.dev/99) -- ID id_ID ![95%](https://progress-bar.dev/95) +- ES es_ES ![89%](https://progress-bar.dev/89) +- FI fi_FI ![95%](https://progress-bar.dev/95) +- FR fr_FR ![89%](https://progress-bar.dev/89) +- IN hi_IN ![95%](https://progress-bar.dev/95) +- ID id_ID ![91%](https://progress-bar.dev/91) - IT it_IT ![100%](https://progress-bar.dev/100) -- JP ja_JP ![83%](https://progress-bar.dev/83) -- PL pl_PL ![93%](https://progress-bar.dev/93) -- BR pt_BR ![83%](https://progress-bar.dev/83) -- RU ru_RU ![95%](https://progress-bar.dev/95) -- SK sk_SK ![93%](https://progress-bar.dev/93) -- TR tr_TR ![95%](https://progress-bar.dev/95) -- CN zh_CN ![95%](https://progress-bar.dev/100) -- TW zh_TW ![61%](https://progress-bar.dev/100) +- JP ja_JP ![95%](https://progress-bar.dev/95) +- PL pl_PL ![89%](https://progress-bar.dev/89) +- BR pt_BR ![79%](https://progress-bar.dev/79) +- RU ru_RU ![91%](https://progress-bar.dev/91) +- SK sk_SK ![89%](https://progress-bar.dev/89) +- TR tr_TR ![91%](https://progress-bar.dev/91) +- CN zh_CN ![96%](https://progress-bar.dev/96) +- TW zh_TW ![95%](https://progress-bar.dev/95) #### How to contribute with your translation You can help translate by opening the `resources/i18n/caesium_en_US.ts` with QtLinguist or any XML editor. Rename it to your language (e.g. `caesium_it_IT.ts`) and translate all the sentences. Then you can start a pull request with your translated file. diff --git a/resources/i18n/caesium_en_US.ts b/resources/i18n/caesium_en_US.ts index d1ea848..3fadbd9 100644 --- a/resources/i18n/caesium_en_US.ts +++ b/resources/i18n/caesium_en_US.ts @@ -576,37 +576,37 @@ Saved: %4 (%5%) No action - + No action Close the application - + Close the application Sleep - + Sleep Shutdown - + Shutdown Open output folder - + Open output folder Perform an action after successful compression - + Perform an action after successful compression Restart - + Restart diff --git a/resources/i18n/caesium_it_IT.ts b/resources/i18n/caesium_it_IT.ts index 7eb7679..739f315 100644 --- a/resources/i18n/caesium_it_IT.ts +++ b/resources/i18n/caesium_it_IT.ts @@ -595,37 +595,37 @@ Risparmiato: %4 (%5%) No action - + Nessuna azione Close the application - + Chiudi l'applicazione Sleep - + Sospendi Shutdown - + Spegni Open output folder - + Apri la cartella di destinazione Perform an action after successful compression - + Esegui un'azione dopo una compressione Restart - + Riavvia