mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
update translation.md
This commit is contained in:
parent
b52ba2a27e
commit
0cbf9debf6
@ -33,20 +33,20 @@
|
||||
|
||||
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.
|
||||
View a status of [all translations here](https://hosted.weblate.org/projects/losslesscut/losslesscut/). You are welcome to help translate the app in [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.
|
||||
Master language is English and i18n keys are the English strings.
|
||||
|
||||
## Testing translations locally
|
||||
|
||||
To test new weblate translations you made in the app itself, you need to:
|
||||
Because the Weblate PR with translation updates is not merged immediately, your changes made in Weblate will not appear automatically in the nightly build. If you want test new weblate translations you made in the app, 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/src/main/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/src/main/locales). In our example we will use `nb_NO` (Norwegian) with this path:
|
||||
You can find a list of the available [`localeCode`s here](https://github.com/mifi/lossless-cut/tree/master/src/main/locales). In our example we will use `nb_NO` (Norwegian 🇳🇴) with this path:
|
||||
```
|
||||
/Users/mifi/Desktop/translations/locales/nb_NO
|
||||
```
|
||||
@ -62,3 +62,8 @@ You can find a list of the available [`localeCode`s here](https://github.com/mif
|
||||
```
|
||||
|
||||
Now LosslessCut will use your language local file.
|
||||
|
||||
|
||||
## Weblate merge
|
||||
|
||||
Note to LosslessCut maintainers: Weblate [does not allow](https://github.com/WeblateOrg/weblate/issues/7081) any pushes to the weblate LosslessCut github repository (`https://hosted.weblate.org/git/losslesscut/losslesscut/`). This means if their repo becomes out of sync with this repo, the translations will be locked and the `master` branch here needs to be synced with their branch. This should normally not happen unless the weblate PR has been accidentally merged with rebase or squash.
|
||||
|
Loading…
Reference in New Issue
Block a user