Skip to content

Commit

Permalink
Add name surname to export
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jun 21, 2024
1 parent 70dcf29 commit e6a806f
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 30 deletions.
4 changes: 4 additions & 0 deletions src/redturtle/prenotazioni/browser/bookings_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def csv_fields(self):
api.portal.translate(_("csv_export_type", default="TYPE")),
api.portal.translate(_("csv_export_phone", default="PHONE")),
api.portal.translate(_("csv_export_email", default="EMAIL")),
api.portal.translate(_("csv_export_name", default="NAME SURNAME")),
api.portal.translate(_("csv_export_fiscalcode", default="FISCALCODE")),
api.portal.translate(_("csv_export_start_time", default="BOOKING START")),
api.portal.translate(
Expand Down Expand Up @@ -108,6 +109,9 @@ def brain2row(self, brain):
api.portal.translate(
_("csv_export_company", default="COMPANY")
): booking.company,
api.portal.translate(
_("csv_export_name", default="NAME SURNAME")
): booking.title,
}

def get_csv_rows(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-06-21 13:54+0000\n"
"POT-Creation-Date: 2024-06-21 15:20+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -40,7 +40,7 @@ msgstr ""
msgid "Attention"
msgstr ""

#: redturtle/prenotazioni/browser/bookings_export.py:146
#: redturtle/prenotazioni/browser/bookings_export.py:150
msgid "Bad date format passed"
msgstr ""

Expand Down Expand Up @@ -777,7 +777,7 @@ msgid "contacts_label"
msgstr ""

#. Default: "BOOKING FOLDER"
#: redturtle/prenotazioni/browser/bookings_export.py:38
#: redturtle/prenotazioni/browser/bookings_export.py:39
msgid "csv_export_booking_folder"
msgstr ""

Expand All @@ -787,7 +787,7 @@ msgid "csv_export_code"
msgstr ""

#. Default: "COMPANY"
#: redturtle/prenotazioni/browser/bookings_export.py:40
#: redturtle/prenotazioni/browser/bookings_export.py:41
msgid "csv_export_company"
msgstr ""

Expand All @@ -797,22 +797,27 @@ msgid "csv_export_email"
msgstr ""

#. Default: "BOOKING EXPIRATION"
#: redturtle/prenotazioni/browser/bookings_export.py:32
#: redturtle/prenotazioni/browser/bookings_export.py:33
msgid "csv_export_end_time"
msgstr ""

#. Default: "FISCALCODE"
#: redturtle/prenotazioni/browser/bookings_export.py:29
#: redturtle/prenotazioni/browser/bookings_export.py:30
msgid "csv_export_fiscalcode"
msgstr ""

#. Default: "GATE"
#: redturtle/prenotazioni/browser/bookings_export.py:35
#: redturtle/prenotazioni/browser/bookings_export.py:36
msgid "csv_export_gate"
msgstr ""

#. Default: "NAME SURNAME"
#: redturtle/prenotazioni/browser/bookings_export.py:29
msgid "csv_export_name"
msgstr ""

#. Default: "NOTES"
#: redturtle/prenotazioni/browser/bookings_export.py:36
#: redturtle/prenotazioni/browser/bookings_export.py:37
msgid "csv_export_notes"
msgstr ""

Expand All @@ -822,12 +827,12 @@ msgid "csv_export_phone"
msgstr ""

#. Default: "BOOKING START"
#: redturtle/prenotazioni/browser/bookings_export.py:30
#: redturtle/prenotazioni/browser/bookings_export.py:31
msgid "csv_export_start_time"
msgstr ""

#. Default: "STATE"
#: redturtle/prenotazioni/browser/bookings_export.py:34
#: redturtle/prenotazioni/browser/bookings_export.py:35
msgid "csv_export_state"
msgstr ""

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2024-06-21 13:54+0000\n"
"POT-Creation-Date: 2024-06-21 15:20+0000\n"
"PO-Revision-Date: 2014-05-27 17:36+0200\n"
"Last-Translator: Alessandro Pisa <[email protected]>\n"
"Language-Team: American English <[email protected]>\n"
Expand Down Expand Up @@ -42,7 +42,7 @@ msgstr "L'orario di inizio del pomeriggio non può essere successivo alla chiusu
msgid "Attention"
msgstr "Attenzione!"

#: redturtle/prenotazioni/browser/bookings_export.py:146
#: redturtle/prenotazioni/browser/bookings_export.py:150
msgid "Bad date format passed"
msgstr "Parametro 'date' è composto male"

Expand Down Expand Up @@ -780,7 +780,7 @@ msgid "contacts_label"
msgstr "Contatti"

#. Default: "BOOKING FOLDER"
#: redturtle/prenotazioni/browser/bookings_export.py:38
#: redturtle/prenotazioni/browser/bookings_export.py:39
msgid "csv_export_booking_folder"
msgstr "CARTELLA PRENOTAZIONI"

Expand All @@ -790,7 +790,7 @@ msgid "csv_export_code"
msgstr "CODICE"

#. Default: "COMPANY"
#: redturtle/prenotazioni/browser/bookings_export.py:40
#: redturtle/prenotazioni/browser/bookings_export.py:41
msgid "csv_export_company"
msgstr "AZIENDA"

Expand All @@ -800,22 +800,27 @@ msgid "csv_export_email"
msgstr "EMAIL"

#. Default: "BOOKING EXPIRATION"
#: redturtle/prenotazioni/browser/bookings_export.py:32
#: redturtle/prenotazioni/browser/bookings_export.py:33
msgid "csv_export_end_time"
msgstr "FINE PRENOTAZIONE"

#. Default: "FISCALCODE"
#: redturtle/prenotazioni/browser/bookings_export.py:29
#: redturtle/prenotazioni/browser/bookings_export.py:30
msgid "csv_export_fiscalcode"
msgstr "CODICE FISCALE"

#. Default: "GATE"
#: redturtle/prenotazioni/browser/bookings_export.py:35
#: redturtle/prenotazioni/browser/bookings_export.py:36
msgid "csv_export_gate"
msgstr "POSTAZIONE"

#. Default: "NAME SURNAME"
#: redturtle/prenotazioni/browser/bookings_export.py:29
msgid "csv_export_name"
msgstr ""

#. Default: "NOTES"
#: redturtle/prenotazioni/browser/bookings_export.py:36
#: redturtle/prenotazioni/browser/bookings_export.py:37
msgid "csv_export_notes"
msgstr "NOTE"

Expand All @@ -825,12 +830,12 @@ msgid "csv_export_phone"
msgstr "NUMERO TELEFONO"

#. Default: "BOOKING START"
#: redturtle/prenotazioni/browser/bookings_export.py:30
#: redturtle/prenotazioni/browser/bookings_export.py:31
msgid "csv_export_start_time"
msgstr "INIZIO PRENOTAZIONE"

#. Default: "STATE"
#: redturtle/prenotazioni/browser/bookings_export.py:34
#: redturtle/prenotazioni/browser/bookings_export.py:35
msgid "csv_export_state"
msgstr "STATO"

Expand Down
25 changes: 15 additions & 10 deletions src/redturtle/prenotazioni/locales/redturtle.prenotazioni.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-06-21 13:54+0000\n"
"POT-Creation-Date: 2024-06-21 15:21+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -43,7 +43,7 @@ msgstr ""
msgid "Attention"
msgstr ""

#: redturtle/prenotazioni/browser/bookings_export.py:146
#: redturtle/prenotazioni/browser/bookings_export.py:150
msgid "Bad date format passed"
msgstr ""

Expand Down Expand Up @@ -780,7 +780,7 @@ msgid "contacts_label"
msgstr ""

#. Default: "BOOKING FOLDER"
#: redturtle/prenotazioni/browser/bookings_export.py:38
#: redturtle/prenotazioni/browser/bookings_export.py:39
msgid "csv_export_booking_folder"
msgstr ""

Expand All @@ -790,7 +790,7 @@ msgid "csv_export_code"
msgstr ""

#. Default: "COMPANY"
#: redturtle/prenotazioni/browser/bookings_export.py:40
#: redturtle/prenotazioni/browser/bookings_export.py:41
msgid "csv_export_company"
msgstr ""

Expand All @@ -800,22 +800,27 @@ msgid "csv_export_email"
msgstr ""

#. Default: "BOOKING EXPIRATION"
#: redturtle/prenotazioni/browser/bookings_export.py:32
#: redturtle/prenotazioni/browser/bookings_export.py:33
msgid "csv_export_end_time"
msgstr ""

#. Default: "FISCALCODE"
#: redturtle/prenotazioni/browser/bookings_export.py:29
#: redturtle/prenotazioni/browser/bookings_export.py:30
msgid "csv_export_fiscalcode"
msgstr ""

#. Default: "GATE"
#: redturtle/prenotazioni/browser/bookings_export.py:35
#: redturtle/prenotazioni/browser/bookings_export.py:36
msgid "csv_export_gate"
msgstr ""

#. Default: "NAME SURNAME"
#: redturtle/prenotazioni/browser/bookings_export.py:29
msgid "csv_export_name"
msgstr ""

#. Default: "NOTES"
#: redturtle/prenotazioni/browser/bookings_export.py:36
#: redturtle/prenotazioni/browser/bookings_export.py:37
msgid "csv_export_notes"
msgstr ""

Expand All @@ -825,12 +830,12 @@ msgid "csv_export_phone"
msgstr ""

#. Default: "BOOKING START"
#: redturtle/prenotazioni/browser/bookings_export.py:30
#: redturtle/prenotazioni/browser/bookings_export.py:31
msgid "csv_export_start_time"
msgstr ""

#. Default: "STATE"
#: redturtle/prenotazioni/browser/bookings_export.py:34
#: redturtle/prenotazioni/browser/bookings_export.py:35
msgid "csv_export_state"
msgstr ""

Expand Down

0 comments on commit e6a806f

Please sign in to comment.