From 27a47797369e4b16d5383625e8151f89bddc5c19 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 19 Mar 2023 18:53:08 +0800 Subject: [PATCH] Improve translations page --- README.md | 4 ++-- translation.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ translations.md | 33 -------------------------- 3 files changed, 65 insertions(+), 35 deletions(-) create mode 100644 translation.md delete mode 100644 translations.md diff --git a/README.md b/README.md index b3b6afc6..36b7b466 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Unsupported files can still be converted to a supported format/codec from the `F ## [Contributing](developer-notes.md) -## [Translations](translations.md) +## [Translation](translation.md) If you have any problem or question, [please read this](issues.md) before creating an issue. I try to answer most common questions here. @@ -194,7 +194,7 @@ This project is maintained by me alone. The project will always remain free and - [Lottie animation](https://lottiefiles.com/7077-magic-flow) - Thanks to Adi Abinun for his UI sketch work, inspiration and guidance - [Thanks to everyone for supporting](https://mifi.no/thanks/) my open source work 🙌 -- Thanks to translators who helped translate the app. [You can too!](translations.md) +- Thanks to translators who helped translate the app. [You can too!](translation.md) ## More software diff --git a/translation.md b/translation.md new file mode 100644 index 00000000..858a8c06 --- /dev/null +++ b/translation.md @@ -0,0 +1,63 @@ +# Translation ![](https://hosted.weblate.org/widgets/losslesscut/-/losslesscut/svg-badge.svg) + +![](https://hosted.weblate.org/widgets/losslesscut/zh_Hans/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/cs/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/sl/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/it/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/ko/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/de/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/nl/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/fi/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/zh_Hant/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/et/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/fr/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/he/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/hu/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/id/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/lt/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/nb_NO/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/nn/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/fa/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/pl/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/pt/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/pt_BR/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/ro/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/ru/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/sr/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/es/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/sv/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/tr/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/uk/losslesscut/svg-badge.svg) +![](https://hosted.weblate.org/widgets/losslesscut/vi/losslesscut/svg-badge.svg) + +Thanks to everyone who helped translate the app! 🙌 + +View a status of [all translations here](https://hosted.weblate.org/projects/losslesscut/losslesscut/). You are welcome to help translate the app at [Weblate](https://hosted.weblate.org/projects/losslesscut/losslesscut/). Weblate will automatically push translations as a Pull Request in this repo, but this PR is not merged immediately by maintainers. + +Master language is English. + +## Testing translations locally + +To test new weblate translations you made in the app itself, you need to: +1. Download the translation for your language from Weblate: **Files -> Download translation** +2. Rename the downloaded `.json` file to: `translation.json` +3. Create a [folder structure](https://github.com/mifi/lossless-cut/tree/master/public/locales) somewhere on your computer that looks like this: +``` +translations/locales/localeCode +``` +You can find a list of the available [`localeCode`s here](https://github.com/mifi/lossless-cut/tree/master/public/locales). In our example we will use `nb_NO` (Norwegian) with this path: +``` +/Users/mifi/Desktop/translations/locales/nb_NO +``` + +4. Now move your `translation.json` file into the folder: +``` +/Users/mifi/Desktop/translations/locales/nb_NO/translation.json +``` + +5. Now run LosslessCut from the [command line](cli.md), with the special command line argument `--locales-path`. Use the path to the **folder containing the locales folder**, e.g.: +```bash +./LosslessCut --locales-path /Users/mifi/Desktop/translations +``` + +Now LosslessCut will use your language local file. diff --git a/translations.md b/translations.md deleted file mode 100644 index e0b66655..00000000 --- a/translations.md +++ /dev/null @@ -1,33 +0,0 @@ -# Translations - -Thanks to everyone who helped translate the app! - -You are welcome to help translate the app at [Weblate](https://hosted.weblate.org/projects/losslesscut/losslesscut/). Weblate will automatically push translations as a Pull Request in this repo, but this PR is not merged immediately by maintainers. - -Master language is english. - -## Testing translations locally - -To test new weblate translations you made in the app itself, you need to: -1. Download the translation for your language from Weblate: **Files -> Download translation** -2. Rename the downloaded `.json` file to: `translation.json` -3. Create a [folder structure](https://github.com/mifi/lossless-cut/tree/master/public/locales) somewhere on your computer that looks like this: -``` -translations/locales/localeCode -``` -You can find a list of the available [`localeCode`s here](https://github.com/mifi/lossless-cut/tree/master/public/locales). In our example we will use `nb_NO` (Norwegian) with this path: -``` -/Users/mifi/Desktop/translations/locales/nb_NO -``` - -4. Now move your `translation.json` file into the folder: -``` -/Users/mifi/Desktop/translations/locales/nb_NO/translation.json -``` - -5. Now run LosslessCut from the [command line](cli.md), with the special command line argument `--locales-path`. Use the path to the **folder containing the locales folder**, e.g.: -```bash -./LosslessCut --locales-path /Users/mifi/Desktop/translations -``` - -Now LosslessCut will use your language file.