diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 08:54:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 08:54:26 +0000 |
commit | 918937c8736ea6e3a3f72a210b47dfbcfa1aaf5f (patch) | |
tree | 01aa4c8cf23f9401af88e112191c1f846d17dc75 /app | |
parent | 942091f9e844f673240d75c27f4c6d2167a664e1 (diff) | |
download | redmine-918937c8736ea6e3a3f72a210b47dfbcfa1aaf5f.tar.gz redmine-918937c8736ea6e3a3f72a210b47dfbcfa1aaf5f.zip |
Translations updates:
* Finnish (Antti Perkiömäki)
* Russian (Michael Pirogov)
* Chinese Traditional (shortie lo)
* Japanese (Satoru Kurashiki)
* Korean (Jongyoon Choi)
* Simplified Chinese (chaoqun zou)
* German (Thomas Löber)
Fixed zh and zh-tw encoding in PDF (chaoqun zou).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1186 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/ifpdf_helper.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/app/helpers/ifpdf_helper.rb b/app/helpers/ifpdf_helper.rb index 585dbeeca..2cfca1929 100644 --- a/app/helpers/ifpdf_helper.rb +++ b/app/helpers/ifpdf_helper.rb @@ -27,13 +27,18 @@ module IfpdfHelper def initialize(lang) super() set_language_if_valid lang - case current_language - when :ja + case current_language.to_s + when 'ja' extend(PDF_Japanese) AddSJISFont() @font_for_content = 'SJIS' @font_for_footer = 'SJIS' - when :zh + when 'zh' + extend(PDF_Chinese) + AddGBFont() + @font_for_content = 'GB' + @font_for_footer = 'GB' + when 'zh-tw' extend(PDF_Chinese) AddBig5Font() @font_for_content = 'Big5' |