-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for updating translations
- Loading branch information
1 parent
57f115a
commit d4bfd8e
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |