forked from biolab/orange3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Slovenian translationa and github workflow for checking it
- Loading branch information
Showing
2 changed files
with
15,189 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,39 @@ | ||
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@v1 | ||
|
||
- name: Install Trubar | ||
run: | | ||
pip install trubar | ||
- name: Collect translations | ||
trubar collect -s Orange -r i18n/Obsolete.jaml i18n/si.jaml | ||
trubar missing -o i18n/Missing.jaml i18n/si.jaml | ||
|
||
- name: Check translations | ||
run: | | ||
for fn in Obsolete Missing | ||
do | ||
if [ -f i18n/$fn.jaml ] | ||
then | ||
echo "::$fn translations" | ||
cat i18n/$fn.jaml | ||
fi | ||
done | ||
trubar stat i18n/si.jaml | grep -q "Untranslated.* 0.0%" | ||
! test -f i18n/Missing.jaml || ! test -f i18n/Obsolete.jaml |
Oops, something went wrong.