added Chinese templates for Slack (#916)

This commit is contained in:
Never 2017-04-02 20:54:57 +08:00 committed by André Bauer
parent eb287c6b90
commit 8ec9073d66
10 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 创建_
* #{t('Group')}: #{ticket.group.name}
* #{t('Owner')}: #{ticket.owner.fullname}
* #{t('State')}: #{t(ticket.state.name)}
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,9 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 創建_
* #{t('Group')}: #{ticket.group.name}
* #{t('Owner')}: #{ticket.owner.fullname}
* #{t('State')}: #{t(ticket.state.name)}
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 在 #{ticket.escalation_at} 开始升级_
"#{ticket.customer.longname}" 的工单 (#{ticket.title}) 已经在 "#{ticket.escalation_at}" 开始升级!
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 在 #{ticket.escalation_at} 開始升級_
"#{ticket.customer.longname}" 的工單 (#{ticket.title}) 已經在 "#{ticket.escalation_at}" 開始升級!
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 即将在 #{ticket.escalation_at} 开始升级_
"#{ticket.customer.longname}" 的工单 (#{ticket.title}) 即将在 "#{ticket.escalation_at}" 开始升级!
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 即將在 #{ticket.escalation_at} 開始升級_
"#{ticket.customer.longname}" 的工單 (#{ticket.title}) 即將在 "#{ticket.escalation_at}" 開始升級!
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 到达提醒时间!_
请留意, "*#{ticket.customer.longname}*" 的工单 (#{ticket.title}) 到达提醒时间.
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,7 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 到達提醒時間!_
請留意, "*#{ticket.customer.longname}*" 的工單 (#{ticket.title}) 到達提醒時間.
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,11 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_
<% if @objects[:changes] && !@objects[:changes].empty? %>
<% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %>
<% end %>
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>

View file

@ -0,0 +1,11 @@
# #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_
<% if @objects[:changes] && !@objects[:changes].empty? %>
<% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %>
<% end %>
<% if @objects[:article] %>
#{article.body_as_text}
<% end %>