Created
December 5, 2012 08:00
-
-
Save aoi0308/4213642 to your computer and use it in GitHub Desktop.
ezLibrarianの修正パッチと日本語対応
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r -u redmine_ezlibrarian.origin//app/views/lib_mailer/lib_new.text.html.rhtml redmine_ezlibrarian/app/views/lib_mailer/lib_new.text.html.rhtml | |
--- redmine_ezlibrarian.origin//app/views/lib_mailer/lib_new.text.html.rhtml 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/lib_mailer/lib_new.text.html.rhtml 2011-08-26 09:20:51.281250000 +0900 | |
@@ -34,7 +34,7 @@ | |
<td style="width:35%"><%= @book.holder_change_histories_count > 1 ? "#{@book.holder_change_histories_count - 1} " : 0 %></td> | |
</tr> | |
<tr> | |
- <td style="width:15%"><b><%=l(:field_author)%>:</b></td> | |
+ <td style="width:15%"><b><%=l(:field_book_author)%>:</b></td> | |
<td style="width:35%"><%= @book.author %></td> | |
<% if @book.translator && @book.translator.length > 0 %> | |
<td style="width:15%"><b><%=l(:field_translator)%>:</b></td> | |
diff -r -u redmine_ezlibrarian.origin//app/views/lib_mailer/lib_new.text.plain.rhtml redmine_ezlibrarian/app/views/lib_mailer/lib_new.text.plain.rhtml | |
--- redmine_ezlibrarian.origin//app/views/lib_mailer/lib_new.text.plain.rhtml 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/lib_mailer/lib_new.text.plain.rhtml 2011-08-26 09:14:47.671875000 +0900 | |
@@ -11,7 +11,7 @@ | |
<%=l(:field_created_on)%>:<%= @book.created_on.strftime('%Y-%m-%d') %> | |
<%=l(:field_holder_change_histories_count)%>:<%= @book.holder_change_histories_count > 1 ? "#{@book.holder_change_histories_count - 1}" : 0 %> | |
-<%=l(:field_author)%>:<%= @book.author %> | |
+<%=l(:field_book_author)%>:<%= @book.author %> | |
<% if @book.translator && @book.translator.length > 0 %> | |
<%=l(:field_translator)%>:<%= @book.translator %> | |
<% end %> | |
diff -r -u redmine_ezlibrarian.origin//app/views/lib_mailer/lib_update.text.html.rhtml redmine_ezlibrarian/app/views/lib_mailer/lib_update.text.html.rhtml | |
--- redmine_ezlibrarian.origin//app/views/lib_mailer/lib_update.text.html.rhtml 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/lib_mailer/lib_update.text.html.rhtml 2011-08-26 09:21:04.156250000 +0900 | |
@@ -34,7 +34,7 @@ | |
<td style="width:35%"><%= @book.holder_change_histories_count > 1 ? "#{@book.holder_change_histories_count - 1}" : 0 %></td> | |
</tr> | |
<tr> | |
- <td style="width:15%"><b><%=l(:field_author)%>:</b></td> | |
+ <td style="width:15%"><b><%=l(:field_book_author)%>:</b></td> | |
<td style="width:35%"><%= @book.author %></td> | |
<% if @book.translator && @book.translator.length > 0 %> | |
<td style="width:15%"><b><%=l(:field_translator)%>:</b></td> | |
diff -r -u redmine_ezlibrarian.origin//app/views/lib_mailer/lib_update.text.plain.rhtml redmine_ezlibrarian/app/views/lib_mailer/lib_update.text.plain.rhtml | |
--- redmine_ezlibrarian.origin//app/views/lib_mailer/lib_update.text.plain.rhtml 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/lib_mailer/lib_update.text.plain.rhtml 2011-08-26 09:21:17.968750000 +0900 | |
@@ -11,7 +11,7 @@ | |
<%=l(:field_created_on)%>:<%= @book.created_on.strftime('%Y-%m-%d') %> | |
<%=l(:field_holder_change_histories_count)%>:<%= @book.holder_change_histories_count > 1 ? "#{@book.holder_change_histories_count - 1}" : 0 %> | |
-<%=l(:field_author)%>:<%= @book.author %> | |
+<%=l(:field_book_author)%>:<%= @book.author %> | |
<% if @book.translator && @book.translator.length > 0 %> | |
<%=l(:field_translator)%>:<%= @book.translator %> | |
<% end %> | |
diff -r -u redmine_ezlibrarian.origin//app/views/lib_mailer/send_statement.text.html.rhtml redmine_ezlibrarian/app/views/lib_mailer/send_statement.text.html.rhtml | |
--- redmine_ezlibrarian.origin//app/views/lib_mailer/send_statement.text.html.rhtml 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/lib_mailer/send_statement.text.html.rhtml 2011-08-26 09:36:06.968750000 +0900 | |
@@ -41,7 +41,7 @@ | |
<td style="width:35%"><%=ts[0].created_on.strftime('%Y-%m-%d') %></td> | |
</tr> | |
<tr> | |
- <td style="width:15%"><b><%=l(:field_author)%>:</b></td> | |
+ <td style="width:15%"><b><%=l(:field_book_author)%>:</b></td> | |
<td style="width:35%"><%= b.author %></td> | |
<% if b.translator && b.translator.length > 0 %> | |
<td style="width:15%"><b><%=l(:field_translator)%>:</b></td> | |
diff -r -u redmine_ezlibrarian.origin//app/views/treasures/_book_form.html.erb redmine_ezlibrarian/app/views/treasures/_book_form.html.erb | |
--- redmine_ezlibrarian.origin//app/views/treasures/_book_form.html.erb 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/treasures/_book_form.html.erb 2011-08-26 10:51:41.515625000 +0900 | |
@@ -1,6 +1,6 @@ | |
<p><%= f.text_field :title, :label => :field_book_title, :size => 80, :required => true %></p> | |
<p><%= f.text_field :original_title, :size => 80 %></p> | |
-<p><%= f.text_field :author, :size => 80, :required => true %></p> | |
+<p><%= f.text_field :author, :label => :field_book_author, :size => 80, :required => true %></p> | |
<p><%= f.text_field :translator, :size => 80 %></p> | |
<p><%= f.text_field :publisher, :size => 80, :required => true %></p> | |
<p><%= f.text_field :published_on, :size => 10, :required => true %><%= calendar_for('book_published_on') %></p> | |
diff -r -u redmine_ezlibrarian.origin//app/views/treasures/show_book.html.erb redmine_ezlibrarian/app/views/treasures/show_book.html.erb | |
--- redmine_ezlibrarian.origin//app/views/treasures/show_book.html.erb 2009-07-14 14:13:45.000000000 +0900 | |
+++ redmine_ezlibrarian/app/views/treasures/show_book.html.erb 2011-08-26 11:01:36.609375000 +0900 | |
@@ -22,7 +22,7 @@ | |
<td style="width:35%"><%= @book.holder_change_histories_count > 1 ? "#{@book.holder_change_histories_count - 1} (" + link_to(l(:button_view), :action => 'show_holder_change_histories', :id => @book, :type => 'book', :project_id => @project) + ')' : 0 %></td> | |
</tr> | |
<tr> | |
- <td style="width:15%"><b><%=l(:field_author)%>:</b></td> | |
+ <td style="width:15%"><b><%=l(:field_book_author)%>:</b></td> | |
<td style="width:35%"><%= @book.author %></td> | |
<% if @book.translator && @book.translator.length > 0 %> | |
<td style="width:15%"><b><%=l(:field_translator)%>:</b></td> | |
Only in redmine_ezlibrarian/config/locales: ja.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ja: | |
label_booty_bay: 購入品 | |
label_library: 本棚 | |
label_book_new: 本の登録 | |
label_book_edit: 本の更新 | |
label_device_room: デバイス管理 | |
label_device_new: デバイスの登録 | |
label_device_edit: デバイスの変更 | |
label_holder_change_histories: < {{value}} > の変更履歴 | |
label_holder_change_count: "{{age}} 以降、{{count}}回更新されました。" | |
label_review: レビュー | |
label_add_review: レビュー作成 | |
label_nobody: 奈々氏 | |
label_statement: 確認メールの送信 | |
field_book_id: 書籍No. | |
field_book_title: 書籍名 | |
field_original_title: 原書名 | |
field_book_author: 著者 | |
field_translator: 翻訳者 | |
field_publisher: 出版社 | |
field_published_on: 発行日 | |
field_isbn: ISBN | |
field_pages: ページ数 | |
field_content: 要約 | |
field_device_id: デバイスNo. | |
field_device_name: デバイス名 | |
field_device_model: 型番 | |
field_device_vendor: 製作会社 | |
field_manufactured_on: 発売日 | |
field_value: 値段 | |
field_intro_url: Webへのリンク | |
field_holder: 所有者 | |
field_updater: 更新者 | |
field_reviews_count: レビュー数 | |
field_holder_change_histories_count: 所有者変更回数 | |
field_got_time: 更新時間 | |
text_statement_count: 送信されるメール数 | |
text_statement_receiver: 詳細情報は、{{name}} さんに送信されます | |
text_statement_submit: 送信 | |
text_send_successful: メールの送信に成功しました。 | |
text_title_statement: 情報は以下のように送信されます | |
text_last_holder: 最後の所有者 | |
text_current_holder: 現在の所有者 | |
text_holder_change_notice: 所有者が変更されました。詳細は下記を参照してください。 | |
text_book_created_subject: 書籍貸し出し通知 | |
text_device_created_subject: デバイス貸し出し通知 | |
text_book_holder_change_subject: 書籍所有者変更通知 <{{name}}> | |
text_device_holder_change_subject: デバイス所有者変更通知 <{{name}}> | |
text_book_created: 書籍が新しく追加されました。詳細は下記を参照してください。 | |
text_device_created: デバイスが新しく追加されました。詳細は下記を参照してください。 | |
text_statement_subject: 所有者状況報告 | |
text_send_hello: こんにちは | |
text_send_books: 書籍 | |
text_send_datetime: 貸出日 | |
text_send_devices: デバイス | |
text_statement_hello: 詳細は下記になります。 | |
permission_view_treasures: 購入品の閲覧 | |
permission_manage_treasures: 購入品の管理 | |
project_module_ezlibrarian: 購入品 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment