-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from Fs00/more-translations
More l10n improvements and add workflow to generate POT file
- Loading branch information
Showing
17 changed files
with
210 additions
and
233 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Generate translation template | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "*.md" | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
generate-pot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repo" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install gettext" | ||
run: | | ||
sudo apt update -qq | ||
sudo apt install -y gettext | ||
- name: "Generate POT file using xgettext" | ||
run: > | ||
find src -name *.cpp -o -name *.hpp -o -name *.h | | ||
xargs xgettext --from-code=utf-8 | ||
-k_ -kwxTRANSLATE -w 100 | ||
--check=space-ellipsis --omit-header | ||
-o cemu.pot | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: POT file | ||
path: ./cemu.pot | ||
if-no-files-found: error |
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
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
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
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
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
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
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
Oops, something went wrong.