From 8bbc7e75c420b7593fd6a158a8638cf75ee2e060 Mon Sep 17 00:00:00 2001 From: edisionnano Date: Tue, 20 Aug 2024 14:45:56 +0300 Subject: [PATCH] Add translation instructions --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 4d791a0..85d5e67 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,26 @@ This will create a `QDiskInfo` binary on the build directory but you can also in sudo make install ``` +## Localisation +Currently, QDiskInfo has support for the following languages: +- 🌐 English (C) +- 🇬🇷 Greek (el_GR) +- 🇪🇸 Spanish (es_ES) +- 🇧🇷 Brazilian Portuguese (pt_BR) +- 🇨🇳 Simplified Chinese (zh_CN) + +You can translate QDiskInfo to your language very easily using [Crowdin](https://crowdin.com/project/qdiskinfo). If your language isn't available on Crowdin, feel free to create a new issue. +

Alternatively you can copy the qdiskinfo_en_US.ts, which can be found inside the translations folder, to the locale you want. For example to qdiskinfo_de_DE.ts for German. Then you can use the QT Linguist application to translate the strings, marking every finished one with a tick. Once you are finished you can compile the .ts file to a .qm file by running this command from the root of the project +```sh +lrelease translations/qdiskinfo_de_DE.ts -qm translations/qdiskinfo_de_DE.qm +``` +Once you do that, add the .qm file on `src/resources.qrc` and compile the project. +
If your system language differs from the one you are translating to, you can use +```sh +LC_ALL=de_DE.UTF-8 ./QDiskInfo +``` +to force the app to use the language of your choice. + ## Using CrystalDiskInfo Anime Themes The process is similar to the one above with a few changes:
First you must download the edition of CrystalDiskInfo you want (Aoi for example) in ZIP format from [here](https://crystalmark.info/en/download/), from this archive you shall copy the light and dark backgrounds as well as the good, caution, bad, unknown icons to dist/theme with the same name as the templates there.