##// END OF EJS Templates
PDF: set enable to use TCPDF UTF-8 on Windows except CJK and Thai (#61)....
Toshi MARUYAMA -
r5171:859e8ae8283b
parent child
Show More
@@ -179,8 +179,7 module Redmine
179
179
180 # Returns a PDF string of a list of issues
180 # Returns a PDF string of a list of issues
181 def issues_to_pdf(issues, project, query)
181 def issues_to_pdf(issues, project, query)
182 if Redmine::Platform.mswin? ||
182 if ( current_language.to_s.downcase == 'ko' ||
183 ( current_language.to_s.downcase == 'ko' ||
184 current_language.to_s.downcase == 'ja' ||
183 current_language.to_s.downcase == 'ja' ||
185 current_language.to_s.downcase == 'zh' ||
184 current_language.to_s.downcase == 'zh' ||
186 current_language.to_s.downcase == 'zh-tw' ||
185 current_language.to_s.downcase == 'zh-tw' ||
@@ -259,8 +258,7 module Redmine
259
258
260 # Returns a PDF string of a single issue
259 # Returns a PDF string of a single issue
261 def issue_to_pdf(issue)
260 def issue_to_pdf(issue)
262 if Redmine::Platform.mswin? ||
261 if ( current_language.to_s.downcase == 'ko' ||
263 ( current_language.to_s.downcase == 'ko' ||
264 current_language.to_s.downcase == 'ja' ||
262 current_language.to_s.downcase == 'ja' ||
265 current_language.to_s.downcase == 'zh' ||
263 current_language.to_s.downcase == 'zh' ||
266 current_language.to_s.downcase == 'zh-tw' ||
264 current_language.to_s.downcase == 'zh-tw' ||
@@ -507,8 +507,7 module Redmine
507 end if Object.const_defined?(:Magick)
507 end if Object.const_defined?(:Magick)
508
508
509 def to_pdf
509 def to_pdf
510 if Redmine::Platform.mswin? ||
510 if ( current_language.to_s.downcase == 'ko' ||
511 ( current_language.to_s.downcase == 'ko' ||
512 current_language.to_s.downcase == 'ja' ||
511 current_language.to_s.downcase == 'ja' ||
513 current_language.to_s.downcase == 'zh' ||
512 current_language.to_s.downcase == 'zh' ||
514 current_language.to_s.downcase == 'zh-tw' ||
513 current_language.to_s.downcase == 'zh-tw' ||
General Comments 0
You need to be logged in to leave comments. Login now