Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cpanel topics 翻譯

  • Loading branch information...
commit 399b982d7d8840809701764b1f5499bfb0a7d637 1 parent f05bd68
@xdite xdite authored
View
2  app/views/cpanel/topics/_form.html.erb
@@ -40,7 +40,7 @@
</div>
</div>
<div class="actions">
- <button class="btn primary">保存</button> or
+ <button class="btn primary"><%= t("common.save") %></button> or
<%= link_to 'Back', cpanel_topics_path %>
</div>
<% end %>
View
2  app/views/cpanel/topics/edit.html.erb
@@ -1,5 +1,5 @@
<% content_for :sitemap do %>
- <a href="<%= cpanel_topics_path %>">帖子</a> &gt; <span class="current">修改</span>
+ <a href="<%= cpanel_topics_path %>"><%= t("cpanel.menu.topics")%></a> &gt; <span class="current"><%= t("common.edit")%></span>
<% end %>
<h1>Editing topic</h1>
View
12 app/views/cpanel/topics/index.html.erb
@@ -1,7 +1,7 @@
<% content_for :sitemap do %>
- <span class="current">帖子</span>
+ <span class="current"><%= t("cpanel.menu.topics")%></span>
<% end %>
-<h1>话题列表</h1>
+<h1><%= t("cpanel.topic_list")%></h1>
<table class="grid">
<tr class="head">
@@ -24,12 +24,12 @@
<td><%= l topic.created_at,:format => :short %></td>
<td>
<% if !topic.suggested_at.blank? %>
- <%= link_to '去置顶', unsuggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
+ <%= link_to t("common.un_top"), unsuggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
<% else %>
- <%= link_to '置顶', suggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
+ <%= link_to t("common.place_top"), suggest_cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :post %>
<% end %>
- <%= link_to '修改', edit_cpanel_topic_path(topic) %>
- <%= link_to '删除', cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :delete %></td>
+ <%= link_to t("common.edit"), edit_cpanel_topic_path(topic) %>
+ <%= link_to t("common.delete"), cpanel_topic_path(topic), :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
View
2  app/views/cpanel/topics/new.html.erb
@@ -1,5 +1,5 @@
<% content_for :sitemap do %>
- <a href="<%= cpanel_topics_path %>">帖子</a> &gt; <span class="current">新建</span>
+ <a href="<%= cpanel_topics_path %>"><%= t("cpanel.menu.topics")%></a> &gt; <span class="current"><%= t("common.create")%></span>
<% end %>
<h1>New topic</h1>
View
5 config/locales/menu.zh-CN.yml
@@ -4,6 +4,9 @@
create: "新建"
avatar: "头像"
save: "保存"
+ delete: "删除"
+ place_top: "置顶"
+ un_top: "去置顶"
menu:
topics: "社区"
wiki: "Wiki"
@@ -31,4 +34,4 @@
edit_setting: "修改设置"
users:
trust_user_can_modify_wiki: "信任用户将可以修改 Wiki"
-
+ topic_list: "话题列表"
View
7 config/locales/menu.zh-TW.yml
@@ -4,6 +4,9 @@
create: "新增"
avatar: "頭像"
save: "儲存"
+ delete: "删除"
+ place_top: "置頂"
+ un_top: "移除置頂"
menu:
topics: "社區"
wiki: "Wiki"
@@ -30,4 +33,6 @@
please_do_not_modify_key: "請勿修改 key"
edit_setting: "修改設定"
users:
- trust_user_can_modify_wiki: "受信任使用者將可以修改 Wiki"
+ trust_user_can_modify_wiki: "受信任使用者將可以修改 Wiki"
+ topic_list: "討論串列表"
+
Please sign in to comment.
Something went wrong with that request. Please try again.