Commit 7f0a29f7 authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

PDF: set enable to use TCPDF UTF-8 on Windows except CJK and Thai (#61).

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5291 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6485f15b
...@@ -179,8 +179,7 @@ module Redmine ...@@ -179,8 +179,7 @@ module Redmine
# Returns a PDF string of a list of issues # Returns a PDF string of a list of issues
def issues_to_pdf(issues, project, query) def issues_to_pdf(issues, project, query)
if Redmine::Platform.mswin? || if ( current_language.to_s.downcase == 'ko' ||
( current_language.to_s.downcase == 'ko' ||
current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'ja' ||
current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh' ||
current_language.to_s.downcase == 'zh-tw' || current_language.to_s.downcase == 'zh-tw' ||
...@@ -259,8 +258,7 @@ module Redmine ...@@ -259,8 +258,7 @@ module Redmine
# Returns a PDF string of a single issue # Returns a PDF string of a single issue
def issue_to_pdf(issue) def issue_to_pdf(issue)
if Redmine::Platform.mswin? || if ( current_language.to_s.downcase == 'ko' ||
( current_language.to_s.downcase == 'ko' ||
current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'ja' ||
current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh' ||
current_language.to_s.downcase == 'zh-tw' || current_language.to_s.downcase == 'zh-tw' ||
......
...@@ -511,8 +511,7 @@ module Redmine ...@@ -511,8 +511,7 @@ module Redmine
end if Object.const_defined?(:Magick) end if Object.const_defined?(:Magick)
def to_pdf def to_pdf
if Redmine::Platform.mswin? || if ( current_language.to_s.downcase == 'ko' ||
( current_language.to_s.downcase == 'ko' ||
current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'ja' ||
current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh' ||
current_language.to_s.downcase == 'zh-tw' || current_language.to_s.downcase == 'zh-tw' ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment