Index: config/locales/lt.yml =================================================================== --- config/locales/lt.yml (revision 13446) +++ config/locales/lt.yml (working copy) @@ -200,6 +200,7 @@ 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. Index: config/locales/sr-YU.yml =================================================================== --- config/locales/sr-YU.yml (revision 13446) +++ config/locales/sr-YU.yml (working copy) @@ -144,6 +144,7 @@ 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. Index: config/locales/ro.yml =================================================================== --- config/locales/ro.yml (revision 13446) +++ config/locales/ro.yml (working copy) @@ -136,6 +136,7 @@ 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. Index: config/locales/lv.yml =================================================================== --- config/locales/lv.yml (revision 13446) +++ config/locales/lv.yml (working copy) @@ -135,6 +135,7 @@ 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. Index: config/locales/zh.yml =================================================================== --- config/locales/zh.yml (revision 13446) +++ config/locales/zh.yml (working copy) @@ -145,6 +145,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: gb18030 + general_pdf_fontname: stsongstdlight general_first_day_of_week: '7' notice_account_updated: 帐号更新成功 Index: config/locales/ca.yml =================================================================== --- config/locales/ca.yml (revision 13446) +++ config/locales/ca.yml (working copy) @@ -144,6 +144,7 @@ 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." Index: config/locales/pt.yml =================================================================== --- config/locales/pt.yml (revision 13446) +++ config/locales/pt.yml (working copy) @@ -151,6 +151,7 @@ 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. Index: config/locales/pt-BR.yml =================================================================== --- config/locales/pt-BR.yml (revision 13446) +++ config/locales/pt-BR.yml (working copy) @@ -161,6 +161,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: Conta atualizada com sucesso. Index: config/locales/tr.yml =================================================================== --- config/locales/tr.yml (revision 13446) +++ config/locales/tr.yml (working copy) @@ -155,6 +155,7 @@ 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. Index: config/locales/ru.yml =================================================================== --- config/locales/ru.yml (revision 13446) +++ config/locales/ru.yml (working copy) @@ -394,6 +394,7 @@ 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: 'нет' Index: config/locales/en-GB.yml =================================================================== --- config/locales/en-GB.yml (revision 13446) +++ config/locales/en-GB.yml (working copy) @@ -145,6 +145,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: Account was successfully updated. Index: config/locales/id.yml =================================================================== --- config/locales/id.yml (revision 13446) +++ config/locales/id.yml (working copy) @@ -141,6 +141,7 @@ 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. Index: config/locales/el.yml =================================================================== --- config/locales/el.yml (revision 13446) +++ config/locales/el.yml (working copy) @@ -142,6 +142,7 @@ 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: Ο λογαριασμός ενημερώθηκε επιτυχώς. Index: config/locales/ar.yml =================================================================== --- config/locales/ar.yml (revision 13446) +++ config/locales/ar.yml (working copy) @@ -140,6 +140,7 @@ 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: لقد تم تجديد الحساب بنجاح. Index: config/locales/en.yml =================================================================== --- config/locales/en.yml (revision 13446) +++ config/locales/en.yml (working copy) @@ -141,6 +141,7 @@ 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. Index: config/locales/gl.yml =================================================================== --- config/locales/gl.yml (revision 13446) +++ config/locales/gl.yml (working copy) @@ -316,6 +316,7 @@ 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' Index: config/locales/cs.yml =================================================================== --- config/locales/cs.yml (revision 13446) +++ config/locales/cs.yml (working copy) @@ -146,6 +146,7 @@ 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. Index: config/locales/es.yml =================================================================== --- config/locales/es.yml (revision 13446) +++ config/locales/es.yml (working copy) @@ -340,6 +340,7 @@ 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' Index: config/locales/mk.yml =================================================================== --- config/locales/mk.yml (revision 13446) +++ config/locales/mk.yml (working copy) @@ -142,6 +142,7 @@ 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: Профилот е успешно ажуриран. Index: config/locales/et.yml =================================================================== --- config/locales/et.yml (revision 13446) +++ config/locales/et.yml (working copy) @@ -158,6 +158,7 @@ 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." Index: config/locales/zh-TW.yml =================================================================== --- config/locales/zh-TW.yml (revision 13446) +++ config/locales/zh-TW.yml (working copy) @@ -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: 帳戶更新資訊已儲存 Index: config/locales/eu.yml =================================================================== --- config/locales/eu.yml (revision 13446) +++ config/locales/eu.yml (working copy) @@ -143,6 +143,7 @@ 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. Index: config/locales/ko.yml =================================================================== --- config/locales/ko.yml (revision 13446) +++ config/locales/ko.yml (working copy) @@ -188,6 +188,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: CP949 + general_pdf_fontname: hysmyeongjostdmedium general_first_day_of_week: '7' notice_account_updated: 계정이 성공적으로 변경되었습니다. Index: config/locales/az.yml =================================================================== --- config/locales/az.yml (revision 13446) +++ config/locales/az.yml (working copy) @@ -384,6 +384,7 @@ 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' Index: config/locales/mn.yml =================================================================== --- config/locales/mn.yml (revision 13446) +++ config/locales/mn.yml (working copy) @@ -141,6 +141,7 @@ 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: Дансыг амжилттай өөрчиллөө. Index: config/locales/it.yml =================================================================== --- config/locales/it.yml (revision 13446) +++ config/locales/it.yml (working copy) @@ -146,6 +146,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: L'utente è stato aggiornato. Index: config/locales/sk.yml =================================================================== --- config/locales/sk.yml (revision 13446) +++ config/locales/sk.yml (working copy) @@ -140,6 +140,7 @@ 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ý. Index: config/locales/sl.yml =================================================================== --- config/locales/sl.yml (revision 13446) +++ config/locales/sl.yml (working copy) @@ -140,6 +140,7 @@ 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. Index: config/locales/uk.yml =================================================================== --- config/locales/uk.yml (revision 13446) +++ config/locales/uk.yml (working copy) @@ -139,6 +139,7 @@ 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: Обліковий запис успішно оновлений. Index: config/locales/sq.yml =================================================================== --- config/locales/sq.yml (revision 13446) +++ config/locales/sq.yml (working copy) @@ -141,6 +141,7 @@ 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. Index: config/locales/sr.yml =================================================================== --- config/locales/sr.yml (revision 13446) +++ config/locales/sr.yml (working copy) @@ -142,6 +142,7 @@ 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: Налог је успешно ажуриран. Index: config/locales/da.yml =================================================================== --- config/locales/da.yml (revision 13446) +++ config/locales/da.yml (working copy) @@ -158,6 +158,7 @@ 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. Index: config/locales/fa.yml =================================================================== --- config/locales/fa.yml (revision 13446) +++ config/locales/fa.yml (working copy) @@ -141,6 +141,7 @@ 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: حساب شما بروز شد. Index: config/locales/bg.yml =================================================================== --- config/locales/bg.yml (revision 13446) +++ config/locales/bg.yml (working copy) @@ -142,6 +142,7 @@ 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: Профилът е обновен успешно. Index: config/locales/de.yml =================================================================== --- config/locales/de.yml (revision 13446) +++ config/locales/de.yml (working copy) @@ -392,6 +392,7 @@ 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' Index: config/locales/sv.yml =================================================================== --- config/locales/sv.yml (revision 13446) +++ config/locales/sv.yml (working copy) @@ -183,6 +183,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: Kontot har uppdaterats Index: config/locales/ja.yml =================================================================== --- config/locales/ja.yml (revision 13446) +++ config/locales/ja.yml (working copy) @@ -162,6 +162,7 @@ general_csv_separator: ',' general_csv_decimal_separator: '.' general_csv_encoding: CP932 + general_pdf_fontname: kozminproregular general_first_day_of_week: '7' notice_account_updated: アカウントが更新されました。 Index: config/locales/he.yml =================================================================== --- config/locales/he.yml (revision 13446) +++ config/locales/he.yml (working copy) @@ -146,6 +146,7 @@ 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: החשבון עודכן בהצלחה! Index: config/locales/fi.yml =================================================================== --- config/locales/fi.yml (revision 13446) +++ config/locales/fi.yml (working copy) @@ -166,6 +166,7 @@ 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. Index: config/locales/bs.yml =================================================================== --- config/locales/bs.yml (revision 13446) +++ config/locales/bs.yml (working copy) @@ -152,6 +152,7 @@ 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. Index: config/locales/fr.yml =================================================================== --- config/locales/fr.yml (revision 13446) +++ config/locales/fr.yml (working copy) @@ -161,6 +161,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: Le compte a été mis à jour avec succès. Index: config/locales/nl.yml =================================================================== --- config/locales/nl.yml (revision 13446) +++ config/locales/nl.yml (working copy) @@ -285,6 +285,7 @@ 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' Index: config/locales/hr.yml =================================================================== --- config/locales/hr.yml (revision 13446) +++ config/locales/hr.yml (working copy) @@ -136,6 +136,7 @@ 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. Index: config/locales/pl.yml =================================================================== --- config/locales/pl.yml (revision 13446) +++ config/locales/pl.yml (working copy) @@ -308,6 +308,7 @@ 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' Index: config/locales/th.yml =================================================================== --- config/locales/th.yml (revision 13446) +++ config/locales/th.yml (working copy) @@ -139,6 +139,7 @@ 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: บัญชีได้ถูกปรับปรุงแล้ว. Index: config/locales/no.yml =================================================================== --- config/locales/no.yml (revision 13446) +++ config/locales/no.yml (working copy) @@ -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. Index: config/locales/hu.yml =================================================================== --- config/locales/hu.yml (revision 13446) +++ config/locales/hu.yml (working copy) @@ -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. Index: config/locales/vi.yml =================================================================== --- config/locales/vi.yml (revision 13446) +++ config/locales/vi.yml (working copy) @@ -194,6 +194,7 @@ 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. Index: lib/redmine/export/pdf.rb =================================================================== --- lib/redmine/export/pdf.rb (revision 13446) +++ lib/redmine/export/pdf.rb (working copy) @@ -39,29 +39,8 @@ 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)