From bfad37220cad20ae5b7f5756dcd544f502676eb9 Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Wed, 17 Jul 2024 18:10:02 +0100 Subject: [PATCH] feat(ecommerce): add ecommerce js force trans Add JS force translations for ecommerce. --- .../nau/conf/locale/en/LC_MESSAGES/django.po | 18 +++++++++-- .../conf/locale/pt_PT/LC_MESSAGES/django.mo | Bin 15401 -> 15446 bytes .../conf/locale/pt_PT/LC_MESSAGES/django.po | 28 +++++++++++++----- .../nau/templates/force_translations.html | 9 ++++++ 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/ecommerce/nau/conf/locale/en/LC_MESSAGES/django.po b/ecommerce/nau/conf/locale/en/LC_MESSAGES/django.po index 9da3b06..5446533 100644 --- a/ecommerce/nau/conf/locale/en/LC_MESSAGES/django.po +++ b/ecommerce/nau/conf/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-05-23 14:58+0100\n" +"POT-Creation-Date: 2024-07-17 18:09+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -222,6 +222,20 @@ msgstr "If you need assistance, contact NAU support." msgid "Root URL of this site's LMS (e.g. https://courses.stage.edx.org)" msgstr "Root URL of this site's LMS (e.g. https://lms.stage.nau.fccn.pt)" +#: templates/force_translations.html:28 +msgid "Enroll Now" +msgstr "" + +#: templates/force_translations.html:31 +#, python-format +msgid "Course starts: %%s" +msgstr "" + +#: templates/force_translations.html:34 +#, python-format +msgid "Discount valid until %%s" +msgstr "" + #: templates/oscar/basket/partials/hosted_checkout_basket.html:23 msgid "Earn a valuable certificate to showcase the skills you learn in" msgstr "" @@ -300,7 +314,7 @@ msgid "Please read our FAQs to view common questions about our certificates." msgstr "" #: templates/oscar/communication/email_base.html:189 -#: templates/oscar/customer/email_base.html:195 +#: templates/oscar/customer/email_base.html:189 #, python-format msgid "Copyright © %(year)s %(platform_name)s. All rights reserved." msgstr "" diff --git a/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.mo b/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.mo index d38a8a5bd73b2bee2c6c4f6aefbe6744afb4f254..d6f19ab9fdc7806c6da8c70882ec1d2275273106 100644 GIT binary patch delta 1946 zcmYk-e@vBC9LMpm{JL;O5d;%4@4Y~RnH8p>Bm^l0g#1uaYiXjAq{toE;Fh&#lZ|SN z4aFajY~`FzR?QXpV{6sAYfIoQEaV9eo4jb)xVm|RloSB0kCGtT#?K9hrWB58|C7XSKgV>KnDQ3s;0)C4vezTJ} zf4W%!qgXc0>>6tQ;0&|bSccVlR5P74CWetU?KD1spI{kY!XWx)nz4ozVk#~}eZLa* zpgLTLyKp5Qz$fuC)}xPyY{M3O3eTfoN4-TSor$y7yq>ib8r z3&-#g%wdwlTMcTX>ydx<5+9twx^ON!n2E!f#`EoCI@$OI&cg}R0{>za{)f%DCc{iw zIf5L@MzIt>MBT)7)X)Eox@tf7T!96s|8GaKWL@|$?n9@I&M7+DKq}iR#)YVbHscnI z;1QgN*_mbbF5^V5$471t;-8G)BX4W4pJTp?mr*xa!Qx5i#Oy~Ma3Gue&!;oOgiiD& zDmUNZZk)j`R^e;72hX8)o}XhD#zuS-zrtQDACh-UCz)#ub0t`GvURkIdix?lI;@GQwgEcsbs+EEQ zGs?nBP(N3L4Y(77cn);~6AqnJI=`cG^bZ!|9bAOD3{=JSxDwySCXC_^oXwYNF@ltd zMUm{-6;#npVI|&1y;Y@LpHjOHb>q$+I;7v;z(E|u=o?6 z@9`>L#4{ycHAhxZ-SON2Ze#u?1;PG|1G{bM&{$%QQ%zqbnMvdk+`mz!Zljp2G1eEl zS2Z5wR+akY`k;}2_tzA^MBL+QE`ew!lt6CbeygRYoIR&RD%D}oFT}Nk(xg`J;eM)S)ba_{o!+i{Etk$JB95SH+!pkzf_fR+> z6_HAmj1Tx;NcLBCc85DUf(_x`@#|?{XQ$V8?%m$q*3-IVZ(Fc+XSlm{{M4epjJwmG B$8rDw delta 1901 zcmYk-YlxLa7y#f`-F0`prIzOAWp7$)ZMLPRrnYNqxp^(iLQ+IGvUV+!NU7}P23;&d z63a44voMK5+_OwoxIoXjv9ilYM7-|$XI6>n zCfoFj>w^KH`{$BGFN%MH}T7T23(nmNWnF5uV9m=3y5hI0(_|C+gki&)Ry%pEw! z%(;^Vjf~M*PUHnnVwH=`-WJZ}1}@_PcJgm_aFv@yBMvZ=?Ksu^Yq+8{H8HL$N1*b1Ex^;VhJ-Rx>(Im%6?9}9mknj{1Y=2ci$+(*~y&X zQEucp?q|mohZ=w7i`;gT=k^i*Ap%;_#~?RHtnPM9rmrE`$XMA4S$IIlKy{wlp=Q2_TCwC-XPK=oEw&=OT*cplyUN!K z%O;sKS(?;Gxci-;|2SoABp5D8sYGrkA-=SaC K_MVy4GyGp*fwhAG diff --git a/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.po b/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.po index 1f2674c..0c072d9 100644 --- a/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.po +++ b/ecommerce/nau/conf/locale/pt_PT/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-05-23 14:58+0100\n" +"POT-Creation-Date: 2024-07-17 18:09+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -241,6 +241,20 @@ msgstr "Se precisar de assistência, contacte o apoio da NAU." msgid "Root URL of this site's LMS (e.g. https://courses.stage.edx.org)" msgstr "Raiz do URL do site do LMS (e.g. https://lms.stage.nau.fccn.pt)" +#: templates/force_translations.html:28 +msgid "Enroll Now" +msgstr "Inscreva-se agora" + +#: templates/force_translations.html:31 +#, python-format +msgid "Course starts: %%s" +msgstr "" + +#: templates/force_translations.html:34 +#, python-format +msgid "Discount valid until %%s" +msgstr "" + #: templates/oscar/basket/partials/hosted_checkout_basket.html:23 msgid "Earn a valuable certificate to showcase the skills you learn in" msgstr "" @@ -331,7 +345,7 @@ msgstr "" "certificados." #: templates/oscar/communication/email_base.html:189 -#: templates/oscar/customer/email_base.html:195 +#: templates/oscar/customer/email_base.html:189 #, python-format msgid "Copyright © %(year)s %(platform_name)s. All rights reserved." msgstr "" @@ -507,15 +521,12 @@ msgstr "Para Empresas" #: templates/oscar/communication/emails/commtype_order_with_csv_body.html:26 #: templates/oscar/communication/emails/commtype_order_with_csv_body.txt:6 #, fuzzy, python-format -#| msgid "" -#| "Thank you for purchasing access to %%(course_name)s. Let's get your group " -#| "ready to learn with edX:" msgid "" "Thank you for purchasing access to %(course_name)s. Let's get your group " "ready to learn with %(platform_name)s:" msgstr "" "Obrigado por adquirir acesso a %(course_name)s. Vamos preparar o seu grupo " -"para começar a aprender com a NAU:" +"para começar a aprender com %(platform_name)s:" #: templates/oscar/communication/emails/commtype_order_with_csv_body.html:29 #, python-brace-format @@ -543,10 +554,11 @@ msgstr "Dica: Registe qual o código associado a cada pessoa." #: templates/oscar/communication/emails/commtype_order_with_csv_body.html:36 #: templates/oscar/communication/emails/commtype_order_with_csv_body.txt:11 #, fuzzy -#| msgid "Learners sign-in/register with edX and enroll for the course." msgid "" "Learners sign-in/register with {{platform_name}} and enroll for the course." -msgstr "Os estudantes assinam/registam-se na NAU e inscrevem-se no curso." +msgstr "" +"Os estudantes assinam/registam-se em {{platform_name}} e inscrevem-se no " +"curso." #: templates/oscar/communication/emails/commtype_order_with_csv_body.html:39 #, python-brace-format diff --git a/ecommerce/nau/templates/force_translations.html b/ecommerce/nau/templates/force_translations.html index 038f2b8..30290aa 100644 --- a/ecommerce/nau/templates/force_translations.html +++ b/ecommerce/nau/templates/force_translations.html @@ -23,3 +23,12 @@ ## Translators: Original on ecommerce/core/models.py:47 {% trans "Root URL of this site's LMS (e.g. https://courses.stage.edx.org)" %} + +## Translators: Original on ecommerce/static/templates/_offer_course_list.html +{% trans "Enroll Now" %} + +## Translators: Original on ecommerce/static/js/views/offer_view.js +{% trans "Course starts: %s" %} + +## Translators: Original on ecommerce/static/js/views/offer_view.js +{% trans "Discount valid until %s" %}