Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
fa70c155
Commit
fa70c155
authored
Nov 14, 2018
by
Luko van der Maas
Browse files
Merge branch 'extra-ci-tests' into 'master'
Add extra CI codestyle tests See merge request
!1043
parents
ed7864e0
9e32235a
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fa70c155
...
...
@@ -22,7 +22,14 @@ codestyle:
script
:
-
tox -e flake8
# Check for obsolete translations in .po files (starting with `#~`).
-
cd website
-
grep --include="*.po" --files-with-matches --recursive "^#~" && exit 1 || echo "No obsolete translations found."
# Check for untranslated strings in .po files
-
empty_strings=$(sed '$a\\' **/locale/nl/LC_MESSAGES/django.po | tac | sed '/^$/N;/\nmsgstr ""$/,/^msgid/!d' | tac)
-
empty_strings+=$(sed '$a\\' locale/nl/LC_MESSAGES/django.po | tac | sed '/^$/N;/\nmsgstr ""$/,/^msgid/!d' | tac)
-
if [[ $empty_strings ]]; then echo $empty_strings && exit 1; else echo "No untranslated strings found."; fi
# Check for fuzzy translations in .po files
-
grep --include="*.po" --files-with-matches --recursive "#, fuzzy" && exit 1 || echo "No fuzzy translations found."
.djangotest
:
&djangotest
stage
:
test
...
...
website/education/locale/nl/LC_MESSAGES/django.po
View file @
fa70c155
...
...
@@ -293,12 +293,6 @@ msgstr "alle vakken"
msgid "Name"
msgstr "Naam"
#: templates/education/courses.html
#, fuzzy
#| msgid "categories"
msgid "Categories"
msgstr "categorieën"
#: templates/education/courses.html
msgid "Available documents"
msgstr "Beschikbare documenten"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment