From 521c0aa55590785d9e3767cb7848eebe7c01d01f Mon Sep 17 00:00:00 2001 From: Gratzerjoey Date: Tue, 16 Nov 2021 20:10:09 +0100 Subject: [PATCH] Add missing translations, changed texts to customizable #87 --- .../concepts/proposition/templates/proposition.j2.jade | 4 ++-- .../proposition/templates/proposition_actions.j2.jade | 2 +- .../concepts/proposition/templates/propositions.j2.jade | 2 +- src/ekklesia_portal/helper/missing_translations.py | 9 +++++++++ .../translations/de/LC_MESSAGES/messages.po | 4 ++++ .../translations/en/LC_MESSAGES/messages.po | 4 ++++ 6 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/ekklesia_portal/concepts/proposition/templates/proposition.j2.jade b/src/ekklesia_portal/concepts/proposition/templates/proposition.j2.jade index 82a8e081..de813232 100644 --- a/src/ekklesia_portal/concepts/proposition/templates/proposition.j2.jade +++ b/src/ekklesia_portal/concepts/proposition/templates/proposition.j2.jade @@ -20,7 +20,7 @@ a.nav-link(href=discussion_url, class=discussion_link_class)= _("tab_discussion") li.nav-item - a.nav-link(href=associated_url, class=associated_link_class)= _("tab_associated") + a.nav-link(href=associated_url, class=associated_link_class)= customizable_text("tab_associated")|markdown .card-body(class=("" if not current_user_is_supporter else "card-body-supported")) = render_cell(_model, 'card', **options) @@ -96,7 +96,7 @@ a(href=new_associated_proposition_url("counter")) .button_add_related i.fas.fa-circle   - = _("button_add_counter_proposition") + = customizable_text("button_add_counter_proposition")|markdown // generated from jade //- vim: set filetype=jade sw=2 ts=2 sts=2 expandtab: diff --git a/src/ekklesia_portal/concepts/proposition/templates/proposition_actions.j2.jade b/src/ekklesia_portal/concepts/proposition/templates/proposition_actions.j2.jade index bcc2777b..d0529234 100644 --- a/src/ekklesia_portal/concepts/proposition/templates/proposition_actions.j2.jade +++ b/src/ekklesia_portal/concepts/proposition/templates/proposition_actions.j2.jade @@ -25,7 +25,7 @@ if options.active_tab == 'associated' a.btn.btn-secondary.btn-sm(href="#bottom") i.far.fa-comments   - = _("button_goto_associated") + = customizable_text("button_goto_associated")|markdown if report_url a.btn.btn-sm(href=report_url) diff --git a/src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade b/src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade index ea9afafc..7325f29f 100644 --- a/src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade +++ b/src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade @@ -162,7 +162,7 @@ = "document.getElementById('submit_page_count').style.display = 'none';" | safe .proposition-export - span.mr-1 Angezeigte Anträge als Datei exportieren: + span.mr-1= _('export_proposition_to_file')+":" a.btn.btn-secondary(href=export_csv_url, title=_('export_as_csv')) i.fas.fa-file-csv |  diff --git a/src/ekklesia_portal/helper/missing_translations.py b/src/ekklesia_portal/helper/missing_translations.py index db476602..e2b37b12 100644 --- a/src/ekklesia_portal/helper/missing_translations.py +++ b/src/ekklesia_portal/helper/missing_translations.py @@ -7,3 +7,12 @@ # XXX: add an extractor for customizable texts _("unhandled_exception_help_text") +_("document_propose_change_explanation") +_("ekklesia_login_explanation") +_("new_draft_explanation") +_("submit_draft_explanation") +_("push_draft_external_template") +_("push_draft_portal_template") +_("tab_associated") +_("button_add_counter_proposition") +_("button_goto_associated") \ No newline at end of file diff --git a/src/ekklesia_portal/translations/de/LC_MESSAGES/messages.po b/src/ekklesia_portal/translations/de/LC_MESSAGES/messages.po index a905bac1..e1cfd396 100644 --- a/src/ekklesia_portal/translations/de/LC_MESSAGES/messages.po +++ b/src/ekklesia_portal/translations/de/LC_MESSAGES/messages.po @@ -928,6 +928,10 @@ msgstr "Setzen" msgid "export_as_csv" msgstr "Als CSV exportieren (OpenSlides-Format)" +#: src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade:165 +msgid "export_proposition_to_file" +msgstr "Angezeigte Anträge als Datei exportieren:" + #: src/ekklesia_portal/concepts/proposition/templates/propositions_pager.j2.jade:2 msgid "showing_all_propositions" msgstr "Alle %(count)s Anträge werden angezeigt" diff --git a/src/ekklesia_portal/translations/en/LC_MESSAGES/messages.po b/src/ekklesia_portal/translations/en/LC_MESSAGES/messages.po index 8c2204b4..ef03e67d 100644 --- a/src/ekklesia_portal/translations/en/LC_MESSAGES/messages.po +++ b/src/ekklesia_portal/translations/en/LC_MESSAGES/messages.po @@ -924,6 +924,10 @@ msgstr "Set" msgid "export_as_csv" msgstr "Export as CSV (OpenSlides format)" +#: src/ekklesia_portal/concepts/proposition/templates/propositions.j2.jade:165 +msgid "export_proposition_to_file" +msgstr "Export displayed propositions to file:" + #: src/ekklesia_portal/concepts/proposition/templates/propositions_pager.j2.jade:2 msgid "showing_all_propositions" msgstr "Showing all %(count)s propositions"