translations added

This commit is contained in:
Harry Bomrah 2017-07-05 14:46:46 +08:00
parent 9c6bef074c
commit acf3333775
4 changed files with 31 additions and 20 deletions

View File

@ -16,9 +16,9 @@
<td><%= file.created_at.strftime("%y/%m/%d") %></td>
<td><%= file.title %></td>
<td>
<a href="<%= file.file.url %>" target="_blank">Download</a>
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
<a href="<%= edit_upload_cuser_file_path(file) %>"><%= t("edit") %></a>
<a style="color: red;" href="<%= delete_upload_cuser_file_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("delete") %></a>
<a style="color: red;" href="<%= delete_upload_cuser_file_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
</td>
</tr>
<% end %>
@ -48,9 +48,9 @@
<td><%= file.created_at.strftime("%y/%m/%d") %></td>
<td><%= file.title %></td>
<td>
<a href="<%= file.file.url %>" target="_blank">Download</a>
<a href="<%= file.file.url %>" target="_blank"><%= t("member_counselor.download") %></a>
<a href="<%= edit_upload_cuser_result_path(file) %>"><%= t("edit") %></a>
<a style="color: red;" href="<%= delete_upload_cuser_result_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("delete") %></a>
<a style="color: red;" href="<%= delete_upload_cuser_result_path(file) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
</td>
</tr>
<% end %>

View File

@ -1,7 +1,7 @@
<%= csrf_meta_tag %>
<script type="text/javascript" src="/assets/jquery_ujs.js"></script>
<table width="100%" border="1">
<caption>輔導記錄單 <a href="<%= new_counselor_record_path %>" style="float: right;" class="btn btn-primary">New Record</a></caption>
<caption>輔導記錄單 <a href="<%= new_counselor_record_path %>" style="float: right;" class="btn btn-primary"><%= t("member_counselor.new_record") %></a></caption>
<thead>
<tr>
<th width="100px" >新增日期</th>
@ -16,15 +16,15 @@
<td><%= record.created_at.strftime("%y/%m/%d") %></td>
<td><%= record.get_title %></td>
<td>
<a href="<%= edit_counselor_record_path(record) %>">Edit</a>
<a href="<%= show_counselor_record_path(record) %>">View</a>
<a style="color: red;" href="<%= delete_counselor_record_path(record) %>" data-method="delete" data-confirm="Are you sure?">Delete</a>
<a href="<%= edit_counselor_record_path(record) %>"><%= t("edit") %></a>
<a href="<%= show_counselor_record_path(record) %>"><%= t("member_counselor.view") %></a>
<a style="color: red;" href="<%= delete_counselor_record_path(record) %>" data-method="delete" data-confirm="Are you sure?"><%= t("member_counselor.delete") %></a>
</td>
</tr>
<% end %>
<% else %>
<tr>
<td colspan="3" style="text-align: center;">No records found.</td>
<td colspan="3" style="text-align: center;"><%= t("member_counselor.no_record_found") %></td>
</tr>
<% end %>
</tbody>

View File

@ -36,3 +36,8 @@ en:
date: Date
action: Action
no_files_uploaded: No Files Uploaded
delete: Delete
download: Download
new_record: New Record
view: View
no_record_found: No Record Found

View File

@ -1,11 +1,11 @@
zh_tw:
member_counselor:
member_counselor: HPS Members
new_user: Create User
all_members: All Members
uploads: Uploads
results: Results
records: Counselor Records
member_counselor: HPS 會員
new_user: 新增使用者
all_members: 所有會員
uploads: 上傳
results: 成果報告
records: 輔導委員記錄
account: 帳號
password: 密碼
confirm_password: 確認密碼
@ -16,7 +16,7 @@ zh_tw:
organization: 服務機關
title: 職稱
event_title: 會議/活動名稱
export: Export
export: 匯出
county: 縣市
address: 地址
email: 電子信箱
@ -27,15 +27,21 @@ zh_tw:
type1: 學校單位
type2: 縣市政府
type3: 輔導委員
user_type: User Type
user_type: 會員身份
school: 學校
city: 縣市
year: 年度
file_date: Date
downloaded_times: Download Count
file_date: 日期
downloaded_times: 下載次數
date: 日期
action: 操作
no_files_uploaded: 尚未上傳任何檔案
delete: 刪除
download: 下載
new_record: 新記錄
view: 預覽
no_record_found: 無記錄