From a6064a4f03318a945f989d71e2782edd05c8561e Mon Sep 17 00:00:00 2001 From: edx-transifex-bot Date: Sat, 4 Mar 2023 00:20:18 +0000 Subject: [PATCH 01/21] chore: add extracted translation source files from course-discovery --- .../extract-translation-source-files.yml | 262 +++++++++--------- Makefile | 1 + transifex.yml | 23 ++ 3 files changed, 158 insertions(+), 128 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 77435c8417a..28e44c4125c 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -5,9 +5,7 @@ name: Extract Translation Source Files on: - workflow_dispatch: # by request - schedule: - - cron: '0 0 * * *' # every day at midnight + - pull_request jobs: setup-branch: @@ -39,9 +37,12 @@ jobs: max-parallel: 1 matrix: repo: - - course-discovery - - credentials - - RecommenderXBlock +# - course-discovery +# - credentials +# - RecommenderXBlock + - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest continue-on-error: true needs: [setup-branch] @@ -58,11 +59,12 @@ jobs: run: sudo apt install -y gettext # Clones the repository - - name: clone openedx/${{ matrix.repo }} + - name: clone Zeit-Labs/${{ matrix.repo[0] }} uses: actions/checkout@v3 with: - repository: openedx/${{ matrix.repo }} - path: translations/${{ matrix.repo }} + repository: Zeit-Labs/${{ matrix.repo[0] }} + ref: ${{ matrix.repo[1] }} + path: translations/${{ matrix.repo[0] }} # Sets up Python - name: setup python @@ -77,7 +79,7 @@ jobs: # Extracts the translation source files - name: extract translation source files run: | - cd translations/${{ matrix.repo }} + cd translations/${{ matrix.repo[0] }} make extract_translations # git adds only the translation source files, found in conf/locale/en @@ -87,12 +89,12 @@ jobs: # set identity git config --global user.email "translations-bot@openedx.org" git config --global user.name "edx-transifex-bot" - # Change directory to translations/${{ matrix.repo }} - cd translations/${{ matrix.repo }} + # Change directory to translations/${{ matrix.repo[0] }} + cd translations/${{ matrix.repo[0] }} # finds the directory containing the english locale usually located in # */*/conf/locale/en EN_DIR=$(find . -type d -regex ".+conf\/locale\/en$") - # remove translations/${{ matrix.repo }}/.git so we don't commit a submodule + # remove translations/${{ matrix.repo[0] }}/.git so we don't commit a submodule rm -rf .git # finds the django.po and djangojs.po files generated by make # extract_translations into EN_DIR and adds them @@ -107,112 +109,115 @@ jobs: if: "${{ env.GIT_STATUS > 0 }}" run: | # commit the changes - git commit -m "chore: add extracted translation source files from ${{ matrix.repo }}" + git commit -m "chore: add extracted translation source files from ${{ matrix.repo[0] }}" # push changes to branch git push - js-translations: - strategy: - # using max-parallel to avoid git push/pull issues when running in parallel - max-parallel: 1 - matrix: - # repos missing extract_translations target in makefile: - # * frontend-app-admin-portal - # * frontend-app-publisher - # * frontend-platform - # * frontend-enterprise? - # * frontend-app-learner-portal-enterprise - # * frontend-build? - # * frontend-app-learner-portal-programs - # * frontend-component-cookie-policy-banner - # * frontend-app-programs-dashboard - # repos with errors running extract_translations - # * frontend-template-application - repo: - - frontend-app-account - - frontend-app-authn - - frontend-app-communications - - frontend-app-course-authoring - - frontend-app-discussions - - frontend-app-ecommerce - - frontend-app-enterprise-public-catalog - - frontend-app-gradebook - - frontend-app-learner-dashboard - - frontend-app-learner-record - - frontend-app-learning - - frontend-app-library-authoring - - frontend-app-ora-grading - - frontend-app-payment - - frontend-app-profile - - frontend-app-program-console - - frontend-app-support-tools - - frontend-component-footer - - frontend-component-header - - frontend-lib-content-components - - frontend-lib-special-exams - - paragon - - studio-frontend - runs-on: ubuntu-latest - continue-on-error: true - needs: [setup-branch, python-translations] - steps: - # Clones the openedx-translations repo - - name: clone openedx/openedx-translations - uses: actions/checkout@v3 - with: - ref: ${{ needs.setup-branch.outputs.branch }} - - # Clones the repository - - name: clone openedx/${{ matrix.repo }} - uses: actions/checkout@v3 - with: - repository: openedx/${{ matrix.repo }} - path: translations/${{ matrix.repo }} - # Sets up node/npm - - name: setup node - uses: actions/setup-node@v3 - with: - node-version: 16 +# js-translations: +# strategy: +# # using max-parallel to avoid git push/pull issues when running in parallel +# max-parallel: 1 +# matrix: +# # repos missing extract_translations target in makefile: +# # * frontend-app-admin-portal +# # * frontend-app-publisher +# # * frontend-platform +# # * frontend-enterprise? +# # * frontend-app-learner-portal-enterprise +# # * frontend-build? +# # * frontend-app-learner-portal-programs +# # * frontend-component-cookie-policy-banner +# # * frontend-app-programs-dashboard +# # studio-frontend has a different file structure +# # repos with errors running extract_translations +# # * frontend-template-application +# repo: +# - studio-frontend +## - frontend-app-account +## - frontend-app-authn +## - frontend-app-communications +## - frontend-app-course-authoring +## - frontend-app-discussions +## - frontend-app-ecommerce +## - frontend-app-enterprise-public-catalog +## - frontend-app-gradebook +## - frontend-app-learner-dashboard +## - frontend-app-learner-record +## - frontend-app-learning +## - frontend-app-library-authoring +## - frontend-app-ora-grading +## - frontend-app-payment +## - frontend-app-profile +## - frontend-app-program-console +## - frontend-app-support-tools +## - frontend-component-footer +## - frontend-component-header +## - paragon +## - studio-frontend +# runs-on: ubuntu-latest +# continue-on-error: true +# needs: [setup-branch, python-translations] +# steps: +# # Clones the openedx-translations repo +# - name: clone openedx/openedx-translations +# uses: actions/checkout@v3 +# with: +# ref: ${{ needs.setup-branch.outputs.branch }} +# +# # Clones the repository +# - name: clone openedx/${{ matrix.repo }} +# uses: actions/checkout@v3 +# with: +# repository: openedx/${{ matrix.repo }} +# path: translations/${{ matrix.repo }} +# +# # Sets up node/npm +# - name: setup node +# uses: actions/setup-node@v3 +# with: +# node-version: 16 +# +# # Extracts the translation source files +# - name: extract translation source files +# run: | +# cd translations/${{ matrix.repo }} +# make extract_translations +# # git adds only the translation source files, found in src/i18n/transifex_input.json +# - name: git add the translation source files +# id: add-sources +# run: | +# # set identity +# git config --global user.email "translations-bot@openedx.org" +# git config --global user.name "edx-transifex-bot" +# # Change directory to translations/${{ matrix.repo }} +# cd translations/${{ matrix.repo }} +# # remove translations/${{ matrix.repo }}/.git so we don't commit a submodule +# rm -rf .git +# # find transifex_input.json +# TRANSIFEX_JSON_PATH=$(find . -name 'transifex_input.json') +# # stage the transifex_input.json file generated by make +# git add $TRANSIFEX_JSON_PATH -f -v +# # Check the git status of the translation source files +# echo "GIT_STATUS=$(git status $TRANSIFEX_JSON_PATH -s | wc -l)" >> $GITHUB_ENV +# # Attempts to commit the translation source files if there is a difference +# - name: git commit the translation source files +# if: "${{ env.GIT_STATUS > 0 }}" +# run: | +# # commit the changes +# git commit -m "chore: add extracted translation source files from ${{ matrix.repo }}" +# # push changes to branch +# git push - # Extracts the translation source files - - name: extract translation source files - run: | - cd translations/${{ matrix.repo }} - make extract_translations - # git adds only the translation source files, found in src/i18n/transifex_input.json - - name: git add the translation source files - id: add-sources - run: | - # set identity - git config --global user.email "translations-bot@openedx.org" - git config --global user.name "edx-transifex-bot" - # Change directory to translations/${{ matrix.repo }} - cd translations/${{ matrix.repo }} - # remove translations/${{ matrix.repo }}/.git so we don't commit a submodule - rm -rf .git - # find transifex_input.json - TRANSIFEX_JSON_PATH=$(find . -name 'transifex_input.json') - # stage the transifex_input.json file generated by make - git add $TRANSIFEX_JSON_PATH -f -v - # Check the git status of the translation source files - echo "GIT_STATUS=$(git status $TRANSIFEX_JSON_PATH -s | wc -l)" >> $GITHUB_ENV - # Attempts to commit the translation source files if there is a difference - - name: git commit the translation source files - if: "${{ env.GIT_STATUS > 0 }}" - run: | - # commit the changes - git commit -m "chore: add extracted translation source files from ${{ matrix.repo }}" - # push changes to branch - git push merge-translations: runs-on: ubuntu-latest - needs: [setup-branch, python-translations, js-translations] +# needs: [setup-branch, python-translations, js-translations] + needs: [setup-branch, python-translations] steps: # Clones the openedx-translations repo on the automated/extract-translation-source-files-# branch - - name: clone openedx/openedx-translations + - name: clone Zeit-Labs/openedx-translations uses: actions/checkout@v3 with: ref: ${{ needs.setup-branch.outputs.branch }} @@ -222,25 +227,26 @@ jobs: - name: create pull request id: createPR env: - # This token requires Write access to the openedx-translations repo - GITHUB_TOKEN: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }} +# # This token requires Write access to the openedx-translations repo +# GITHUB_TOKEN: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} run: | echo "COMMIT_COUNT=$(git rev-list HEAD ^origin/main | wc -l)" >> $GITHUB_ENV - echo "PR_URL=$(gh pr create --title 'chore: add updated translation source files' --body 'This PR is auto-generated by [extract-translation-source-files](https://github.com/openedx/openedx-translations/blob/master/.github/workflows/extract-translation-source-files.yml).')" >> $GITHUB_ENV - - # Merges the pull request - - name: merge pull request - id: mergePR - env: - # This token requires Write access to the openedx-translations repo - GITHUB_TOKEN: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }} - if: "${{ env.COMMIT_COUNT > 0 }}" - run: gh pr merge ${{ env.PR_URL }} --merge --auto - - # Notify that branch did not merge because there were no new commits in the branch - # and delete the branch now that it is unnecessary - - name: notify of empty branch and delete branch - if: (steps.mergePR.outcome == 'skipped') - run: | - echo "The branch was not merged because the branch had 0 commits." - git push origin -d ${{ needs.setup-branch.outputs.branch }} + echo "PR_URL=$(gh pr create -d --title 'chore: add updated translation source files' --body 'This PR is auto-generated by [extract-translation-source-files](https://github.com/openedx/openedx-translations/blob/master/.github/workflows/extract-translation-source-files.yml).')" >> $GITHUB_ENV + +# # Merges the pull request +# - name: merge pull request +# id: mergePR +# env: +# # This token requires Write access to the openedx-translations repo +# GITHUB_TOKEN: ${{ secrets.EDX_TRANSIFEX_BOT_GITHUB_TOKEN }} +# if: "${{ env.COMMIT_COUNT > 0 }}" +# run: gh pr merge ${{ env.PR_URL }} --merge --auto +# +# # Notify that branch did not merge because there were no new commits in the branch +# # and delete the branch now that it is unnecessary +# - name: notify of empty branch and delete branch +# if: (steps.mergePR.outcome == 'skipped') +# run: | +# echo "The branch was not merged because the branch had 0 commits." +# git push origin -d ${{ needs.setup-branch.outputs.branch }} diff --git a/Makefile b/Makefile index 5bf7dcffc99..15652bce76e 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,4 @@ upgrade: piptools ## update the requirements/*.txt files with the latest packag pip install -qr requirements/pip.txt pip install -qr requirements/pip_tools.txt pip-compile --rebuild --upgrade -o requirements/translations.txt requirements/translations.in + diff --git a/transifex.yml b/transifex.yml index 335e2c851c5..565a3853480 100644 --- a/transifex.yml +++ b/transifex.yml @@ -1,5 +1,12 @@ git: filters: + # xblock-drag-and-drop-v2 + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ + translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' # course-discovery - filter_type: dir @@ -185,3 +192,19 @@ git: source_language: en source_file: translations/studio-frontend/src/i18n/transifex_input.json translation_files_expression: 'translations/studio-frontend/src/i18n/messages/.json' + + # xblock-submit-and-compare + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-submit-and-compare/submit_and_compare/conf/locale/en/ + translation_files_expression: 'translations/xblock-submit-and-compare/submit_and_compare/conf/locale//' + + # xblock-qualtrics-survey + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-qualtrics-survey/qualtricssurvey/conf/locale/en/ + translation_files_expression: 'translations/xblock-qualtrics-survey/qualtricssurvey/conf/locale//' From 4abf44bf4ae5dfc254124f5348572d80fc39dbca Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 18 Apr 2023 09:04:54 +0300 Subject: [PATCH 02/21] test drag and drop --- .github/workflows/extract-translation-source-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 28e44c4125c..45cbe32521c 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -40,7 +40,7 @@ jobs: # - course-discovery # - credentials # - RecommenderXBlock - - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-drag-and-drop-v2', 'shadinaif/temp'] - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest From 9ac2b9cca9f57421979b1d64e2b08e69cc8f87bc Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 18 Apr 2023 09:07:38 +0300 Subject: [PATCH 03/21] test submit xblock --- .github/workflows/extract-translation-source-files.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 45cbe32521c..5222c55b54e 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -40,8 +40,8 @@ jobs: # - course-discovery # - credentials # - RecommenderXBlock - - ['xblock-drag-and-drop-v2', 'shadinaif/temp'] - - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-submit-and-compare', 'shadinaif/temp'] - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest continue-on-error: true From f1029502a03bae635acdf1ea9950a9c7a9737f72 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 18 Apr 2023 09:16:47 +0300 Subject: [PATCH 04/21] add -f --- .github/workflows/extract-translation-source-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 5222c55b54e..1fba3e48940 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -100,7 +100,7 @@ jobs: # extract_translations into EN_DIR and adds them DJANGO_PATH=$(find $EN_DIR -name 'django.po') DJANGOJS_PATH=$(find $EN_DIR -name 'djangojs.po') - git add $DJANGO_PATH $DJANGOJS_PATH -v + git add $DJANGO_PATH $DJANGOJS_PATH -f -v # Check the git statuses of the translation source files echo "GIT_STATUS=$(git status $DJANGO_PATH $DJANGOJS_PATH -s | wc -l)" >> $GITHUB_ENV From 22f7c257118a01ebfbd7ed9f8cd0e5629768edea Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 18 Apr 2023 17:34:25 +0300 Subject: [PATCH 05/21] Add DoneXBlock --- .../extract-translation-source-files.yml | 7 +++--- transifex.yml | 24 ++++++++++++------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 1fba3e48940..fc48e4387ba 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -39,9 +39,10 @@ jobs: repo: # - course-discovery # - credentials -# - RecommenderXBlock - - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-submit-and-compare', 'shadinaif/temp'] + - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] +# - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest continue-on-error: true diff --git a/transifex.yml b/transifex.yml index 565a3853480..a37f17fa8ed 100644 --- a/transifex.yml +++ b/transifex.yml @@ -1,13 +1,5 @@ git: filters: - # xblock-drag-and-drop-v2 - - filter_type: dir - file_format: PO - source_file_extension: po - source_language: en - source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ - translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' - # course-discovery - filter_type: dir file_format: PO @@ -24,6 +16,14 @@ git: source_file_dir: translations/credentials/credentials/conf/locale/en/ translation_files_expression: 'translations/credentials/credentials/conf/locale//' + # DoneXBlock + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/DoneXBlock/done/conf/locale/en/ + translation_files_expression: 'translations/DoneXBlock/done/conf/locale//' + # frontend-app-account - filter_type: file file_format: KEYVALUEJSON @@ -193,6 +193,14 @@ git: source_file: translations/studio-frontend/src/i18n/transifex_input.json translation_files_expression: 'translations/studio-frontend/src/i18n/messages/.json' + # xblock-drag-and-drop-v2 + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ + translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' + # xblock-submit-and-compare - filter_type: dir file_format: PO From 683e7be39cbbaacb43a7a5606f2daa930ab7554b Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 20 Apr 2023 14:58:24 +0300 Subject: [PATCH 06/21] Stop linting CI --- .github/workflows/commitlint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index fec11d6c259..1931fc70529 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -3,7 +3,10 @@ name: Lint Commit Messages on: - - pull_request +# - pull_request + push: + branches: + - dummy jobs: commitlint: From 68488d2f231fd0882a9a690305e28c46f920f59a Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Wed, 26 Apr 2023 18:52:16 +0300 Subject: [PATCH 07/21] add completion --- .github/workflows/extract-translation-source-files.yml | 5 +++-- transifex.yml | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index fc48e4387ba..0898877f04b 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -39,11 +39,12 @@ jobs: repo: # - course-discovery # - credentials - - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] + - ['completion', 'shadinaif/FC-0012-OEP-58'] +# - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest continue-on-error: true needs: [setup-branch] diff --git a/transifex.yml b/transifex.yml index a37f17fa8ed..0bdf9ba729a 100644 --- a/transifex.yml +++ b/transifex.yml @@ -1,5 +1,14 @@ git: filters: + + # completion + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/completion/completion/conf/locale/en/ + translation_files_expression: 'translations/completion/completion/conf/locale//' + # course-discovery - filter_type: dir file_format: PO From 01b54919abd31ff76e8c1dd6da3eecbb559c7d15 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 27 Apr 2023 13:36:52 +0300 Subject: [PATCH 08/21] Add edx-ora2 --- .github/workflows/extract-translation-source-files.yml | 1 + transifex.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 0898877f04b..1835b40eb7c 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -40,6 +40,7 @@ jobs: # - course-discovery # - credentials - ['completion', 'shadinaif/FC-0012-OEP-58'] + - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index 0bdf9ba729a..f3fb0c06cb6 100644 --- a/transifex.yml +++ b/transifex.yml @@ -33,6 +33,14 @@ git: source_file_dir: translations/DoneXBlock/done/conf/locale/en/ translation_files_expression: 'translations/DoneXBlock/done/conf/locale//' + # edx-ora2 + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/edx-ora2/openassessment/conf/locale/en/ + translation_files_expression: 'translations/edx-ora2/openassessment/conf/locale//' + # frontend-app-account - filter_type: file file_format: KEYVALUEJSON From a682aebc74ce6ed9f2cd751efbf4e91f18dc5e37 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 27 Apr 2023 14:10:12 +0300 Subject: [PATCH 09/21] Add edx-proctoring --- .github/workflows/extract-translation-source-files.yml | 1 + transifex.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 1835b40eb7c..b1b6ffe7280 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -41,6 +41,7 @@ jobs: # - credentials - ['completion', 'shadinaif/FC-0012-OEP-58'] - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] + - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index f3fb0c06cb6..20018f4188c 100644 --- a/transifex.yml +++ b/transifex.yml @@ -41,6 +41,14 @@ git: source_file_dir: translations/edx-ora2/openassessment/conf/locale/en/ translation_files_expression: 'translations/edx-ora2/openassessment/conf/locale//' + # edx-proctoring + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/edx-proctoring/edx_proctoring/conf/locale/en/ + translation_files_expression: 'translations/edx-proctoring/edx_proctoring/conf/locale//' + # frontend-app-account - filter_type: file file_format: KEYVALUEJSON From 4ffb8c4f5a0d6387cd4425fc329b15ee8ce40cc7 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 27 Apr 2023 17:39:54 +0300 Subject: [PATCH 10/21] add edx-ace --- .github/workflows/extract-translation-source-files.yml | 9 +++++---- transifex.yml | 8 ++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index b1b6ffe7280..36c0b91c85f 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -39,13 +39,14 @@ jobs: repo: # - course-discovery # - credentials - - ['completion', 'shadinaif/FC-0012-OEP-58'] - - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] - - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] +# - ['completion', 'shadinaif/FC-0012-OEP-58'] + - ['edx-ace', 'shadinaif/FC-0012-OEP-58'] +# - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] +# - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest continue-on-error: true diff --git a/transifex.yml b/transifex.yml index 20018f4188c..d6114c6598f 100644 --- a/transifex.yml +++ b/transifex.yml @@ -33,6 +33,14 @@ git: source_file_dir: translations/DoneXBlock/done/conf/locale/en/ translation_files_expression: 'translations/DoneXBlock/done/conf/locale//' + # edx-ace + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/edx-ace/edx_ace/conf/locale/en/ + translation_files_expression: 'translations/edx-ace/edx_ace/conf/locale//' + # edx-ora2 - filter_type: dir file_format: PO From 69c61f82965136a337c7aacafdb21f2d63fe1d4f Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 27 Apr 2023 18:07:29 +0300 Subject: [PATCH 11/21] Add edx-bulk-grades --- .github/workflows/extract-translation-source-files.yml | 1 + transifex.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 36c0b91c85f..c3844195489 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -41,6 +41,7 @@ jobs: # - credentials # - ['completion', 'shadinaif/FC-0012-OEP-58'] - ['edx-ace', 'shadinaif/FC-0012-OEP-58'] + - ['edx-bulk-grades', 'shadinaif/FC-0012-OEP-58'] # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index d6114c6598f..07cc0d86b78 100644 --- a/transifex.yml +++ b/transifex.yml @@ -41,6 +41,14 @@ git: source_file_dir: translations/edx-ace/edx_ace/conf/locale/en/ translation_files_expression: 'translations/edx-ace/edx_ace/conf/locale//' + # edx-bulk-grades + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/edx-bulk-grades/bulk_grades/conf/locale/en/ + translation_files_expression: 'translations/edx-bulk-grades/bulk_grades/conf/locale//' + # edx-ora2 - filter_type: dir file_format: PO From 806764221b3536952e913c47dd79f5e7a340bc42 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 30 Apr 2023 16:25:46 +0300 Subject: [PATCH 12/21] feat: Add xblock-adventure to the translation pipeline This PR needs https://github.com/openedx/xblock-adventure/pull/54 before it's merged. Refs: FC-0012 OEP-58 --- .github/workflows/extract-translation-source-files.yml | 5 +++-- transifex.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index c3844195489..91e92248cc1 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -40,12 +40,13 @@ jobs: # - course-discovery # - credentials # - ['completion', 'shadinaif/FC-0012-OEP-58'] - - ['edx-ace', 'shadinaif/FC-0012-OEP-58'] - - ['edx-bulk-grades', 'shadinaif/FC-0012-OEP-58'] +# - ['edx-ace', 'shadinaif/FC-0012-OEP-58'] +# - ['edx-bulk-grades', 'shadinaif/FC-0012-OEP-58'] # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index 07cc0d86b78..4e9d5e3669d 100644 --- a/transifex.yml +++ b/transifex.yml @@ -234,6 +234,14 @@ git: source_file: translations/studio-frontend/src/i18n/transifex_input.json translation_files_expression: 'translations/studio-frontend/src/i18n/messages/.json' + # xblock-adventure + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-adventure/adventure/conf/locale/en/ + translation_files_expression: 'translations/xblock-adventure/adventure/conf/locale//' + # xblock-drag-and-drop-v2 - filter_type: dir file_format: PO From 698b79bf9dc4fc81b0ad4023fd41fb77d48817d3 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Tue, 9 May 2023 10:41:17 +0300 Subject: [PATCH 13/21] Add xblock-free-text-response --- .github/workflows/extract-translation-source-files.yml | 3 ++- transifex.yml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 91e92248cc1..28b6524cde1 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -46,8 +46,9 @@ jobs: # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest diff --git a/transifex.yml b/transifex.yml index 4e9d5e3669d..32396c73879 100644 --- a/transifex.yml +++ b/transifex.yml @@ -250,6 +250,14 @@ git: source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' + # xblock-free-text-response + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-free-text-response/freetextresponse/conf/locale/en/ + translation_files_expression: 'translations/xblock-free-text-response/freetextresponse/conf/locale//' + # xblock-submit-and-compare - filter_type: dir file_format: PO From d395c8b737e14862e84c8fba1656f4bf8d5c39e7 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Thu, 11 May 2023 21:30:22 +0300 Subject: [PATCH 14/21] Check message compilation --- .github/workflows/extract-translation-source-files.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 28b6524cde1..e212b1ed494 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -45,10 +45,10 @@ jobs: # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] -# - ['RecommenderXBlock', 'shadinaif/FC-0012-OEP-58'] + - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] # - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest @@ -90,6 +90,12 @@ jobs: cd translations/${{ matrix.repo[0] }} make extract_translations + # Verify compilation of translation source files + - name: verify compilation of translation source files + run: | + cd translations/${{ matrix.repo[0] }} + django-admin compilemessages --locale en + # git adds only the translation source files, found in conf/locale/en - name: git add the translation source files id: add-sources From a4a1e09c41ec24d40a164c5ccb7ba52dd424ef71 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 14 May 2023 15:24:59 +0300 Subject: [PATCH 15/21] Add xblock-google-drive --- .github/workflows/extract-translation-source-files.yml | 1 + transifex.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index e212b1ed494..1b748e378e9 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -48,6 +48,7 @@ jobs: - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] # - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-google-drive', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index 32396c73879..89a3764a59c 100644 --- a/transifex.yml +++ b/transifex.yml @@ -242,6 +242,14 @@ git: source_file_dir: translations/xblock-adventure/adventure/conf/locale/en/ translation_files_expression: 'translations/xblock-adventure/adventure/conf/locale//' + # xblock-google-drive + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-google-drive/google_drive/conf/locale/en/ + translation_files_expression: 'translations/xblock-google-drive/google_drive/conf/locale//' + # xblock-drag-and-drop-v2 - filter_type: dir file_format: PO From 79eb1d643735a6fb43cad019632c08140cdbb524 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 14 May 2023 16:43:00 +0300 Subject: [PATCH 16/21] Add xblock-image-modal --- .../extract-translation-source-files.yml | 5 +++-- transifex.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 1b748e378e9..0fb06aa2cd2 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -45,11 +45,12 @@ jobs: # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] - - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] +# - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] # - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-google-drive', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-google-drive', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-image-modal', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest diff --git a/transifex.yml b/transifex.yml index 89a3764a59c..77f3af2bc1c 100644 --- a/transifex.yml +++ b/transifex.yml @@ -258,6 +258,14 @@ git: source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' + # xblock-image-modal + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-image-modal/imagemodal/conf/locale/en/ + translation_files_expression: 'translations/xblock-image-modal/imagemodal/conf/locale//' + # xblock-free-text-response - filter_type: dir file_format: PO @@ -266,6 +274,14 @@ git: source_file_dir: translations/xblock-free-text-response/freetextresponse/conf/locale/en/ translation_files_expression: 'translations/xblock-free-text-response/freetextresponse/conf/locale//' + # xblock-lti-consumer + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-lti-consumer/lti_consumer/conf/locale/en/ + translation_files_expression: 'translationsxblock-lti-consumer/lti_consumer/conf/locale//' + # xblock-submit-and-compare - filter_type: dir file_format: PO From f76d0eb6992e5258ed06343a2ecbab4cf59a9797 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 14 May 2023 18:05:27 +0300 Subject: [PATCH 17/21] Add xblock-image-explorer --- .github/workflows/extract-translation-source-files.yml | 1 + transifex.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 0fb06aa2cd2..e7a149ba178 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -51,6 +51,7 @@ jobs: # - ['xblock-google-drive', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] - ['xblock-image-modal', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-image-explorer', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest diff --git a/transifex.yml b/transifex.yml index 77f3af2bc1c..bb013516c94 100644 --- a/transifex.yml +++ b/transifex.yml @@ -258,6 +258,14 @@ git: source_file_dir: translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale/en/ translation_files_expression: 'translations/xblock-drag-and-drop-v2/drag_and_drop_v2/conf/locale//' + # xblock-image-explorer + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-image-explorer/image_explorer/conf/locale/en/ + translation_files_expression: 'translations/xblock-image-explorer/image_explorer/conf/locale//' + # xblock-image-modal - filter_type: dir file_format: PO From 28c32157a9a638a4444f854165f12b685a5ad85c Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 28 May 2023 06:44:19 +0300 Subject: [PATCH 18/21] Add FeedbackXBlock to the translation pipeline --- .github/workflows/extract-translation-source-files.yml | 5 +++-- transifex.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index e7a149ba178..73c3513437a 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -45,13 +45,14 @@ jobs: # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] + - ['FeedbackXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] # - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-google-drive', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-image-modal', 'shadinaif/FC-0012-OEP-58'] - - ['xblock-image-explorer', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-image-modal', 'shadinaif/FC-0012-OEP-58'] +# - ['xblock-image-explorer', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest diff --git a/transifex.yml b/transifex.yml index bb013516c94..a6c50cd871a 100644 --- a/transifex.yml +++ b/transifex.yml @@ -65,6 +65,14 @@ git: source_file_dir: translations/edx-proctoring/edx_proctoring/conf/locale/en/ translation_files_expression: 'translations/edx-proctoring/edx_proctoring/conf/locale//' + # FeedbackXBlock + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/FeedbackXBlock/feedback/conf/locale/en/ + translation_files_expression: 'translations/FeedbackXBlock/feedback/conf/locale//' + # frontend-app-account - filter_type: file file_format: KEYVALUEJSON From 6c1fe34948e783395ebf2e0ba27a22a50c4ac462 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 28 May 2023 15:09:49 +0300 Subject: [PATCH 19/21] Add AudioXBlock to the translation pipeline --- .github/workflows/extract-translation-source-files.yml | 3 ++- transifex.yml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 73c3513437a..2c9a39ed765 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -37,6 +37,7 @@ jobs: max-parallel: 1 matrix: repo: + - ['AudioXBlock', 'shadinaif/FC-0012-OEP-58'] # - course-discovery # - credentials # - ['completion', 'shadinaif/FC-0012-OEP-58'] @@ -45,7 +46,7 @@ jobs: # - ['edx-ora2', 'shadinaif/FC-0012-OEP-58'] # - ['edx-proctoring', 'shadinaif/FC-0012-OEP-58'] # - ['DoneXBlock', 'shadinaif/FC-0012-OEP-58'] - - ['FeedbackXBlock', 'shadinaif/FC-0012-OEP-58'] +# - ['FeedbackXBlock', 'shadinaif/FC-0012-OEP-58'] # - ['RecommenderXBlock', 'shadinaif/fix-message-compile'] # - ['xblock-adventure', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-drag-and-drop-v2', 'shadinaif/FC-0012-OEP-58'] diff --git a/transifex.yml b/transifex.yml index a6c50cd871a..5a9248c81cf 100644 --- a/transifex.yml +++ b/transifex.yml @@ -1,6 +1,14 @@ git: filters: + # AudioXBlock + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/AudioXBlock/audio/conf/locale/en/ + translation_files_expression: 'translations/AudioXBlock/audio/conf/locale//' + # completion - filter_type: dir file_format: PO From 480173f0c169b5ce009cbe99e8a574cdeb019232 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Sun, 28 May 2023 16:10:40 +0300 Subject: [PATCH 20/21] Add xblock-sql-grader to the translation pipeline --- .../extract-translation-source-files.yml | 3 ++- transifex.yml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index 2c9a39ed765..4700f9f48b3 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -37,7 +37,7 @@ jobs: max-parallel: 1 matrix: repo: - - ['AudioXBlock', 'shadinaif/FC-0012-OEP-58'] +# - ['AudioXBlock', 'shadinaif/FC-0012-OEP-58'] # - course-discovery # - credentials # - ['completion', 'shadinaif/FC-0012-OEP-58'] @@ -54,6 +54,7 @@ jobs: # - ['xblock-free-text-response', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-image-modal', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-image-explorer', 'shadinaif/FC-0012-OEP-58'] + - ['xblock-sql-grader', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-submit-and-compare', 'shadinaif/FC-0012-OEP-58'] # - ['xblock-qualtrics-survey', 'shadinaif/FC-0012-OEP-58'] runs-on: ubuntu-latest diff --git a/transifex.yml b/transifex.yml index 5a9248c81cf..a0d5540dd7f 100644 --- a/transifex.yml +++ b/transifex.yml @@ -321,3 +321,19 @@ git: source_language: en source_file_dir: translations/xblock-qualtrics-survey/qualtricssurvey/conf/locale/en/ translation_files_expression: 'translations/xblock-qualtrics-survey/qualtricssurvey/conf/locale//' + + # xblock-sql-grader + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-sql-grader/sql_grader/conf/locale/en/ + translation_files_expression: 'translations/xblock-sql-grader/sql_grader/conf/locale//' + + # xblock-submit-and-compare + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/xblock-lti-consumer/lti_consumer/conf/locale/en/ + translation_files_expression: 'translations/xblock-lti-consumer/lti_consumer/conf/locale//' From ff4f3ca09d9ed906b167b822ceb90849b6d341dc Mon Sep 17 00:00:00 2001 From: edx-transifex-bot Date: Sun, 28 May 2023 13:14:34 +0000 Subject: [PATCH 21/21] chore: add extracted translation source files from xblock-sql-grader --- .../conf/locale/en/LC_MESSAGES/django.po | 169 ++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 translations/xblock-sql-grader/sql_grader/conf/locale/en/LC_MESSAGES/django.po diff --git a/translations/xblock-sql-grader/sql_grader/conf/locale/en/LC_MESSAGES/django.po b/translations/xblock-sql-grader/sql_grader/conf/locale/en/LC_MESSAGES/django.po new file mode 100644 index 00000000000..9a53a9d7c1e --- /dev/null +++ b/translations/xblock-sql-grader/sql_grader/conf/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,169 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-05-28 13:14+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: mixins/grading.py:72 +msgid "We could not execute your query; please try again." +msgstr "" + +#: mixins/grading.py:89 +msgid "Weight" +msgstr "" + +#: mixins/grading.py:91 +msgid "This assigns an integer value representing the weight of this problem" +msgstr "" + +#: mixins/grading.py:170 +msgid "Display Name" +msgstr "" + +#: mixins/grading.py:171 +msgid "The display name for this component." +msgstr "" + +#: mixins/grading.py:172 +msgid "SQL Problem" +msgstr "" + +#: mixins/grading.py:176 +msgid "Dataset" +msgstr "" + +#: mixins/grading.py:177 +msgid "Which initial dataset/database to be used for queries" +msgstr "" + +#: mixins/grading.py:183 +msgid "Answer Query" +msgstr "" + +#: mixins/grading.py:184 +msgid "A correct response SQL query" +msgstr "" + +#: mixins/grading.py:190 +msgid "Verify Query" +msgstr "" + +#: mixins/grading.py:192 +msgid "" +"A secondary verification SQL query, to be used if the answer_query modifies " +"the database (UPDATE, INSERT, DELETE, etc.). Only enter a single SELECT " +"query here, which is used for matching the answer" +msgstr "" + +#: mixins/grading.py:202 +msgid "Modification query statements" +msgstr "" + +#: mixins/grading.py:204 +msgid "" +"Optional SQL statements, to be executed after the user-submitted query, but " +"before the verify_query." +msgstr "" + +#: mixins/grading.py:212 +msgid "Is Ordered?" +msgstr "" + +#: mixins/grading.py:213 +msgid "Should results be in order?" +msgstr "" + +#: mixins/grading.py:228 +msgid "Prompt" +msgstr "" + +#: mixins/grading.py:229 +msgid "Explanatory text to accompany the problem" +msgstr "" + +#: mixins/grading.py:234 +msgid "Submission Query" +msgstr "" + +#: mixins/grading.py:235 +msgid "A Submission Query" +msgstr "" + +#: templates/view.html:6 +#, python-format +msgid "" +"\n" +" %(score_weighted)s/%(max_score)s point (graded)\n" +" " +msgid_plural "" +"\n" +" %(score_weighted)s/%(max_score)s points (graded)\n" +" " +msgstr[0] "" +msgstr[1] "" + +#: templates/view.html:12 +msgid "0 points (ungraded)" +msgstr "" + +#: templates/view.html:21 +msgid "Note:" +msgstr "" + +#: templates/view.html:22 +msgid "" +"Your queries are executed using SQLite, so you must conform to the SQL " +"constructs supported by SQLite." +msgstr "" + +#: templates/view.html:27 +msgid "Press ESC then TAB or click outside of the code editor to exit" +msgstr "" + +#: templates/view.html:33 +msgid "Submit" +msgstr "" + +#: templates/view.html:40 +msgid "Show Answer" +msgstr "" + +#: templates/view.html:50 +msgid "Correct" +msgstr "" + +#: templates/view.html:52 +msgid "Incorrect" +msgstr "" + +#: templates/view.html:55 +msgid "Unanswered" +msgstr "" + +#: templates/view.html:63 +msgid "" +"To check your data modification statement, we ran the following query after " +"your modification:" +msgstr "" + +#: templates/view.html:75 +msgid "Your Query Result:" +msgstr "" + +#: templates/view.html:80 +msgid "Expected Query Result:" +msgstr ""