-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add matrix checker page, exercises x users per course (#351)
* feat: Add matrix checker page, exercises x users per course * dev: Add tool to update i18n * chore: Small formatting fixes
- Loading branch information
1 parent
bca9068
commit 1356ad2
Showing
19 changed files
with
644 additions
and
184 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
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,9 +1,18 @@ | ||
#!/bin/bash -x | ||
|
||
SCRIPT_FILE_PATH=$(readlink -f "${0}") | ||
SCRIPT_FOLDER=$(dirname "${SCRIPT_FILE_PATH}") | ||
MAIN_FOLDER="${SCRIPT_FOLDER}/.." | ||
original_dir="$(pwd)" | ||
|
||
cd "$(dirname "${0:-${BASH_SOURCE[0]}}")" || return | ||
cd .. | ||
|
||
|
||
if [ "${1}" = "update" ]; then | ||
echo "Updating translations" | ||
pybabel extract -F "lms/babel.cfg" -o "lms/lmsweb/translations/messages.pot" "lms" | ||
pybabel update -i "lms/lmsweb/translations/messages.pot" -d "lms/lmsweb/translations" | ||
fi | ||
|
||
echo "Compiling Flask Babel" | ||
pybabel compile -d "${MAIN_FOLDER}/lms/lmsweb/translations" | ||
pybabel compile -d "lms/lmsweb/translations" | ||
|
||
cd "$original_dir" || return |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
SOLUTIONS = '/view' | ||
STATUS = '/status' | ||
SUBMISSIONS = '/submissions' | ||
DOWNLOADS = '/download' | ||
SHARED = '/shared' | ||
GIT = '/git/<int:course_id>/<int:exercise_number>.git' |
Oops, something went wrong.