From: Toshi MARUYAMA Date: Sat, 2 Apr 2011 08:01:47 +0000 (+0000) Subject: PDF: set enable to use TCPDF UTF-8 on Windows except CJK and Thai (#61). X-Git-Tag: 1.2.0~556 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=859e8ae8283bf52bd6f221264e8cd5be7a1a4cfa;p=redmine.git 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 --- diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb index d6f247ecb..ccfd34218 100644 --- a/lib/redmine/export/pdf.rb +++ b/lib/redmine/export/pdf.rb @@ -179,8 +179,7 @@ module Redmine # Returns a PDF string of a list of issues def issues_to_pdf(issues, project, query) - if Redmine::Platform.mswin? || - ( current_language.to_s.downcase == 'ko' || + if ( current_language.to_s.downcase == 'ko' || current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh-tw' || @@ -259,8 +258,7 @@ module Redmine # Returns a PDF string of a single issue def issue_to_pdf(issue) - if Redmine::Platform.mswin? || - ( current_language.to_s.downcase == 'ko' || + if ( current_language.to_s.downcase == 'ko' || current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh-tw' || diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 8a03af0f7..d6600bfe7 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -507,8 +507,7 @@ module Redmine end if Object.const_defined?(:Magick) def to_pdf - if Redmine::Platform.mswin? || - ( current_language.to_s.downcase == 'ko' || + if ( current_language.to_s.downcase == 'ko' || current_language.to_s.downcase == 'ja' || current_language.to_s.downcase == 'zh' || current_language.to_s.downcase == 'zh-tw' ||