]> source.dussan.org Git - redmine.git/commitdiff
PDF: set enable to use TCPDF UTF-8 on Windows except CJK and Thai (#61).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Apr 2011 08:01:47 +0000 (08:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 2 Apr 2011 08:01:47 +0000 (08:01 +0000)
Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5291 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb
lib/redmine/helpers/gantt.rb

index d6f247ecbc8f04872a7ab46a220972b415462a2c..ccfd34218be93e13a5b6e91f26ad9ec987581c00 100644 (file)
@@ -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' ||
index 8a03af0f71236f014593f8f8d2e429cb03f45e6f..d6600bfe72d4ac206e328cfac34c41c2ecc69867 100644 (file)
@@ -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' ||