Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Language Suppport #3

Merged
merged 3 commits into from
Oct 10, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/code/community/FireGento/Pdf/Model/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ protected function insertFooter(&$page, $invoice = null)
$this->insertFooterBlock($page, $fields, 70, 40);

$fields = array(
'bankname' => Mage::helper('firegento_pdf')->__('Bank name:'),
'bankaccount' => Mage::helper('firegento_pdf')->__('Account:'),
'bankcodenumber' => Mage::helper('firegento_pdf')->__('Bank number:'),
'bankaccountowner' => Mage::helper('firegento_pdf')->__('Account owner:'),
'bank_name' => Mage::helper('firegento_pdf')->__('Bank name:'),
'bank_account' => Mage::helper('firegento_pdf')->__('Account:'),
'bank_code_number' => Mage::helper('firegento_pdf')->__('Bank number:'),
'bank_account_owner' => Mage::helper('firegento_pdf')->__('Account owner:'),
'swift' => Mage::helper('firegento_pdf')->__('SWIFT:'),
'iban' => Mage::helper('firegento_pdf')->__('IBAN:')
);
Expand Down Expand Up @@ -227,7 +227,7 @@ protected function insertTableHeader(&$page)
$page->drawText(Mage::helper('firegento_pdf')->__('No.'), $this->margin['left'] + 25, $this->y, $this->encoding);
$page->drawText(Mage::helper('firegento_pdf')->__('Description'), $this->margin['left'] + 120, $this->y, $this->encoding);

$singlePrice = Mage::helper('firegento_pdf')->__('Preis (Netto)');
$singlePrice = Mage::helper('firegento_pdf')->__('Price (excl. tax)');
$page->drawText($singlePrice, $this->margin['right'] - 153 - $this->widthForStringUsingFontSize($singlePrice, $font, 9), $this->y, $this->encoding);

$page->drawText(Mage::helper('firegento_pdf')->__('Amount'), $this->margin['left'] + 360, $this->y, $this->encoding);
Expand Down
14 changes: 7 additions & 7 deletions app/code/community/FireGento/Pdf/Model/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ protected function insertFooter(&$page, $invoice = null)
$this->insertFooterBlock($page, $fields, 85, 40);

$fields = array(
'bankname' => Mage::helper('firegento_pdf')->__('Bank name:'),
'bankaccount' => Mage::helper('firegento_pdf')->__('Account:'),
'bankcodenumber' => Mage::helper('firegento_pdf')->__('Bank number:'),
'bankaccountowner' => Mage::helper('firegento_pdf')->__('Account owner:'),
'bank_name' => Mage::helper('firegento_pdf')->__('Bank name:'),
'bank_account' => Mage::helper('firegento_pdf')->__('Account:'),
'bank_code_number' => Mage::helper('firegento_pdf')->__('Bank number:'),
'bank_account_owner' => Mage::helper('firegento_pdf')->__('Account owner:'),
'swift' => Mage::helper('firegento_pdf')->__('SWIFT:'),
'iban' => Mage::helper('firegento_pdf')->__('IBAN:')
);
Expand Down Expand Up @@ -218,10 +218,10 @@ protected function insertTableHeader(&$page)
$size = $page->getFontSize();

$this->y -= 11;
$page->drawText(Mage::helper('firegento_pdf')->__('No.'), $this->margin['left'], $this->y, $this->encoding);
$page->drawText(Mage::helper('firegento_pdf')->__('Description'), $this->margin['left'] + 105, $this->y, $this->encoding);
$page->drawText(Mage::helper('firegento_pdf')->__('No.'), $this->margin['left'], $this->y, $this->encoding);
$page->drawText(Mage::helper('firegento_pdf')->__('Description'), $this->margin['left'] + 105, $this->y, $this->encoding);

$page->drawText(Mage::helper('firegento_pdf')->__('Amount'), $this->margin['left'] + 450, $this->y, $this->encoding);
$page->drawText(Mage::helper('firegento_pdf')->__('Amount'), $this->margin['left'] + 450, $this->y, $this->encoding);
}

protected function insertHeader(&$page, $order, $invoice)
Expand Down
25 changes: 25 additions & 0 deletions app/code/community/FireGento/Pdf/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
</firegento_pdf>
</helpers>
<models>
<firegento_pdf>
<class>FireGento_Pdf_Model</class>
</firegento_pdf>
<sales>
<rewrite>
<order_pdf_invoice>FireGento_Pdf_Model_Invoice</order_pdf_invoice>
Expand All @@ -22,4 +25,26 @@
</sales>
</models>
</global>
<frontend>
<translate>
<modules>
<FireGento_Pdf>
<files>
<firegento_pdf>FireGento_Pdf.csv</firegento_pdf>
</files>
</FireGento_Pdf>
</modules>
</translate>
</frontend>
<adminhtml>
<translate>
<modules>
<FireGento_Pdf>
<files>
<firegento_pdf>FireGento_Pdf.csv</firegento_pdf>
</files>
</FireGento_Pdf>
</modules>
</translate>
</adminhtml>
</config>
37 changes: 37 additions & 0 deletions app/locale/de_DE/FireGento_Pdf.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"Invoice maturity: %s days","Rechnungs F�lligkeitsdatum: %s Tage"
"Invoice date is equal to delivery date","Rechnungsdatum ist gleich dem Lieferdatum"
"Page","Seite"
"Telephone:","Telefon:"
"Fax:","Fax:"
"E-Mail:","E-Mail:"
"Web:","Web:"
"Web:","Web:"
"Web:","Web:"
"Web:","Web:"
"Bank name:","Kreditinstitut:"
"Account:","Kontonummer:"
"Bank number:","BLZ:"
"Account owner:","Kontoinhaber:"
"SWIFT:","SWIFT:"
"IBAN:","IBAN:"
"Tax number:","Steuernummer"
"VAT-ID:","USt.Nr."
"Register number:","HRB Nummer"
"CEO:","Gesch�ftsf�hrer"
"Pos","Pos."
"No","Nr."
"Description","Beschreibung"
"Price (excl. tax)","Preis (Netto)"
"Amount","Betrag"
"Tax","MwSt."
"Total","Summe"
"Invoice","Rechnung"
"Creditmemo","Gutschrift"
"Invoice number:","Rechnungsnummer:"
"Creditmemo number:","Gutschriftsnummer:"
"Customer number:","Kundennummer"
"Customer IP:","Kunden IP:"
"Invoice date:","Rechnungsdatum:"
"Additional tax %s","Zus�tzliche Steuern %s"
"Shipping:","Versand"
"Guestorder","Gastbestllung"