ants_hub: differentiate "place" translation (#81980)
gitea/chrono/pipeline/head This commit looks good
Details
gitea/chrono/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2cae3b7724
commit
f34af55592
|
@ -22,6 +22,7 @@ from django.conf import settings
|
|||
from django.db import models, transaction
|
||||
from django.urls import reverse
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.utils.translation import pgettext_lazy
|
||||
|
||||
from chrono.agendas.models import Agenda, Booking
|
||||
from chrono.utils.timezone import localtime, now
|
||||
|
@ -247,8 +248,8 @@ class Place(models.Model):
|
|||
yield rdv
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('place')
|
||||
verbose_name_plural = _('places')
|
||||
verbose_name = pgettext_lazy('location', 'place')
|
||||
verbose_name_plural = pgettext_lazy('location', 'places')
|
||||
unique_together = [
|
||||
('city', 'name'),
|
||||
]
|
||||
|
|
|
@ -7,8 +7,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: chrono 0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-10-03 11:54+0200\n"
|
||||
"PO-Revision-Date: 2023-10-03 11:56+0200\n"
|
||||
"POT-Creation-Date: 2023-10-04 11:58+0200\n"
|
||||
"PO-Revision-Date: 2023-10-04 11:58+0200\n"
|
||||
"Last-Translator: Frederic Peters <fpeters@entrouvert.com>\n"
|
||||
"Language: French\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -1540,11 +1540,12 @@ msgid "Full synchronization"
|
|||
msgstr "Synchronisation complète"
|
||||
|
||||
#: apps/ants_hub/models.py
|
||||
msgctxt "location"
|
||||
msgid "place"
|
||||
msgstr "lieu"
|
||||
|
||||
#: apps/ants_hub/models.py manager/templates/chrono/manager_event_check.html
|
||||
#: manager/templates/chrono/manager_event_check_booking_fragment.html
|
||||
#: apps/ants_hub/models.py
|
||||
msgctxt "location"
|
||||
msgid "places"
|
||||
msgstr "lieus"
|
||||
|
||||
|
@ -2847,6 +2848,11 @@ msgstr "Marquer toutes les réservations non précisées :"
|
|||
msgid "Waiting List (%(booked_places)s/%(places)s)"
|
||||
msgstr "Liste d’attente (%(booked_places)s/%(places)s)"
|
||||
|
||||
#: manager/templates/chrono/manager_event_check.html
|
||||
#: manager/templates/chrono/manager_event_check_booking_fragment.html
|
||||
msgid "places"
|
||||
msgstr "places"
|
||||
|
||||
#: manager/templates/chrono/manager_event_check_booking_fragment.html
|
||||
msgid "Not booked"
|
||||
msgstr "Non réservé"
|
||||
|
|
Loading…
Reference in New Issue