added Chinese templates for Slack (#916)
This commit is contained in:
parent
eb287c6b90
commit
8ec9073d66
10 changed files with 82 additions and 0 deletions
9
app/views/slack/ticket_create/zh-cn.md.erb
Normal file
9
app/views/slack/ticket_create/zh-cn.md.erb
Normal 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 %>
|
9
app/views/slack/ticket_create/zh-tw.md.erb
Normal file
9
app/views/slack/ticket_create/zh-tw.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_escalation/zh-cn.md.erb
Normal file
7
app/views/slack/ticket_escalation/zh-cn.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_escalation/zh-tw.md.erb
Normal file
7
app/views/slack/ticket_escalation/zh-tw.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_escalation_warning/zh-cn.md.erb
Normal file
7
app/views/slack/ticket_escalation_warning/zh-cn.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_escalation_warning/zh-tw.md.erb
Normal file
7
app/views/slack/ticket_escalation_warning/zh-tw.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_reminder_reached/zh-cn.md.erb
Normal file
7
app/views/slack/ticket_reminder_reached/zh-cn.md.erb
Normal 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 %>
|
7
app/views/slack/ticket_reminder_reached/zh-tw.md.erb
Normal file
7
app/views/slack/ticket_reminder_reached/zh-tw.md.erb
Normal 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 %>
|
11
app/views/slack/ticket_update/zh-cn.md.erb
Normal file
11
app/views/slack/ticket_update/zh-cn.md.erb
Normal 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 %>
|
11
app/views/slack/ticket_update/zh-tw.md.erb
Normal file
11
app/views/slack/ticket_update/zh-tw.md.erb
Normal 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 %>
|
Loading…
Reference in a new issue