summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export/pdf.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-10-20 04:15:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-10-20 04:15:11 +0000
commite23d4d9b4e0ff6b47a99067f58bf35ed47a9b054 (patch)
tree932c701a0cc9c9f46a1e5e45ed2cfd4db9b8c68b /lib/redmine/export/pdf.rb
parent92f2ab6b7071aa4c546cce36255692caaf910feb (diff)
downloadredmine-e23d4d9b4e0ff6b47a99067f58bf35ed47a9b054.tar.gz
redmine-e23d4d9b4e0ff6b47a99067f58bf35ed47a9b054.zip
pdf: define "general_pdf_fontname" at i18n yaml for multilingual environment (#13781)
Contributed by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/trunk@13458 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export/pdf.rb')
-rw-r--r--lib/redmine/export/pdf.rb25
1 files changed, 2 insertions, 23 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 824508854..b555534a8 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -39,29 +39,8 @@ module Redmine
set_rtl(l(:direction) == 'rtl')
set_temp_rtl(l(:direction) == 'rtl' ? 'R' : 'L')
- case current_language.to_s.downcase
- when 'vi'
- @font_for_content = 'DejaVuSans'
- @font_for_footer = 'DejaVuSans'
- when 'ja'
- @font_for_content = 'kozminproregular'
- @font_for_footer = 'kozminproregular'
- when 'zh-tw' # Traditional Chinese (BIG5)
- @font_for_content = 'msungstdlight'
- @font_for_footer = 'msungstdlight'
- when 'zh' # Simplified Chinese (GB18030)
- @font_for_content = 'stsongstdlight'
- @font_for_footer = 'stsongstdlight'
- when 'ko' # Korean (UHC)
- @font_for_content = 'hysmyeongjostdmedium'
- @font_for_footer = 'hysmyeongjostdmedium'
- when 'th' # Thai
- @font_for_content = 'freeserif'
- @font_for_footer = 'freeserif'
- else
- @font_for_content = 'freesans'
- @font_for_footer = 'freesans'
- end
+ @font_for_content = l(:general_pdf_fontname)
+ @font_for_footer = l(:general_pdf_fontname)
set_creator(Redmine::Info.app_name)
set_font(@font_for_content)