Skip to content

Commit

Permalink
Add instructions for updating translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBeveridge authored May 6, 2024
1 parent 57f115a commit d4bfd8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions po/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Translating
To create a new translation of File Shredder, open POEdit and select `Create new translation from POT file`, and in the file selection dialog select the `com.github.ADBeveridge.Raider.pot` in the `po` directory. Once you have finished translation open a pull request from the forked repository to the source repository on the `develop` branch.
___

## New Translations
To create a new translation of File Shredder, open POEdit and select `Create new translation from POT file`, and in the file selection dialog select the `com.github.ADBeveridge.Raider.pot` in the `po` directory. Once you have finished translations open a pull request from the forked repository to the source repository on the `develop` branch.

## Updating Translations
Whenever you add or update a translation, please also update the source translation from source code changes with this command in the project's root directory:
```sh
xgettext --from-code=UTF-8 --add-comments --keyword=_ --keyword=C_:1c,2 --output=po/com.github.ADBeveridge.Raider.pot -f po/POTFILES
```
Then open your translation in POEdit and click `Update from POT File`, which is under the `Translation` menu. Retranslate and open a pull request on GitHub, and I should merge it in a few days.

Thank you for translating this project.

0 comments on commit d4bfd8e

Please sign in to comment.