diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-31 15:51:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-31 15:51:44 +0000 |
commit | 2a00565bc4457375ecaf822f67a26434e08d9e93 (patch) | |
tree | ec9d47655edc14a615b5351c439e9da9028ab84f /app | |
parent | 5e0e9518675a5096b8ec1b55159b3ab16cc12f67 (diff) | |
download | redmine-2a00565bc4457375ecaf822f67a26434e08d9e93.tar.gz redmine-2a00565bc4457375ecaf822f67a26434e08d9e93.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/ifpdf_helper.rb | 5 | ||||
-rw-r--r-- | app/views/mailer/attachments_add_zh.rhtml | 6 | ||||
-rw-r--r-- | app/views/mailer/document_add_zh.rhtml | 4 | ||||
-rw-r--r-- | app/views/mailer/issue_add_zh.rhtml | 3 | ||||
-rw-r--r-- | app/views/mailer/issue_edit_zh.rhtml | 8 | ||||
-rw-r--r-- | app/views/mailer/lost_password_zh.rhtml | 3 | ||||
-rw-r--r-- | app/views/mailer/register_zh.rhtml | 3 |
7 files changed, 32 insertions, 0 deletions
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 |