From 03ae5e0cab1509e5340048f79cb54eb2b96e952c Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Fri, 9 Jun 2023 17:50:17 +0300 Subject: [PATCH 1/2] Add credentials-themes to the translation pipeline --- .../extract-translation-source-files.yml | 82 ++++++++++--------- transifex.yml | 10 ++- 2 files changed, 51 insertions(+), 41 deletions(-) diff --git a/.github/workflows/extract-translation-source-files.yml b/.github/workflows/extract-translation-source-files.yml index ed3129ab85f..04629149070 100644 --- a/.github/workflows/extract-translation-source-files.yml +++ b/.github/workflows/extract-translation-source-files.yml @@ -41,44 +41,47 @@ jobs: repo: # Note: Add `module_name` for all edx-platform plugins and XBlocks such as DoneXBlock and completion, but not # for micrsoervices and IDAs such as course-discovery and credentials. - - repo_name: AudioXBlock - python_module_name: audio - - repo_name: completion - python_module_name: completion - - repo_name: course-discovery # not a plugin - - repo_name: credentials # not a plugin - - repo_name: DoneXBlock - python_module_name: done - - repo_name: edx-ace - python_module_name: edx_ace - - repo_name: edx-bulk-grades - python_module_name: bulk_grades - - repo_name: edx-ora2 - python_module_name: openassessment - - repo_name: edx-proctoring - python_module_name: edx_proctoring - - repo_name: FeedbackXBlock - python_module_name: feedback - - repo_name: RecommenderXBlock - python_module_name: recommender - - repo_name: xblock-drag-and-drop-v2 - python_module_name: drag_and_drop_v2 - - repo_name: xblock-free-text-response - python_module_name: freetextresponse - - repo: xblock-google-drive - python_module_name: google_drive - - repo: xblock-image-explorer - python_module_name: image_explorer - - repo: xblock-image-modal - python_module_name: imagemodal - - repo_name: xblock-lti-consumer - python_module_name: lti_consumer - - repo_name: xblock-qualtrics-survey - python_module_name: qualtricssurvey - - repo_name: xblock-sql-grader - python_module_name: sql_grader - - repo_name: xblock-submit-and-compare - python_module_name: submit_and_compare +# - repo_name: AudioXBlock +# python_module_name: audio +# - repo_name: completion +# python_module_name: completion +# - repo_name: course-discovery # not a plugin +# - repo_name: credentials # not a plugin + - repo_name: credentials-themes + repo_branch: shadinaif/FC-0012-OEP-58 + python_module_name: edx_credentials_themes +# - repo_name: DoneXBlock +# python_module_name: done +# - repo_name: edx-ace +# python_module_name: edx_ace +# - repo_name: edx-bulk-grades +# python_module_name: bulk_grades +# - repo_name: edx-ora2 +# python_module_name: openassessment +# - repo_name: edx-proctoring +# python_module_name: edx_proctoring +# - repo_name: FeedbackXBlock +# python_module_name: feedback +# - repo_name: RecommenderXBlock +# python_module_name: recommender +# - repo_name: xblock-drag-and-drop-v2 +# python_module_name: drag_and_drop_v2 +# - repo_name: xblock-free-text-response +# python_module_name: freetextresponse +# - repo: xblock-google-drive +# python_module_name: google_drive +# - repo: xblock-image-explorer +# python_module_name: image_explorer +# - repo: xblock-image-modal +# python_module_name: imagemodal +# - repo_name: xblock-lti-consumer +# python_module_name: lti_consumer +# - repo_name: xblock-qualtrics-survey +# python_module_name: qualtricssurvey +# - repo_name: xblock-sql-grader +# python_module_name: sql_grader +# - repo_name: xblock-submit-and-compare +# python_module_name: submit_and_compare runs-on: ubuntu-latest continue-on-error: true @@ -277,8 +280,7 @@ 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 }} + GITHUB_TOKEN: ${{ github.token }} run: | echo "COMMIT_COUNT=$(git rev-list HEAD ^origin/main | wc -l)" >> $GITHUB_ENV 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/Zeit-Labs/openedx-translations/blob/master/.github/workflows/extract-translation-source-files.yml).')" >> $GITHUB_ENV diff --git a/transifex.yml b/transifex.yml index 9cb8528d88c..78c30b94cf8 100644 --- a/transifex.yml +++ b/transifex.yml @@ -33,6 +33,14 @@ git: source_file_dir: translations/credentials/credentials/conf/locale/en/ translation_files_expression: 'translations/credentials/credentials/conf/locale//' + # credentials-themes + - filter_type: dir + file_format: PO + source_file_extension: po + source_language: en + source_file_dir: translations/credentials-themes/edx_credentials_themes/conf/locale/en/ + translation_files_expression: 'translations/credentials-themes/edx_credentials_themes/conf/locale//' + # DoneXBlock - filter_type: dir file_format: PO @@ -80,7 +88,7 @@ git: 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 e872c962d6873b9f178f8901ef661c7f1c266397 Mon Sep 17 00:00:00 2001 From: edx-transifex-bot Date: Fri, 9 Jun 2023 18:29:22 +0000 Subject: [PATCH 2/2] chore: add extracted translation source files from credentials-themes --- .../conf/locale/en/LC_MESSAGES/django.po | 186 ++++++++++++++++++ .../edx-platform-links/edx_credentials_themes | 1 + 2 files changed, 187 insertions(+) create mode 100644 translations/credentials-themes/edx_credentials_themes/conf/locale/en/LC_MESSAGES/django.po create mode 120000 translations/edx-platform-links/edx_credentials_themes diff --git a/translations/credentials-themes/edx_credentials_themes/conf/locale/en/LC_MESSAGES/django.po b/translations/credentials-themes/edx_credentials_themes/conf/locale/en/LC_MESSAGES/django.po new file mode 100644 index 00000000000..4dc0c78e4ae --- /dev/null +++ b/translations/credentials-themes/edx_credentials_themes/conf/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,186 @@ +# 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-06-09 18:29+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" + +#: templates/edx.org/_footer.html:7 +msgid "Legal Policies" +msgstr "" + +#: templates/edx.org/_footer.html:11 +msgid "Terms of Service & Honor Code" +msgstr "" + +#: templates/edx.org/_footer.html:16 +msgid "Privacy Policy" +msgstr "" + +#: templates/edx.org/_footer.html:21 +msgid "Cookie Policy" +msgstr "" + +#: templates/edx.org/_footer.html:26 +msgid "Do Not Sell My Personal Information" +msgstr "" + +#: templates/edx.org/_footer.html:36 +msgid "" +"All rights reserved except where noted. edX, Open edX and the edX and Open " +"edX logos are registered trademarks or trademarks of edX Inc." +msgstr "" + +#: templates/edx.org/_footer.html:46 +msgid "Powered by" +msgstr "" + +#: templates/edx.org/credentials/programs/base.html:30 +msgid "About edX" +msgstr "" + +#: templates/edx.org/credentials/programs/base.html:33 +#, python-brace-format +msgid "" +"{link_start} edX{link_end} offers interactive online classes and MOOCs from " +"the world’s best universities, including MIT, Harvard, Berkeley, University " +"of Texas, and many others. edX is an online initiative created by founding " +"partners Harvard and MIT." +msgstr "" + +#. Translators: MicroBachelors should not be translated, this phrase is preceded by the learner's name and followed by a program title +#: templates/edx.org/credentials/programs/microbachelors/certificate.html:7 +msgid "" +"has successfully completed all courses and received passing grades to earn a " +"MicroBachelors program certificate in" +msgstr "" + +#. Translators: MicroBachelors should not be translated +#: templates/edx.org/credentials/programs/microbachelors/certificate.html:12 +msgid "MicroBachelors program certificate" +msgstr "" + +#. Translators: MicroBachelors should not be translated +#: templates/edx.org/credentials/programs/microbachelors/certificate.html:17 +msgid "About the edX MicroBachelors program certificate" +msgstr "" + +#. Translators: MicroBachelors should not be translated +#: templates/edx.org/credentials/programs/microbachelors/certificate.html:22 +#, python-brace-format +msgid "" +"An edX MicroBachelors credential signifies that the learner has completed a " +"group of courses that add up to a rich understanding of an area of study. " +"Completion of MicroBachelors programs requires that learners earn " +"{link_start}Verified Certificates{link_end} from each of the courses " +"included in the program." +msgstr "" + +#. Translators: MicroMasters should not be translated +#: templates/edx.org/credentials/programs/micromasters/certificate.html:8 +#, python-format +msgid "" +"You worked hard to earn your MicroMasters Credential from " +"%(organization_name)s." +msgstr "" + +#. Translators: MicroMasters should not be translated, this phrase is preceded by the learner's name and followed by a program title +#: templates/edx.org/credentials/programs/micromasters/certificate.html:16 +msgid "" +"has successfully completed all courses and received passing grades to earn a " +"MicroMasters program certificate in" +msgstr "" + +#. Translators: MicroMasters should not be translated +#: templates/edx.org/credentials/programs/micromasters/certificate.html:21 +msgid "MicroMasters program certificate" +msgstr "" + +#. Translators: MicroMasters should not be translated +#: templates/edx.org/credentials/programs/micromasters/certificate.html:26 +msgid "About the edX MicroMasters credential" +msgstr "" + +#. Translators: MicroMasters should not be translated +#: templates/edx.org/credentials/programs/micromasters/certificate.html:31 +#, python-brace-format +msgid "" +"An edX MicroMasters credential signifies that the learner has completed a " +"group of courses that add up to a rich understanding of an area of study. " +"Completion of MicroMasters Programs requires that learners earn {link_start}" +"Verified Certificates{link_end} from each of the courses included in the " +"Program." +msgstr "" + +#. Translators: This phrase is preceded by the learner's name and followed by a program title +#: templates/edx.org/credentials/programs/professional-certificate/certificate.html:7 +msgid "" +"successfully completed all courses and received passing grades for a " +"Professional Certificate in" +msgstr "" + +#: templates/edx.org/credentials/programs/professional-certificate/certificate.html:11 +msgid "Professional Certificate" +msgstr "" + +#: templates/edx.org/credentials/programs/professional-certificate/certificate.html:15 +msgid "About the edX Professional Certificate" +msgstr "" + +#: templates/edx.org/credentials/programs/professional-certificate/certificate.html:19 +#, python-brace-format +msgid "" +"An edX Professional Certificate signifies that the learner has completed a " +"group of courses that add up to a rich understanding of an area of study. " +"Completion of Professional Certificate Programs requires that learners earn " +"{link_start}Verified Certificates{link_end} from each of the courses " +"included in the Program." +msgstr "" + +#. Translators: XSeries should not be translated +#: templates/edx.org/credentials/programs/xseries/certificate.html:8 +#, python-format +msgid "" +"You worked hard to earn your XSeries Program certificate from " +"%(organization_name)s." +msgstr "" + +#. Translators: XSeries should not be translated, this phrase is preceded by the learner's name and followed by a program title +#: templates/edx.org/credentials/programs/xseries/certificate.html:16 +msgid "" +"has successfully completed all courses and received passing grades for an " +"XSeries Program certificate in" +msgstr "" + +#. Translators: XSeries should not be translated +#: templates/edx.org/credentials/programs/xseries/certificate.html:21 +msgid "XSeries Program certificate" +msgstr "" + +#. Translators: XSeries should not be translated +#: templates/edx.org/credentials/programs/xseries/certificate.html:26 +msgid "About the edX XSeries Program certificate" +msgstr "" + +#. Translators: XSeries should not be translated +#: templates/edx.org/credentials/programs/xseries/certificate.html:31 +#, python-brace-format +msgid "" +"An edX XSeries Program certificate signifies that the learner has completed " +"a group of courses that add up to a rich understanding of an area of study. " +"Completion of XSeries Programs requires that learners earn {link_start}" +"Verified Certificates{link_end} from each of the courses included in the " +"Program." +msgstr "" diff --git a/translations/edx-platform-links/edx_credentials_themes b/translations/edx-platform-links/edx_credentials_themes new file mode 120000 index 00000000000..e253cca7b7b --- /dev/null +++ b/translations/edx-platform-links/edx_credentials_themes @@ -0,0 +1 @@ +../credentials-themes/edx_credentials_themes \ No newline at end of file