From 2a00565bc4457375ecaf822f67a26434e08d9e93 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 31 Mar 2007 15:51:44 +0000 Subject: Added chinese simplified translation (Andy Wu) Fixed rfpdf chinese.rb git-svn-id: http://redmine.rubyforge.org/svn/trunk@393 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/ifpdf_helper.rb | 5 +++++ app/views/mailer/attachments_add_zh.rhtml | 6 ++++++ app/views/mailer/document_add_zh.rhtml | 4 ++++ app/views/mailer/issue_add_zh.rhtml | 3 +++ app/views/mailer/issue_edit_zh.rhtml | 8 ++++++++ app/views/mailer/lost_password_zh.rhtml | 3 +++ app/views/mailer/register_zh.rhtml | 3 +++ 7 files changed, 32 insertions(+) create mode 100644 app/views/mailer/attachments_add_zh.rhtml create mode 100644 app/views/mailer/document_add_zh.rhtml create mode 100644 app/views/mailer/issue_add_zh.rhtml create mode 100644 app/views/mailer/issue_edit_zh.rhtml create mode 100644 app/views/mailer/lost_password_zh.rhtml create mode 100644 app/views/mailer/register_zh.rhtml (limited to 'app') diff --git a/app/helpers/ifpdf_helper.rb b/app/helpers/ifpdf_helper.rb index 267f96667..755692f65 100644 --- a/app/helpers/ifpdf_helper.rb +++ b/app/helpers/ifpdf_helper.rb @@ -33,6 +33,11 @@ module IfpdfHelper AddSJISFont() @font_for_content = 'SJIS' @font_for_footer = 'SJIS' + when :zh + extend(PDF_Chinese) + AddBig5Font() + @font_for_content = 'Big5' + @font_for_footer = 'Big5' else @font_for_content = 'Arial' @font_for_footer = 'Helvetica' diff --git a/app/views/mailer/attachments_add_zh.rhtml b/app/views/mailer/attachments_add_zh.rhtml new file mode 100644 index 000000000..81e2974c1 --- /dev/null +++ b/app/views/mailer/attachments_add_zh.rhtml @@ -0,0 +1,6 @@ +<%= @added_to %> +<%= @attachments.size %> files(s) added. +<% @attachments.each do |attachment | %> +- <%= attachment.filename %><% end %> + +<%= @url %> \ No newline at end of file diff --git a/app/views/mailer/document_add_zh.rhtml b/app/views/mailer/document_add_zh.rhtml new file mode 100644 index 000000000..67648de15 --- /dev/null +++ b/app/views/mailer/document_add_zh.rhtml @@ -0,0 +1,4 @@ +A document has been added to <%= @document.project.name %> (<%= @document.category.name %>): +<%= l(:field_title) %>: <%= @document.title %> + +http://<%= Setting.host_name %>/documents/show/<%= @document.id %> \ No newline at end of file diff --git a/app/views/mailer/issue_add_zh.rhtml b/app/views/mailer/issue_add_zh.rhtml new file mode 100644 index 000000000..823de2cef --- /dev/null +++ b/app/views/mailer/issue_add_zh.rhtml @@ -0,0 +1,3 @@ +Issue #<%= @issue.id %> has been reported. +---------------------------------------- +<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %> \ No newline at end of file diff --git a/app/views/mailer/issue_edit_zh.rhtml b/app/views/mailer/issue_edit_zh.rhtml new file mode 100644 index 000000000..7a9ca1634 --- /dev/null +++ b/app/views/mailer/issue_edit_zh.rhtml @@ -0,0 +1,8 @@ +Issue #<%= @issue.id %> has been updated. +<%= @journal.user.name %> +<% for detail in @journal.details %> +<%= show_detail(detail, true) %> +<% end %> +<%= @journal.notes if @journal.notes? %> +---------------------------------------- +<%= render :file => "_issue", :use_full_path => true, :locals => { :issue => @issue } %> \ No newline at end of file diff --git a/app/views/mailer/lost_password_zh.rhtml b/app/views/mailer/lost_password_zh.rhtml new file mode 100644 index 000000000..332ddeb0b --- /dev/null +++ b/app/views/mailer/lost_password_zh.rhtml @@ -0,0 +1,3 @@ +To change your password, use the following link: + +http://<%= Setting.host_name %>/account/lost_password?token=<%= @token.value %> \ No newline at end of file diff --git a/app/views/mailer/register_zh.rhtml b/app/views/mailer/register_zh.rhtml new file mode 100644 index 000000000..64477febc --- /dev/null +++ b/app/views/mailer/register_zh.rhtml @@ -0,0 +1,3 @@ +To activate your redMine account, use the following link: + +http://<%= Setting.host_name %>/account/register?token=<%= @token.value %> \ No newline at end of file -- cgit v1.2.3