Skip to content

Commit

Permalink
Translate the Certificate text on dashboard
Browse files Browse the repository at this point in the history
GN-1203
  • Loading branch information
igobranco committed Jul 3, 2023
1 parent 3f113da commit b1662e1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
Binary file modified nau_openedx_extensions/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
10 changes: 9 additions & 1 deletion nau_openedx_extensions/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-04-12 16:51+0000\n"
"POT-Creation-Date: 2023-07-03 14:10+0100\n"
"PO-Revision-Date: 2021-02-15 15:56+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
Expand Down Expand Up @@ -131,6 +131,14 @@ msgid ""
"out in order to obtain a certificate."
msgstr ""

#: nau_openedx_extensions/settings/common.py:85
msgid "Certificate"
msgstr ""

#: nau_openedx_extensions/settings/common.py:86
msgid "Certificate of Achievement"
msgstr ""

#: nau_openedx_extensions/templates/message_gateway/tab.html:15
msgid "Send to:"
msgstr ""
Expand Down
Binary file modified nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.mo
Binary file not shown.
10 changes: 9 additions & 1 deletion nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-04-12 16:51+0000\n"
"POT-Creation-Date: 2023-07-03 14:10+0100\n"
"PO-Revision-Date: 2021-02-15 15:56+0000\n"
"Last-Translator: Ivo Branco <[email protected]>\n"
"Language: pt_PT\n"
Expand Down Expand Up @@ -139,6 +139,14 @@ msgstr ""
"Este curso encontra-se arquivado e já não permite a realização de "
"atividades para obtenção de certificado."

#: nau_openedx_extensions/settings/common.py:85
msgid "Certificate"
msgstr "Certificado"

#: nau_openedx_extensions/settings/common.py:86
msgid "Certificate of Achievement"
msgstr "Certificado de Conclusão"

#: nau_openedx_extensions/templates/message_gateway/tab.html:15
msgid "Send to:"
msgstr ""
Expand Down
6 changes: 6 additions & 0 deletions nau_openedx_extensions/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from __future__ import absolute_import, unicode_literals

from django.utils.translation import ugettext_lazy as _

SECRET_KEY = "a-not-to-be-trusted-secret-key"
INSTALLED_APPS = (
"django.contrib.auth",
Expand Down Expand Up @@ -79,3 +81,7 @@ def plugin_settings(settings):
settings.NAU_STUDENT_MODULE = (
"nau_openedx_extensions.edxapp_wrapper.backends.student_l_v1"
)

# Overwrite the default certificate name
settings.CERT_NAME_SHORT = _("Certificate")
settings.CERT_NAME_LONG = _("Certificate of Achievement")

0 comments on commit b1662e1

Please sign in to comment.