Skip to content

Commit

Permalink
Add missing translations, changed texts to customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
Gratzerjoey authored and dpausp committed Nov 30, 2021
1 parent acef95a commit c73454a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
| 
Expand Down
9 changes: 9 additions & 0 deletions src/ekklesia_portal/helper/missing_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
5 changes: 4 additions & 1 deletion src/ekklesia_portal/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1755,4 +1759,3 @@ msgstr "Enthaltung"
#~ msgid_plural "propositions"
#~ msgstr[0] "Antrag"
#~ msgstr[1] "Anträge"

5 changes: 4 additions & 1 deletion src/ekklesia_portal/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1725,4 +1729,3 @@ msgstr "Abstention"
#~ msgid_plural "propositions"
#~ msgstr[0] "proposition"
#~ msgstr[1] "propositions"

0 comments on commit c73454a

Please sign in to comment.