]> source.dussan.org Git - redmine.git/commitdiff
PDF: switch FPDF font with general_pdf_encoding value instead of language value such...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 10 Apr 2011 08:34:02 +0000 (08:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 10 Apr 2011 08:34:02 +0000 (08:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5383 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index 3115b8b0c0a8b042334f947e96def55d74f569a5..c3b26a32dded53289471cbf8a68fb0fee0e255b7 100644 (file)
@@ -88,23 +88,23 @@ module Redmine
         def initialize(lang)
           super()
           set_language_if_valid lang
-          case current_language.to_s.downcase
-          when 'ko'
+          case l(:general_pdf_encoding).upcase
+          when 'CP949'
             extend(PDF_Korean)
             AddUHCFont()
             @font_for_content = 'UHC'
             @font_for_footer  = 'UHC'
-          when 'ja'
+          when 'CP932'
             extend(PDF_Japanese)
             AddSJISFont()
             @font_for_content = 'SJIS'
             @font_for_footer = 'SJIS'
-          when 'zh'
+          when 'GB18030'
             extend(PDF_Chinese)
             AddGBFont()
             @font_for_content = 'GB'
             @font_for_footer = 'GB'
-          when 'zh-tw'
+          when 'BIG5'
             extend(PDF_Chinese)
             AddBig5Font()
             @font_for_content = 'Big5'