From 0712c93da1a5c9004ee58fb0f081341f653d0e00 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..d4066c911e7defee1767f6e0c489329433c36cac 100644 GIT binary patch delta 19 bcmey$`jvIUM-C$s1w%tCQ_GD%|1bgoP2~r* 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..f9117c8 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 11:59+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:62 +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..357aee4e3cfd543fa62d43a8e94ecee684289225 100644 GIT binary patch delta 388 zcmYk$KQBX37{~GFURTwh1SOR=k{%_d8m{P|gGDSBk|rjGliM2_(sOfr2P|C}NKip6 z3{5O1LkDw58*jj?FqwQ0i<3P0oaf1TemQTM_C)J5uRG#I?%5YDr;jXvJuB|Z{5>xp#e zd!*Tq1Sydm8nl6DSilZmU=Pc&~~EUR+YXUnwtl_q|cK@b^;3s%hT_b<@x_ P(^Qd;_3z42>fQYTnmsp+ delta 317 zcmYk$v1$TA5P;#i&8dqKlv4-^225gQA)KHGhe*K2(k5NfTobVfHa0fb2gFm8CTNid zu)4}JrBxsg;CqOI{!1DchHrLuXP79zal)-*e+nl@6p4kooSmZe|8|R))T?-dJ{Ir^ zBkZG(d%VDg5=o$sX6_?i;R~AnA-;)(5|N}S9Pt^`bbsJ0E*W;fZ|+}AGYd46BG=eK zGcdq0j\n" "Language: pt_PT\n" @@ -174,3 +174,7 @@ msgstr "" msgid "Send Message" msgstr "" +#: nau_openedx_extensions/utils/admin.py:62 +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")