From e23d4d9b4e0ff6b47a99067f58bf35ed47a9b054 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 20 Oct 2014 04:15:11 +0000 Subject: [PATCH] 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 --- config/locales/ar.yml | 1 + config/locales/az.yml | 1 + config/locales/bg.yml | 1 + config/locales/bs.yml | 1 + config/locales/ca.yml | 1 + config/locales/cs.yml | 1 + config/locales/da.yml | 1 + config/locales/de.yml | 1 + config/locales/el.yml | 1 + config/locales/en-GB.yml | 1 + config/locales/en.yml | 1 + config/locales/es.yml | 1 + config/locales/et.yml | 1 + config/locales/eu.yml | 1 + config/locales/fa.yml | 1 + config/locales/fi.yml | 1 + config/locales/fr.yml | 1 + config/locales/gl.yml | 1 + config/locales/he.yml | 1 + config/locales/hr.yml | 1 + config/locales/hu.yml | 1 + config/locales/id.yml | 1 + config/locales/it.yml | 1 + config/locales/ja.yml | 1 + config/locales/ko.yml | 1 + config/locales/lt.yml | 1 + config/locales/lv.yml | 1 + config/locales/mk.yml | 1 + config/locales/mn.yml | 1 + config/locales/nl.yml | 1 + config/locales/no.yml | 1 + config/locales/pl.yml | 1 + config/locales/pt-BR.yml | 1 + config/locales/pt.yml | 1 + config/locales/ro.yml | 1 + config/locales/ru.yml | 1 + config/locales/sk.yml | 1 + config/locales/sl.yml | 1 + config/locales/sq.yml | 1 + config/locales/sr-YU.yml | 1 + config/locales/sr.yml | 1 + config/locales/sv.yml | 1 + config/locales/th.yml | 1 + config/locales/tr.yml | 1 + config/locales/uk.yml | 1 + config/locales/vi.yml | 1 + config/locales/zh-TW.yml | 1 + config/locales/zh.yml | 1 + lib/redmine/export/pdf.rb | 25 ++----------------------- 49 files changed, 50 insertions(+), 23 deletions(-) diff --git a/config/locales/ar.yml b/config/locales/ar.yml index 4d49758b1..7eaf6954e 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -140,6 +140,7 @@ ar: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: لقد تم تجديد الحساب بنجاح. diff --git a/config/locales/az.yml b/config/locales/az.yml index 24bde2606..948067c16 100644 --- a/config/locales/az.yml +++ b/config/locales/az.yml @@ -384,6 +384,7 @@ az: general_csv_decimal_separator: ',' general_csv_encoding: UTF-8 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Azerbaijanian (Azeri)' general_text_no: 'xeyr' diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 360358a87..3dfa77eb8 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -142,6 +142,7 @@ bg: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Профилът е обновен успешно. diff --git a/config/locales/bs.yml b/config/locales/bs.yml index 3148ec1b5..d53e79ed9 100644 --- a/config/locales/bs.yml +++ b/config/locales/bs.yml @@ -152,6 +152,7 @@ bs: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_activated: Vaš nalog je aktiviran. Možete se prijaviti. diff --git a/config/locales/ca.yml b/config/locales/ca.yml index b8ca4f976..3e7747fe8 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -144,6 +144,7 @@ ca: general_csv_separator: ';' general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-15 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: "El compte s'ha actualitzat correctament." diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 7f9fbc97b..fbb3e677a 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -146,6 +146,7 @@ cs: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Účet byl úspěšně změněn. diff --git a/config/locales/da.yml b/config/locales/da.yml index b9199cc6f..e8fb6360e 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -158,6 +158,7 @@ da: general_lang_name: 'Danish (Dansk)' general_csv_separator: ',' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Kontoen er opdateret. diff --git a/config/locales/de.yml b/config/locales/de.yml index c9e8a315b..c9e12e1a8 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -392,6 +392,7 @@ de: general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-1 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Deutsch' general_text_No: 'Nein' diff --git a/config/locales/el.yml b/config/locales/el.yml index 49e519434..3e31300fe 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -142,6 +142,7 @@ el: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Ο λογαριασμός ενημερώθηκε επιτυχώς. diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index efdd42600..bfe1f3013 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -145,6 +145,7 @@ en-GB: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Account was successfully updated. diff --git a/config/locales/en.yml b/config/locales/en.yml index a8de0ef9c..8f858162c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -141,6 +141,7 @@ en: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Account was successfully updated. diff --git a/config/locales/es.yml b/config/locales/es.yml index 7adcf7340..3068144d7 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -340,6 +340,7 @@ es: general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-15 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Español' general_text_No: 'No' diff --git a/config/locales/et.yml b/config/locales/et.yml index 292eb37d8..7ae5d0cc5 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -158,6 +158,7 @@ et: general_csv_separator: "," general_csv_decimal_separator: "." general_csv_encoding: ISO-8859-13 + general_pdf_fontname: freesans general_first_day_of_week: "1" notice_account_updated: "Konto uuendamine õnnestus." diff --git a/config/locales/eu.yml b/config/locales/eu.yml index aead55b50..54227ccee 100644 --- a/config/locales/eu.yml +++ b/config/locales/eu.yml @@ -143,6 +143,7 @@ eu: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Kontua ongi eguneratu da. diff --git a/config/locales/fa.yml b/config/locales/fa.yml index d76372b16..9c8702a26 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -141,6 +141,7 @@ fa: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '6' notice_account_updated: حساب شما بروز شد. diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 889ee58eb..bc0fb48ef 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -166,6 +166,7 @@ fi: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-15 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Tilin päivitys onnistui. diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 067a87dea..0f2e0d0e6 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -161,6 +161,7 @@ fr: general_csv_separator: ';' general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Le compte a été mis à jour avec succès. diff --git a/config/locales/gl.yml b/config/locales/gl.yml index ba5ee8c4b..2e4f4dd1d 100644 --- a/config/locales/gl.yml +++ b/config/locales/gl.yml @@ -316,6 +316,7 @@ gl: general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-15 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Galego' general_text_No: 'Non' diff --git a/config/locales/he.yml b/config/locales/he.yml index 830fcf431..1ec37fbf0 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -146,6 +146,7 @@ he: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-8 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: החשבון עודכן בהצלחה! diff --git a/config/locales/hr.yml b/config/locales/hr.yml index 0fcc18d9a..fc09124bd 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -136,6 +136,7 @@ hr: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Vaš profil je uspješno promijenjen. diff --git a/config/locales/hu.yml b/config/locales/hu.yml index 0000a1d49..89ea9d5d0 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -162,6 +162,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-2 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: A fiók adatai sikeresen frissítve. diff --git a/config/locales/id.yml b/config/locales/id.yml index fd04d5767..ffc57a221 100644 --- a/config/locales/id.yml +++ b/config/locales/id.yml @@ -141,6 +141,7 @@ id: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Akun sudah berhasil diperbarui. diff --git a/config/locales/it.yml b/config/locales/it.yml index 52eb09e3d..f7a704841 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -146,6 +146,7 @@ it: general_csv_separator: ';' general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: L'utente è stato aggiornato. diff --git a/config/locales/ja.yml b/config/locales/ja.yml index e1d7fc472..5d9c3f843 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -162,6 +162,7 @@ ja: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: CP932 + general_pdf_fontname: kozminproregular general_first_day_of_week: '7' notice_account_updated: アカウントが更新されました。 diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 252ce1349..76d36f6af 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -188,6 +188,7 @@ ko: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: CP949 + general_pdf_fontname: hysmyeongjostdmedium general_first_day_of_week: '7' notice_account_updated: 계정이 성공적으로 변경되었습니다. diff --git a/config/locales/lt.yml b/config/locales/lt.yml index e5cf5aa9c..871efa5fa 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -200,6 +200,7 @@ lt: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Paskyra buvo sėkmingai atnaujinta. diff --git a/config/locales/lv.yml b/config/locales/lv.yml index 2d679f410..bfa889685 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -135,6 +135,7 @@ lv: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Konts tika atjaunots veiksmīgi. diff --git a/config/locales/mk.yml b/config/locales/mk.yml index 578950109..48aa242e4 100644 --- a/config/locales/mk.yml +++ b/config/locales/mk.yml @@ -142,6 +142,7 @@ mk: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Профилот е успешно ажуриран. diff --git a/config/locales/mn.yml b/config/locales/mn.yml index 4ed92ffe3..8668f73bf 100644 --- a/config/locales/mn.yml +++ b/config/locales/mn.yml @@ -141,6 +141,7 @@ mn: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Дансыг амжилттай өөрчиллөө. diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 1b259e4ee..520bf807a 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -285,6 +285,7 @@ nl: general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-1 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '7' general_lang_name: 'Nederlands' general_text_No: 'Nee' diff --git a/config/locales/no.yml b/config/locales/no.yml index 7a11b3774..581dad843 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -131,6 +131,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Kontoen er oppdatert. diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 63d85b487..64433320d 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -308,6 +308,7 @@ pl: general_csv_decimal_separator: ',' general_csv_encoding: UTF-8 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Polski' general_text_No: 'Nie' diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index ead6a3fb6..77df860a3 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -161,6 +161,7 @@ pt-BR: general_csv_separator: ';' general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Conta atualizada com sucesso. diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 21b35bc18..65b762274 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -151,6 +151,7 @@ pt: general_csv_separator: ';' general_csv_decimal_separator: ',' general_csv_encoding: ISO-8859-15 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: A conta foi atualizada com sucesso. diff --git a/config/locales/ro.yml b/config/locales/ro.yml index d0bd542eb..301267745 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -136,6 +136,7 @@ ro: general_csv_separator: '.' general_csv_decimal_separator: ',' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '2' notice_account_updated: Cont actualizat. diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 7d5fffecb..139aa5d7d 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -394,6 +394,7 @@ ru: general_csv_decimal_separator: ',' general_csv_encoding: UTF-8 general_csv_separator: ';' + general_pdf_fontname: freesans general_first_day_of_week: '1' general_lang_name: 'Russian (Русский)' general_text_no: 'нет' diff --git a/config/locales/sk.yml b/config/locales/sk.yml index b1471faba..35b55c453 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -140,6 +140,7 @@ sk: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Účet bol úspešne zmenený. diff --git a/config/locales/sl.yml b/config/locales/sl.yml index c60ac46a4..2f821e396 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -140,6 +140,7 @@ sl: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Račun je bil uspešno posodobljen. diff --git a/config/locales/sq.yml b/config/locales/sq.yml index 468aefb0d..60197f3f7 100644 --- a/config/locales/sq.yml +++ b/config/locales/sq.yml @@ -141,6 +141,7 @@ sq: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Llogaria u perditesua me sukses. diff --git a/config/locales/sr-YU.yml b/config/locales/sr-YU.yml index fcf3684be..c1ecad116 100644 --- a/config/locales/sr-YU.yml +++ b/config/locales/sr-YU.yml @@ -144,6 +144,7 @@ sr-YU: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Nalog je uspešno ažuriran. diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 86260a6ea..591dc8dd3 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -142,6 +142,7 @@ sr: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Налог је успешно ажуриран. diff --git a/config/locales/sv.yml b/config/locales/sv.yml index c95a5a1e1..bf3c57ec6 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -183,6 +183,7 @@ sv: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: ISO-8859-1 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Kontot har uppdaterats diff --git a/config/locales/th.yml b/config/locales/th.yml index 3b96e6de3..f4363bd74 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -139,6 +139,7 @@ th: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: Windows-874 + general_pdf_fontname: freeserif general_first_day_of_week: '1' notice_account_updated: บัญชีได้ถูกปรับปรุงแล้ว. diff --git a/config/locales/tr.yml b/config/locales/tr.yml index a6fd1c0d0..ef78f7765 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -155,6 +155,7 @@ tr: general_lang_name: 'Türkçe' general_csv_separator: ',' general_csv_encoding: ISO-8859-9 + general_pdf_fontname: freesans general_first_day_of_week: '7' notice_account_updated: Hesap başarıyla güncelleştirildi. diff --git a/config/locales/uk.yml b/config/locales/uk.yml index a28104315..7fd52c9c0 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -139,6 +139,7 @@ uk: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: freesans general_first_day_of_week: '1' notice_account_updated: Обліковий запис успішно оновлений. diff --git a/config/locales/vi.yml b/config/locales/vi.yml index 65f50f5e9..f20c0018e 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -194,6 +194,7 @@ vi: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: UTF-8 + general_pdf_fontname: DejaVuSans general_first_day_of_week: '1' notice_account_updated: Cập nhật tài khoản thành công. diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 971534f15..1a0002a93 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -225,6 +225,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: Big5 + general_pdf_fontname: msungstdlight general_first_day_of_week: '7' notice_account_updated: 帳戶更新資訊已儲存 diff --git a/config/locales/zh.yml b/config/locales/zh.yml index f6c7d2868..d2c55bb74 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -145,6 +145,7 @@ zh: general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: gb18030 + general_pdf_fontname: stsongstdlight general_first_day_of_week: '7' notice_account_updated: 帐号更新成功 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) -- 2.39.5