diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-01 19:49:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-01 19:49:04 +0000 |
commit | 6a875eb691844b78786d95d45e3c457bc67fc9a2 (patch) | |
tree | 387b24c7d7d1099505ed715f0bd3465413041cff /app/views/projects/export_issues_pdf.rfpdf | |
parent | 83c96d4f3ef2adb8ec3226f82bc68e8f1accd6d9 (diff) | |
download | redmine-6a875eb691844b78786d95d45e3c457bc67fc9a2.tar.gz redmine-6a875eb691844b78786d95d45e3c457bc67fc9a2.zip |
fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese
csv and pdf encoding are know defined for each language (general_csv_encoding and general_pdf_encoding keys in lang files)
added SJIS font for japanese pdf exports
git-svn-id: http://redmine.rubyforge.org/svn/trunk@287 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/export_issues_pdf.rfpdf')
-rw-r--r-- | app/views/projects/export_issues_pdf.rfpdf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/export_issues_pdf.rfpdf b/app/views/projects/export_issues_pdf.rfpdf index 4339441ae..dd63d3657 100644 --- a/app/views/projects/export_issues_pdf.rfpdf +++ b/app/views/projects/export_issues_pdf.rfpdf @@ -1,4 +1,4 @@ -<% pdf=IfpdfHelper::IFPDF.new
+<% pdf=IfpdfHelper::IFPDF.new(current_language)
pdf.SetTitle("#{@project.name} - #{l(:label_issue_plural)}")
pdf.AliasNbPages
pdf.footer_date = format_date(Date.today)
@@ -8,14 +8,14 @@ #
# title
#
- pdf.SetFont('Arial','B',11)
+ pdf.SetFontStyle('B',11)
pdf.Cell(190,10, "#{@project.name} - #{l(:label_issue_plural)}")
pdf.Ln
#
# headers
#
- pdf.SetFont('Arial','B',10)
+ pdf.SetFontStyle('B',10)
pdf.SetFillColor(230, 230, 230)
pdf.Cell(15, row_height, "#", 0, 0, 'L', 1)
pdf.Cell(30, row_height, l(:field_tracker), 0, 0, 'L', 1)
@@ -32,7 +32,7 @@ #
# rows
#
- pdf.SetFont('Arial','',9)
+ pdf.SetFontStyle('',9)
pdf.SetFillColor(255, 255, 255)
@issues.each do |issue|
pdf.Cell(15, row_height, issue.id.to_s, 0, 0, 'L', 1)
|