From a7637bab323af202bd487f0d1784baf0b646dbd2 Mon Sep 17 00:00:00 2001 From: Ivo Branco Date: Wed, 24 Apr 2024 12:01:37 +0100 Subject: [PATCH] feat: add missing translation of export to CSV --- .../locale/en/LC_MESSAGES/django.mo | Bin 757 -> 757 bytes .../locale/en/LC_MESSAGES/django.po | 6 +++++- .../locale/pt_PT/LC_MESSAGES/django.mo | Bin 2377 -> 2448 bytes .../locale/pt_PT/LC_MESSAGES/django.po | 6 +++++- nau_openedx_extensions/utils/admin.py | 3 ++- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/nau_openedx_extensions/locale/en/LC_MESSAGES/django.mo b/nau_openedx_extensions/locale/en/LC_MESSAGES/django.mo index b8079584f9ecffa498ad42dc0e90521fc4cce850..dbae0a051c3159ee85a9625404067099a798e66a 100644 GIT binary patch delta 19 bcmey$`jvIUM-C$s1w$h%1B;D6|1bgoP09zb delta 19 bcmey$`jvIUM-D?H1w(TyBlC?v|1bgoP1gsr diff --git a/nau_openedx_extensions/locale/en/LC_MESSAGES/django.po b/nau_openedx_extensions/locale/en/LC_MESSAGES/django.po index 00cd0a5..4c4fe18 100644 --- a/nau_openedx_extensions/locale/en/LC_MESSAGES/django.po +++ b/nau_openedx_extensions/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: equipa@nau.edu.pt\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 \n" "Language: en\n" @@ -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 " diff --git a/nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.mo b/nau_openedx_extensions/locale/pt_PT/LC_MESSAGES/django.mo index 7463b512b819793cdef98d765374e6acf6be6792..3d7b8089a69e05bfae5a3310a7e3e8256e36224c 100644 GIT binary patch delta 388 zcmYk$KQBX37{~GFURTwh1SOR=k{%_dO0*%74i>RkNSc@!PHt~#NYBmf9m>*$fdm!A z!qCKGGITI^wDAVK3X{qAusF$+&v~Al=a=)AYEQI2Q{J6$#;IxQ$u|E^!4VmwU%+8p z#Vl^%BnFtqV{GF!mND;&^x-b{qeh#*hf{ch\n" "Language: pt_PT\n" @@ -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" + diff --git a/nau_openedx_extensions/utils/admin.py b/nau_openedx_extensions/utils/admin.py index 5b07e34..4457fee 100644 --- a/nau_openedx_extensions/utils/admin.py +++ b/nau_openedx_extensions/utils/admin.py @@ -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: @@ -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")