i18n and translate page number text too
This commit is contained in:
parent
3b7cbf71e0
commit
d0c74b394e
3 changed files with 10 additions and 2 deletions
|
@ -304,6 +304,10 @@ de:
|
|||
tasks:
|
||||
required_users: 'Es fehlen %{count} Mitstreiterinnen!'
|
||||
|
||||
lib:
|
||||
order_pdf:
|
||||
page: 'Seite %{number}'
|
||||
|
||||
# general user-interface
|
||||
ui:
|
||||
close: 'Schließen'
|
||||
|
|
|
@ -304,6 +304,10 @@ en:
|
|||
tasks:
|
||||
required_users: '%{count} members are still needed!'
|
||||
|
||||
lib:
|
||||
order_pdf:
|
||||
page: 'Page %{number}'
|
||||
|
||||
# general user-interface
|
||||
ui:
|
||||
close: 'Close'
|
||||
|
|
|
@ -17,7 +17,7 @@ class OrderPdf < Prawn::Document
|
|||
# Define header
|
||||
repeat :all, dynamic: true do
|
||||
draw_text title, size: 10, style: :bold, at: [bounds.left, bounds.top+20] if title # Header
|
||||
draw_text "Seite #{page_number}", size: 8, at: [bounds.left, bounds.bottom-10] # Footer
|
||||
draw_text I18n.t('lib.order_pdf.page', :number => page_number), size: 8, at: [bounds.left, bounds.bottom-10] # Footer
|
||||
end
|
||||
|
||||
body # Add content, which is defined in subclasses
|
||||
|
|
Loading…
Reference in a new issue