fix translation

This commit is contained in:
bkfox 2020-05-30 15:57:17 +02:00
parent a6321de5d2
commit 46208a4bf7
5 changed files with 315 additions and 275 deletions

File diff suppressed because it is too large Load Diff

View File

@ -202,6 +202,10 @@ class Comment(models.Model):
date = models.DateTimeField(auto_now_add=True) date = models.DateTimeField(auto_now_add=True)
content = models.TextField(_('content'), max_length=1024) content = models.TextField(_('content'), max_length=1024)
class Meta:
verbose_name = _('Comment')
verbose_name_plural = _('Comments')
class NavItem(models.Model): class NavItem(models.Model):
""" Navigation menu items """ """ Navigation menu items """
@ -221,6 +225,7 @@ class NavItem(models.Model):
class Meta: class Meta:
verbose_name = _('Menu item') verbose_name = _('Menu item')
verbose_name_plural = _('Menu items')
ordering = ('order', 'pk') ordering = ('order', 'pk')
def render(self, request, css_class='', active_class=''): def render(self, request, css_class='', active_class=''):

View File

@ -71,7 +71,7 @@ Context:
{% endfor %} {% endfor %}
<div class="has-text-right"> <div class="has-text-right">
<button type="reset" class="button is-danger">{% trans "Reset" %}</button> <button type="reset" class="button is-danger">{% trans "Reset" %}</button>
<button type="submit" class="button is-success">{% trans "Comment" %}</button> <button type="submit" class="button is-success">{% trans "Post comment" %}</button>
</div> </div>
</form> </form>
{% endif %} {% endif %}

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-30 13:39+0000\n" "POT-Creation-Date: 2020-05-30 13:53+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,80 +18,79 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: templates/aircox_streamer/source_item.html:18 #: aircox_streamer/templates/aircox_streamer/source_item.html:18
msgid "Edit related program" msgid "Edit related program"
msgstr "Éditer le programme correspondant" msgstr "Éditer le programme correspondant"
#: templates/aircox_streamer/source_item.html:27 #: aircox_streamer/templates/aircox_streamer/source_item.html:27
msgid "Synchronize source with Liquidsoap" msgid "Synchronize source with Liquidsoap"
msgstr "Synchroniser la source avec Liquidsoap" msgstr "Synchroniser la source avec Liquidsoap"
#: templates/aircox_streamer/source_item.html:31 #: aircox_streamer/templates/aircox_streamer/source_item.html:31
msgid "Synchronise" msgid "Synchronise"
msgstr "Synchroniser" msgstr "Synchroniser"
#: templates/aircox_streamer/source_item.html:34 #: aircox_streamer/templates/aircox_streamer/source_item.html:34
msgid "Restart current track" msgid "Restart current track"
msgstr "Rejouer le morceau en cours" msgstr "Rejouer le morceau en cours"
#: templates/aircox_streamer/source_item.html:38 #: aircox_streamer/templates/aircox_streamer/source_item.html:38
msgid "Restart" msgid "Restart"
msgstr "Rejouer" msgstr "Rejouer"
#: templates/aircox_streamer/source_item.html:41 #: aircox_streamer/templates/aircox_streamer/source_item.html:41
msgid "Skip current file" msgid "Skip current file"
msgstr "Passer le fichier actuel" msgstr "Passer le fichier actuel"
#: templates/aircox_streamer/source_item.html:42 #: aircox_streamer/templates/aircox_streamer/source_item.html:42
msgid "Skip" msgid "Skip"
msgstr "Passer" msgstr "Passer"
#: templates/aircox_streamer/source_item.html:51 #: aircox_streamer/templates/aircox_streamer/source_item.html:51
msgid "Add sound" msgid "Add sound"
msgstr "Ajouter un son" msgstr "Ajouter un son"
#: templates/aircox_streamer/source_item.html:59 #: aircox_streamer/templates/aircox_streamer/source_item.html:59
msgid "Select a sound" msgid "Select a sound"
msgstr "Sélectionner un son" msgstr "Sélectionner un son"
#: templates/aircox_streamer/source_item.html:61 #: aircox_streamer/templates/aircox_streamer/source_item.html:61
msgid "Add a sound to the queue (queue may start playing)" msgid "Add a sound to the queue (queue may start playing)"
msgstr "Ajouter un son à la file de lecture (la file de lecture peut démarer)" msgstr "Ajouter un son à la file de lecture (la file de lecture peut démarer)"
#: templates/aircox_streamer/source_item.html:70 #: aircox_streamer/templates/aircox_streamer/source_item.html:70
msgid "Add" msgid "Add"
msgstr "Ajouter" msgstr "Ajouter"
#: templates/aircox_streamer/source_item.html:76 #: aircox_streamer/templates/aircox_streamer/source_item.html:76
msgid "Sounds in queue" msgid "Sounds in queue"
msgstr "Sons dans la file de lecture" msgstr "Sons dans la file de lecture"
#: templates/aircox_streamer/source_item.html:94 #: aircox_streamer/templates/aircox_streamer/source_item.html:94
msgid "Status" msgid "Status"
msgstr "Statut" msgstr "Statut"
#: templates/aircox_streamer/source_item.html:104 #: aircox_streamer/templates/aircox_streamer/source_item.html:104
msgid "Air time" msgid "Air time"
msgstr "En antenne depuis" msgstr "En antenne depuis"
#: templates/aircox_streamer/source_item.html:114 #: aircox_streamer/templates/aircox_streamer/source_item.html:114
msgid "Time left" msgid "Time left"
msgstr "Temps restant" msgstr "Temps restant"
#: templates/aircox_streamer/source_item.html:122 #: aircox_streamer/templates/aircox_streamer/source_item.html:122
msgid "Data source" msgid "Data source"
msgstr "Source de donnée" msgstr "Source de donnée"
#: templates/aircox_streamer/streamer.html:19 #: aircox_streamer/templates/aircox_streamer/streamer.html:19
msgid "Reload" msgid "Reload"
msgstr "Recharger" msgstr "Recharger"
#: templates/aircox_streamer/streamer.html:26 #: aircox_streamer/templates/aircox_streamer/streamer.html:26
#: templates/aircox_streamer/streamer.html:27 #: aircox_streamer/templates/aircox_streamer/streamer.html:27
msgid "Select a station" msgid "Select a station"
msgstr "Sélectionner une station" msgstr "Sélectionner une station"
#: urls.py:9 views.py:9 #: aircox_streamer/urls.py:9 aircox_streamer/views.py:9
msgid "Streamer Monitor" msgid "Streamer Monitor"
msgstr "Moniteur de stream" msgstr "Moniteur de stream"