Skip to content

Commit

Permalink
README.md and language update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymphatus committed Jan 26, 2024
1 parent c1e6cb7 commit 46db4dc
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 67 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/build-qt.yml
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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'
Expand Down
34 changes: 17 additions & 17 deletions README.md
Expand Up @@ -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.

Expand Down Expand Up @@ -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:
- <img src="https://flagcdn.com/h20/eg.png" srcset="https://flagcdn.com/h40/eg.png 2x" height="12" alt="EG"> ar_EG ![78%](https://progress-bar.dev/78)
- <img src="https://flagcdn.com/h20/de.png" srcset="https://flagcdn.com/h40/de.png 2x" height="12" alt="DE"> de_DE ![100%](https://progress-bar.dev/100)
- <img src="https://flagcdn.com/h20/gr.png" srcset="https://flagcdn.com/h40/gr.png 2x" height="12" alt="GR"> el_GR ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/eg.png" srcset="https://flagcdn.com/h40/eg.png 2x" height="12" alt="EG"> ar_EG ![75%](https://progress-bar.dev/75)
- <img src="https://flagcdn.com/h20/de.png" srcset="https://flagcdn.com/h40/de.png 2x" height="12" alt="DE"> de_DE ![96%](https://progress-bar.dev/96)
- <img src="https://flagcdn.com/h20/gr.png" srcset="https://flagcdn.com/h40/gr.png 2x" height="12" alt="GR"> el_GR ![91%](https://progress-bar.dev/91)
- <img src="https://flagcdn.com/h20/us.png" srcset="https://flagcdn.com/h40/us.png 2x" height="12" alt="US"> en_US ![100%](https://progress-bar.dev/100)
- <img src="https://flagcdn.com/h20/es.png" srcset="https://flagcdn.com/h40/es.png 2x" height="12" alt="ES"> es_ES ![93%](https://progress-bar.dev/93)
- <img src="https://flagcdn.com/h20/fi.png" srcset="https://flagcdn.com/h40/fi.png 2x" height="12" alt="FI"> fi_FI ![99%](https://progress-bar.dev/99)
- <img src="https://flagcdn.com/h20/fr.png" srcset="https://flagcdn.com/h40/fr.png 2x" height="12" alt="FR"> fr_FR ![76%](https://progress-bar.dev/76)
- <img src="https://flagcdn.com/h20/in.png" srcset="https://flagcdn.com/h40/in.png 2x" height="12" alt="IN"> hi_IN ![99%](https://progress-bar.dev/99)
- <img src="https://flagcdn.com/h20/id.png" srcset="https://flagcdn.com/h40/id.png 2x" height="12" alt="ID"> id_ID ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/es.png" srcset="https://flagcdn.com/h40/es.png 2x" height="12" alt="ES"> es_ES ![89%](https://progress-bar.dev/89)
- <img src="https://flagcdn.com/h20/fi.png" srcset="https://flagcdn.com/h40/fi.png 2x" height="12" alt="FI"> fi_FI ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/fr.png" srcset="https://flagcdn.com/h40/fr.png 2x" height="12" alt="FR"> fr_FR ![89%](https://progress-bar.dev/89)
- <img src="https://flagcdn.com/h20/in.png" srcset="https://flagcdn.com/h40/in.png 2x" height="12" alt="IN"> hi_IN ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/id.png" srcset="https://flagcdn.com/h40/id.png 2x" height="12" alt="ID"> id_ID ![91%](https://progress-bar.dev/91)
- <img src="https://flagcdn.com/h20/it.png" srcset="https://flagcdn.com/h40/it.png 2x" height="12" alt="IT"> it_IT ![100%](https://progress-bar.dev/100)
- <img src="https://flagcdn.com/h20/jp.png" srcset="https://flagcdn.com/h40/jp.png 2x" height="12" alt="JP"> ja_JP ![83%](https://progress-bar.dev/83)
- <img src="https://flagcdn.com/h20/pl.png" srcset="https://flagcdn.com/h40/pl.png 2x" height="12" alt="PL"> pl_PL ![93%](https://progress-bar.dev/93)
- <img src="https://flagcdn.com/h20/br.png" srcset="https://flagcdn.com/h40/br.png 2x" height="12" alt="BR"> pt_BR ![83%](https://progress-bar.dev/83)
- <img src="https://flagcdn.com/h20/ru.png" srcset="https://flagcdn.com/h40/ru.png 2x" height="12" alt="RU"> ru_RU ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/sk.png" srcset="https://flagcdn.com/h40/sk.png 2x" height="12" alt="SK"> sk_SK ![93%](https://progress-bar.dev/93)
- <img src="https://flagcdn.com/h20/tr.png" srcset="https://flagcdn.com/h40/tr.png 2x" height="12" alt="TR"> tr_TR ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/cn.png" srcset="https://flagcdn.com/h40/cn.png 2x" height="12" alt="CN"> zh_CN ![95%](https://progress-bar.dev/100)
- <img src="https://flagcdn.com/h20/tw.png" srcset="https://flagcdn.com/h40/tw.png 2x" height="12" alt="TW"> zh_TW ![61%](https://progress-bar.dev/100)
- <img src="https://flagcdn.com/h20/jp.png" srcset="https://flagcdn.com/h40/jp.png 2x" height="12" alt="JP"> ja_JP ![95%](https://progress-bar.dev/95)
- <img src="https://flagcdn.com/h20/pl.png" srcset="https://flagcdn.com/h40/pl.png 2x" height="12" alt="PL"> pl_PL ![89%](https://progress-bar.dev/89)
- <img src="https://flagcdn.com/h20/br.png" srcset="https://flagcdn.com/h40/br.png 2x" height="12" alt="BR"> pt_BR ![79%](https://progress-bar.dev/79)
- <img src="https://flagcdn.com/h20/ru.png" srcset="https://flagcdn.com/h40/ru.png 2x" height="12" alt="RU"> ru_RU ![91%](https://progress-bar.dev/91)
- <img src="https://flagcdn.com/h20/sk.png" srcset="https://flagcdn.com/h40/sk.png 2x" height="12" alt="SK"> sk_SK ![89%](https://progress-bar.dev/89)
- <img src="https://flagcdn.com/h20/tr.png" srcset="https://flagcdn.com/h40/tr.png 2x" height="12" alt="TR"> tr_TR ![91%](https://progress-bar.dev/91)
- <img src="https://flagcdn.com/h20/cn.png" srcset="https://flagcdn.com/h40/cn.png 2x" height="12" alt="CN"> zh_CN ![96%](https://progress-bar.dev/96)
- <img src="https://flagcdn.com/h20/tw.png" srcset="https://flagcdn.com/h40/tw.png 2x" height="12" alt="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.
Expand Down
14 changes: 7 additions & 7 deletions resources/i18n/caesium_en_US.ts
Expand Up @@ -576,37 +576,37 @@ Saved: %4 (%5%)</translation>
<message>
<location filename="../../views/PreferencesDialog.ui" line="418"/>
<source>No action</source>
<translation type="unfinished"></translation>
<translation>No action</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="423"/>
<source>Close the application</source>
<translation type="unfinished"></translation>
<translation>Close the application</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="428"/>
<source>Sleep</source>
<translation type="unfinished"></translation>
<translation>Sleep</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="433"/>
<source>Shutdown</source>
<translation type="unfinished"></translation>
<translation>Shutdown</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="438"/>
<source>Open output folder</source>
<translation type="unfinished"></translation>
<translation>Open output folder</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="451"/>
<source>Perform an action after successful compression</source>
<translation type="unfinished"></translation>
<translation>Perform an action after successful compression</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="523"/>
<source>Restart</source>
<translation type="unfinished"></translation>
<translation>Restart</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="549"/>
Expand Down
14 changes: 7 additions & 7 deletions resources/i18n/caesium_it_IT.ts
Expand Up @@ -595,37 +595,37 @@ Risparmiato: %4 (%5%)</translation>
<message>
<location filename="../../views/PreferencesDialog.ui" line="418"/>
<source>No action</source>
<translation type="unfinished"></translation>
<translation>Nessuna azione</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="423"/>
<source>Close the application</source>
<translation type="unfinished"></translation>
<translation>Chiudi l&apos;applicazione</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="428"/>
<source>Sleep</source>
<translation type="unfinished"></translation>
<translation>Sospendi</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="433"/>
<source>Shutdown</source>
<translation type="unfinished"></translation>
<translation>Spegni</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="438"/>
<source>Open output folder</source>
<translation type="unfinished"></translation>
<translation>Apri la cartella di destinazione</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="451"/>
<source>Perform an action after successful compression</source>
<translation type="unfinished"></translation>
<translation>Esegui un&apos;azione dopo una compressione</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="523"/>
<source>Restart</source>
<translation type="unfinished"></translation>
<translation>Riavvia</translation>
</message>
<message>
<location filename="../../views/PreferencesDialog.ui" line="549"/>
Expand Down

0 comments on commit 46db4dc

Please sign in to comment.