Maintenance: Fix untranslatable wording in the ticket link dialog.

This commit is contained in:
Martin Gruner 2022-02-07 13:19:21 +01:00
parent b858b97742
commit c86ead67e4
2 changed files with 10 additions and 18 deletions

View file

@ -1,21 +1,18 @@
<fieldset>
<% if @link_types.length > 1: %>
<%- @T('Link') %>
<%- @T(@link_object) %>
<% ticket_number_input = () => %>
<input type="text" name="ticket_number" value="" class="span2" required/>
<% end %>
<input type="text" name="ticket_number" value="" class="span2" required/>
<% if @link_types.length > 1: %>
<%- @T('as') %>
<% link_type_selector = () => %>
<select name="link_type" class="span2" required>
<% for link_type in @link_types: %>
<option value="<%= link_type[0] %>"><%- @T(link_type[1]) %></option>
<% end %>
</select>
<%- @T('of') %>
Ticket#
<%= @object.number %>.
<% end %>
<%- App.i18n.translatePlain( 'Link %s %s as %s of Ticket# %s', @T(@link_object), ticket_number_input(), link_type_selector(), @object.number ) %>
<% else: %>
<%- ticket_number_input() %>
<input type="hidden" name="link_type" value="<%= @link_types[0][0] %>"/>
<% end %>

View file

@ -5475,7 +5475,6 @@ msgstr ""
#: app/assets/javascripts/app/controllers/_ui_element/richtext_additions/link_button.coffee
#: app/assets/javascripts/app/controllers/ticket_link_add.coffee
#: app/assets/javascripts/app/models/overview.coffee
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "Link"
msgstr ""
@ -5483,6 +5482,10 @@ msgstr ""
msgid "Link %s"
msgstr ""
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "Link %s %s as %s of Ticket# %s"
msgstr ""
#: app/assets/javascripts/app/views/profile/linked_accounts.jst.eco
msgid "Link Accounts"
msgstr ""
@ -10762,10 +10765,6 @@ msgstr ""
msgid "archived"
msgstr ""
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "as"
msgstr ""
#: app/assets/javascripts/app/views/ticket_overview/batch_overlay.jst.eco
msgid "assign tickets"
msgstr ""
@ -11221,10 +11220,6 @@ msgstr ""
msgid "note"
msgstr ""
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "of"
msgstr ""
#: db/seeds/ticket_state_types.rb
#: db/seeds/ticket_states.rb
msgid "open"