Просмотр исходного кода

Fixes #3543 - Translate link text of link template in organization sidebar in ticket zoom.

Rolf Schmidt 3 лет назад
Родитель
Сommit
12ad55279a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/assets/javascripts/app/index.coffee

+ 1 - 1
app/assets/javascripts/app/index.coffee

@@ -161,7 +161,7 @@ class App extends Spine.Controller
     return if _.isEmpty(object[attributeConfig.name])
     return if _.isEmpty(object[attributeConfig.name])
     placeholderObjects = { attribute: attributeConfig, session: App.Session.get(), config: App.Config.all() }
     placeholderObjects = { attribute: attributeConfig, session: App.Session.get(), config: App.Config.all() }
     placeholderObjects[object.constructor.className.toLowerCase()] = object
     placeholderObjects[object.constructor.className.toLowerCase()] = object
-    "<a href=\"#{App.Utils.replaceTags(attributeConfig.linktemplate, placeholderObjects, true)}\" target=\"blank\">#{App.Utils.htmlEscape(resultLocal)}</a>"
+    "<a href=\"#{App.Utils.replaceTags(attributeConfig.linktemplate, placeholderObjects, true)}\" target=\"blank\">#{App.i18n.translateInline(resultLocal)}</a>"
 
 
   @view: (name) ->
   @view: (name) ->
     template = (params = {}) ->
     template = (params = {}) ->