-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #6616 from janezd/translations
Add Slovenian translations and a workflow for checking them
- Loading branch information
Showing
3 changed files
with
15,225 additions
and
0 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,53 @@ | ||
name: Check translations | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
|
||
- name: Install Trubar | ||
run: | | ||
pip install trubar | ||
- name: Collect translations | ||
run: | | ||
cd i18n | ||
trubar collect -s ../Orange new.jaml | ||
trubar merge -u Obsolete.jaml si.jaml new.jaml | ||
trubar missing -o Missing.jaml new.jaml | ||
if [ ! -s Missing.jaml ] | ||
then | ||
rm Missing.jaml | ||
fi | ||
- name: Check translations | ||
run: | | ||
cd i18n | ||
for fn in Obsolete Missing | ||
do | ||
if [ -f $fn.jaml ] | ||
then | ||
echo "::group::$fn translations" | ||
cat $fn.jaml | ||
echo "::endgroup::" | ||
fi | ||
done | ||
trubar stat new.jaml | ||
if [ -f Missing.jaml ] || [ -f Obsolete.jaml ] | ||
then | ||
echo "Run 'trubar collect -s Orange i18n/si.jaml'" | ||
echo "and see the changes in the message file, i18n/si.jaml" | ||
exit 1 | ||
fi |
Oops, something went wrong.