Skip to content

Commit

Permalink
feat: add missing translation of export to CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Apr 24, 2024
1 parent 0db55cd commit a7637ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Binary file modified nau_openedx_extensions/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 5 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: 2024-04-12 17:27+0100\n"
"POT-Creation-Date: 2024-04-24 12:08+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 @@ -164,6 +164,10 @@ msgstr ""
msgid "Send Message"
msgstr ""

#: nau_openedx_extensions/utils/admin.py:63
msgid "Export Selected to CSV"
msgstr ""

#~ msgid "I have read and understood the Privacy Policy"
#~ msgstr ""
#~ "I authorize data to be processed "
Expand Down
Binary file modified nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 5 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: 2024-04-12 17:27+0100\n"
"POT-Creation-Date: 2024-04-24 12:08+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 @@ -174,3 +174,7 @@ msgstr ""
msgid "Send Message"
msgstr ""

#: nau_openedx_extensions/utils/admin.py:63
msgid "Export Selected to CSV"
msgstr "Exportar seleccionados para CSV"

3 changes: 2 additions & 1 deletion nau_openedx_extensions/utils/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from common.djangoapps.util.query import use_read_replica_if_available # lint-amnesty, pylint: disable=import-error
from django.http import HttpResponse
from django.utils.translation import gettext_lazy as _


class ExportCsvMixin:
Expand Down Expand Up @@ -59,4 +60,4 @@ def transform_field(csv_field):

return response

export_as_csv.short_description = "Export Selected"
export_as_csv.short_description = _("Export Selected to CSV")

0 comments on commit a7637ba

Please sign in to comment.