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> <fieldset>
<% if @link_types.length > 1: %> <% ticket_number_input = () => %>
<%- @T('Link') %>
<%- @T(@link_object) %>
<% end %>
<input type="text" name="ticket_number" value="" class="span2" required/> <input type="text" name="ticket_number" value="" class="span2" required/>
<% end %>
<% if @link_types.length > 1: %> <% if @link_types.length > 1: %>
<%- @T('as') %> <% link_type_selector = () => %>
<select name="link_type" class="span2" required> <select name="link_type" class="span2" required>
<% for link_type in @link_types: %> <% for link_type in @link_types: %>
<option value="<%= link_type[0] %>"><%- @T(link_type[1]) %></option> <option value="<%= link_type[0] %>"><%- @T(link_type[1]) %></option>
<% end %> <% end %>
</select> </select>
<%- @T('of') %> <% end %>
Ticket# <%- App.i18n.translatePlain( 'Link %s %s as %s of Ticket# %s', @T(@link_object), ticket_number_input(), link_type_selector(), @object.number ) %>
<%= @object.number %>.
<% else: %> <% else: %>
<%- ticket_number_input() %>
<input type="hidden" name="link_type" value="<%= @link_types[0][0] %>"/> <input type="hidden" name="link_type" value="<%= @link_types[0][0] %>"/>
<% end %> <% 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/_ui_element/richtext_additions/link_button.coffee
#: app/assets/javascripts/app/controllers/ticket_link_add.coffee #: app/assets/javascripts/app/controllers/ticket_link_add.coffee
#: app/assets/javascripts/app/models/overview.coffee #: app/assets/javascripts/app/models/overview.coffee
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "Link" msgid "Link"
msgstr "" msgstr ""
@ -5483,6 +5482,10 @@ msgstr ""
msgid "Link %s" msgid "Link %s"
msgstr "" 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 #: app/assets/javascripts/app/views/profile/linked_accounts.jst.eco
msgid "Link Accounts" msgid "Link Accounts"
msgstr "" msgstr ""
@ -10762,10 +10765,6 @@ msgstr ""
msgid "archived" msgid "archived"
msgstr "" 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 #: app/assets/javascripts/app/views/ticket_overview/batch_overlay.jst.eco
msgid "assign tickets" msgid "assign tickets"
msgstr "" msgstr ""
@ -11221,10 +11220,6 @@ msgstr ""
msgid "note" msgid "note"
msgstr "" msgstr ""
#: app/assets/javascripts/app/views/link/ticket/add.jst.eco
msgid "of"
msgstr ""
#: db/seeds/ticket_state_types.rb #: db/seeds/ticket_state_types.rb
#: db/seeds/ticket_states.rb #: db/seeds/ticket_states.rb
msgid "open" msgid "open"