diff --git a/cache/class_index.php b/cache/class_index.php index a59a545e9..8886a8c19 100644 --- a/cache/class_index.php +++ b/cache/class_index.php @@ -13,7 +13,7 @@ 'AddressesControllerCore' => 'controllers/front/AddressesController.php', 'AdminAccessController' => 'override/controllers/admin/AdminAccessController.php', 'AdminAccessControllerCore' => 'controllers/admin/AdminAccessController.php', - 'AdminAccountingConfigurationController' => '', + 'AdminAccountingConfigurationController' => 'override/controllers/admin/AdminAccountingConfigurationController.php', 'AdminAccountingConfigurationControllerCore' => 'controllers/admin/AdminAccountingConfigurationController.php', 'AdminAccountingExportController' => 'override/controllers/admin/AdminAccountingExportController.php', 'AdminAccountingExportControllerCore' => 'controllers/admin/AdminAccountingExportController.php', @@ -122,7 +122,7 @@ 'AdminPPreferencesControllerCore' => 'controllers/admin/AdminPPreferencesController.php', 'AdminPaymentController' => 'override/controllers/admin/AdminPaymentController.php', 'AdminPaymentControllerCore' => 'controllers/admin/AdminPaymentController.php', - 'AdminPdfController' => '', + 'AdminPdfController' => 'override/controllers/admin/AdminPdfController.php', 'AdminPdfControllerCore' => 'controllers/admin/AdminPdfController.php', 'AdminPerformanceController' => 'override/controllers/admin/AdminPerformanceController.php', 'AdminPerformanceControllerCore' => 'controllers/admin/AdminPerformanceController.php', @@ -478,7 +478,7 @@ 'OrderSlipCore' => 'classes/order/OrderSlip.php', 'OrderState' => 'override/classes/order/OrderState.php', 'OrderStateCore' => 'classes/order/OrderState.php', - 'PDF' => 'override/classes/pdf/PDF.php', + 'PDF' => 'override/classes/PDF.php', 'PDFCore' => 'classes/pdf/PDF.php', 'PDFGenerator' => 'override/classes/pdf/PDFGenerator.php', 'PDFGeneratorCore' => 'classes/pdf/PDFGenerator.php', @@ -560,7 +560,7 @@ 'StateCore' => 'classes/State.php', 'StatisticsController' => 'override/controllers/front/StatisticsController.php', 'StatisticsControllerCore' => 'controllers/front/StatisticsController.php', - 'Stock' => 'override/classes/stock/Stock.php', + 'Stock' => 'override/classes/Stock.php', 'StockAvailable' => 'override/classes/stock/StockAvailable.php', 'StockAvailableCore' => 'classes/stock/StockAvailable.php', 'StockCore' => 'classes/stock/Stock.php', @@ -571,9 +571,9 @@ 'StockManagerInterface' => 'classes/stock/StockManagerInterface.php', 'StockManagerModule' => 'override/classes/stock/StockManagerModule.php', 'StockManagerModuleCore' => 'classes/stock/StockManagerModule.php', - 'StockMvt' => 'override/classes/stock/StockMvt.php', + 'StockMvt' => 'override/classes/StockMvt.php', 'StockMvtCore' => 'classes/stock/StockMvt.php', - 'StockMvtReason' => 'override/classes/stock/StockMvtReason.php', + 'StockMvtReason' => 'override/classes/StockMvtReason.php', 'StockMvtReasonCore' => 'classes/stock/StockMvtReason.php', 'StockMvtWS' => 'override/classes/stock/StockMvtWS.php', 'StockMvtWSCore' => 'classes/stock/StockMvtWS.php', diff --git a/classes/pdf/HTMLTemplate.php b/classes/pdf/HTMLTemplate.php index d25b360ac..b6120885c 100755 --- a/classes/pdf/HTMLTemplate.php +++ b/classes/pdf/HTMLTemplate.php @@ -56,7 +56,7 @@ abstract class HTMLTemplateCore 'shop_name' => $shop_name )); - return $this->smarty->fetch(_PS_THEME_DIR_.'/pdf/header.tpl'); + return $this->smarty->fetch($this->getTemplate('header')); } /** @@ -76,7 +76,7 @@ abstract class HTMLTemplateCore 'free_text' => Configuration::get('PS_INVOICE_FREE_TEXT') )); - return $this->smarty->fetch(_PS_THEME_DIR_.'/pdf/footer.tpl'); + return $this->smarty->fetch($this->getTemplate('footer')); } /** @@ -102,12 +102,15 @@ abstract class HTMLTemplateCore */ protected function getLogo() { - $logo = ''; + $logo = ''; + // TCPDF always uses the complete physical path, beware of PrestaShop virtual URI or complete path using symlinks + $physical_uri = Context::getContext()->shop->physical_uri.'img/'; if (Configuration::get('PS_LOGO_INVOICE') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO_INVOICE'))) - $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO_INVOICE'); + $logo = $physical_uri.Configuration::get('PS_LOGO_INVOICE'); else if (Configuration::get('PS_LOGO') != false && file_exists(_PS_IMG_DIR_.Configuration::get('PS_LOGO'))) - $logo = _PS_IMG_DIR_.Configuration::get('PS_LOGO'); + $logo = $physical_uri.Configuration::get('PS_LOGO'); + return $logo; } @@ -145,6 +148,28 @@ abstract class HTMLTemplateCore */ abstract public function getBulkFilename(); + /** + * If the template is not present in the theme directory, it will return the default template + * in _PS_PDF_DIR_ directory + * + * @param $template_name + * @return string + */ + protected function getTemplate($template_name) + { + $template = false; + $default_template = _PS_PDF_DIR_.'/'.$template_name.'.tpl'; + $overriden_template = _PS_THEME_DIR_.'/pdf/'.$template_name.'.tpl'; + + if (file_exists($overriden_template)) + $template = $overriden_template; + else if (file_exists($default_template)) + $template = $default_template; + + return $template; + } + + /** * Translatation method * @param string $string @@ -157,13 +182,19 @@ abstract class HTMLTemplateCore if (!Validate::isLangIsoCode($iso)) Tools::displayError(sprintf('Invalid iso lang (%s)', Tools::safeOutput($iso))); - $file_name = _PS_THEME_DIR_.'pdf/lang/'.$iso.'.php'; - if (!file_exists($file_name) || !include($file_name)) - Tools::displayError(sprintf('Cannot include PDF translation language file : %s', $file_name)); + $override_i18n_file = _PS_THEME_DIR_.'pdf/lang/'.$iso.'.php'; + $i18n_file = _PS_TRANSLATIONS_DIR_.$iso.'/pdf.php'; + if (file_exists($override_i18n_file)) + $i18n_file = $override_i18n_file; + + if (!include($i18n_file)) + Tools::displayError(sprintf('Cannot include PDF translation language file : %s', $i18n_file)); if (!isset($_LANGPDF) || !is_array($_LANGPDF)) return str_replace('"', '"', $string); - $key = md5(str_replace('\'', '\\\'', $string)); + + $key = md5(str_replace('\'', '\\\'', $string)); + $str = (key_exists('PDF'.$key, $_LANGPDF) ? $_LANGPDF['PDF'.$key] : $string); return $str; diff --git a/classes/pdf/HTMLTemplateInvoice.php b/classes/pdf/HTMLTemplateInvoice.php index 55029b88d..9b706f493 100755 --- a/classes/pdf/HTMLTemplateInvoice.php +++ b/classes/pdf/HTMLTemplateInvoice.php @@ -77,7 +77,7 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate 'customer' => $customer )); - return $this->smarty->fetch($this->getTemplate($country->iso_code)); + return $this->smarty->fetch($this->getTemplateByCountry($country->iso_code)); } /** @@ -96,25 +96,28 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate 'product_tax_breakdown' => $this->order_invoice->getProductTaxesBreakdown(), 'shipping_tax_breakdown' => $this->order_invoice->getShippingTaxesBreakdown($this->order), 'ecotax_tax_breakdown' => $this->order_invoice->getEcoTaxTaxesBreakdown(), + 'wrapping_tax_breakdown' => $this->order_invoice->getWrappingTaxesBreakdown(), 'order' => $this->order, 'order_invoice' => $this->order_invoice )); - return $this->smarty->fetch(_PS_THEME_DIR_.'/pdf/invoice.tax-tab.tpl'); + return $this->smarty->fetch($this->getTemplate('invoice.tax-tab')); } /** * Returns the invoice template associated to the country iso_code * @param string $iso_country */ - protected function getTemplate($iso_country) + protected function getTemplateByCountry($iso_country) { $file = Configuration::get('PS_INVOICE_MODEL'); - $template = _PS_THEME_DIR_.'/pdf/'.$file.'.tpl'; - $iso_template = _PS_THEME_DIR_.'/pdf/'.$file.'.'.$iso_country.'.tpl'; - if (file_exists($iso_template)) - $template = $iso_template; + // try to fetch the iso template + $template = $this->getTemplate($file.'.'.$iso_country); + + // else use the default one + if (!$template) + $template = $this->getTemplate($file); return $template; } diff --git a/config/defines.inc.php b/config/defines.inc.php index cffc61c1f..e61acc65c 100755 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -46,6 +46,7 @@ define('_PS_ADMIN_CONTROLLER_DIR_', _PS_ROOT_DIR_.'/controllers/admin/'); define('_PS_TRANSLATIONS_DIR_', _PS_ROOT_DIR_.'/translations/'); define('_PS_DOWNLOAD_DIR_', _PS_ROOT_DIR_.'/download/'); define('_PS_MAIL_DIR_', _PS_ROOT_DIR_.'/mails/'); +define('_PS_PDF_DIR_', _PS_ROOT_DIR_.'/pdf/'); define('_PS_ALL_THEMES_DIR_', _PS_ROOT_DIR_.'/themes/'); define('_PS_IMG_DIR_', _PS_ROOT_DIR_.'/img/'); if (!defined('_PS_MODULE_DIR_')) @@ -146,3 +147,4 @@ define('_PS_SMARTY_CONSOLE_OPEN_BY_URL_', 1); define('_PS_SMARTY_CONSOLE_OPEN_', 2); define('_PS_JQUERY_VERSION_', '1.4.4'); + diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index e50d69fbe..3e3fb3cdf 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -557,8 +557,14 @@ class AdminTranslationsControllerCore extends AdminController if ($this->tabAccess['edit'] === '1') { if (!Validate::isLanguageIsoCode(Tools::strtolower(Tools::getValue('lang')))) - die(Tools::displayError()); - $this->writeTranslationFile('PDF', _PS_THEME_DIR_.'pdf/lang/'.Tools::strtolower(Tools::getValue('lang')).'.php', 'PDF'); + throw new PrestaShopException('Invalid iso code ['.Tools::getValue('lang').']'); + + // Only the PrestaShop team should write the translations into the _PS_TRANSLATIONS_DIR_ + if ((_THEME_NAME_ == self::DEFAULT_THEME_NAME) && _PS_MODE_DEV_) + $this->writeTranslationFile('PDF', _PS_TRANSLATIONS_DIR_.Tools::strtolower(Tools::getValue('lang')).'/pdf.php', 'PDF'); + else + $this->writeTranslationFile('PDF', _PS_THEME_DIR_.'pdf/lang/'.Tools::strtolower(Tools::getValue('lang')).'.php', 'PDF'); + } else $this->errors[] = Tools::displayError('You do not have permission to edit here.'); @@ -1845,25 +1851,42 @@ class AdminTranslationsControllerCore extends AdminController public function initFormPDF() { $lang = Tools::strtolower(Tools::getValue('lang')); - $_LANG = array(); + $_LANGPDF = array(); $missing_translations_pdf = array(); if (!Validate::isLangIsoCode($lang)) die('Invalid iso lang ('.Tools::safeOutput($lang).')'); - $i18n_dir = _PS_THEME_DIR_.'pdf/lang/'; - $i18n_file = $i18n_dir.$lang.'.php'; + $i18n_dir = _PS_TRANSLATIONS_DIR_.$lang.'/'; + $default_i18n_file = $i18n_dir.'pdf.php'; + if ((_THEME_NAME_ != self::DEFAULT_THEME_NAME) || !_PS_MODE_DEV_) + { + $i18n_dir = _PS_THEME_DIR_.'pdf/lang/'; + $i18n_file = $i18n_dir.$lang.'.php'; + } + else + $i18n_file = $default_i18n_file; + + $this->checkDirAndCreate($i18n_file); if (!file_exists($i18n_file)) - if (!file_put_contents($i18n_file, "")) - die('Please create a "'.Tools::strtolower($lang).'.php" file in '.realpath(_PS_ADMIN_DIR_.'/')); + die('Please create a "'.$lang.'.php" file in '.$i18n_dir); + + if (!is_writable($i18n_file)) + die('Cannot write into the "'.$i18n_file); + unset($_LANGPDF); @include($i18n_file); + // if the override's translation file is empty load the default file + if (!isset($_LANGPDF) || count($_LANGPDF) == 0) + @include($default_i18n_file); + $count = 0; $prefix_key = 'PDF'; $tabs_array = array($prefix_key=>array()); $regex = '/HTMLTemplate.*::l\(\''._PS_TRANS_PATTERN_.'\'[\)|\,]/U'; + // need to parse PDF.php in order to find $regex and add this to $tabs_array // this has to be done for the core class, and eventually for the override foreach (glob(_PS_CLASS_DIR_.'pdf/*.php') as $filename) @@ -1876,12 +1899,14 @@ class AdminTranslationsControllerCore extends AdminController // parse pdf template /* Search language tags (eg {l s='to translate'}) */ $regex = '/\{l s=\''._PS_TRANS_PATTERN_.'\'( js=1)?( pdf=\'true\')?\}/U'; - foreach (glob( _PS_THEME_DIR_.'/pdf/*.tpl') as $filename) + $default_template_files = glob(_PS_PDF_DIR_.'*.tpl'); + $override_template_files = glob(_PS_THEME_DIR_.'pdf/*.tpl'); + + foreach (array_merge($default_template_files, $override_template_files) as $filename) { preg_match_all($regex, file_get_contents($filename), $matches); foreach ($matches[1] as $key) { - // Caution ! front has underscore between prefix key and md5, back has not if (isset($_LANGPDF[$prefix_key.md5($key)])) { // @todo check key : md5($key) was initially md5(addslashes($key)) @@ -1962,3 +1987,4 @@ class AdminTranslationsControllerCore extends AdminController } } + diff --git a/themes/default/pdf/delivery-slip.tpl b/pdf/delivery-slip.tpl similarity index 100% rename from themes/default/pdf/delivery-slip.tpl rename to pdf/delivery-slip.tpl diff --git a/themes/default/pdf/footer.tpl b/pdf/footer.tpl similarity index 100% rename from themes/default/pdf/footer.tpl rename to pdf/footer.tpl diff --git a/themes/default/pdf/header.tpl b/pdf/header.tpl similarity index 100% rename from themes/default/pdf/header.tpl rename to pdf/header.tpl diff --git a/themes/default/pdf/invoice-b2b.tpl b/pdf/invoice-b2b.tpl similarity index 100% rename from themes/default/pdf/invoice-b2b.tpl rename to pdf/invoice-b2b.tpl diff --git a/themes/default/pdf/invoice.tax-tab.tpl b/pdf/invoice.tax-tab.tpl similarity index 100% rename from themes/default/pdf/invoice.tax-tab.tpl rename to pdf/invoice.tax-tab.tpl diff --git a/themes/default/pdf/invoice.tpl b/pdf/invoice.tpl similarity index 100% rename from themes/default/pdf/invoice.tpl rename to pdf/invoice.tpl diff --git a/themes/default/pdf/order-return.tpl b/pdf/order-return.tpl similarity index 100% rename from themes/default/pdf/order-return.tpl rename to pdf/order-return.tpl diff --git a/themes/default/pdf/order-slip.tpl b/pdf/order-slip.tpl similarity index 100% rename from themes/default/pdf/order-slip.tpl rename to pdf/order-slip.tpl diff --git a/themes/default/pdf/supply-order-footer.tpl b/pdf/supply-order-footer.tpl similarity index 100% rename from themes/default/pdf/supply-order-footer.tpl rename to pdf/supply-order-footer.tpl diff --git a/themes/default/pdf/supply-order-header.tpl b/pdf/supply-order-header.tpl similarity index 100% rename from themes/default/pdf/supply-order-header.tpl rename to pdf/supply-order-header.tpl diff --git a/themes/default/pdf/supply-order.tpl b/pdf/supply-order.tpl similarity index 100% rename from themes/default/pdf/supply-order.tpl rename to pdf/supply-order.tpl diff --git a/themes/default/pdf/lang/de.php b/themes/default/pdf/lang/de.php deleted file mode 100644 index bf4d734ac..000000000 --- a/themes/default/pdf/lang/de.php +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/themes/default/pdf/lang/en.php b/themes/default/pdf/lang/en.php deleted file mode 100644 index f47497cca..000000000 --- a/themes/default/pdf/lang/en.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/themes/default/pdf/lang/es.php b/themes/default/pdf/lang/es.php deleted file mode 100644 index ca2b4c8df..000000000 --- a/themes/default/pdf/lang/es.php +++ /dev/null @@ -1,81 +0,0 @@ - \ No newline at end of file diff --git a/themes/default/pdf/lang/fr.php b/themes/default/pdf/lang/fr.php deleted file mode 100644 index 740bff220..000000000 --- a/themes/default/pdf/lang/fr.php +++ /dev/null @@ -1,81 +0,0 @@ - \ No newline at end of file diff --git a/themes/default/pdf/lang/it.php b/themes/default/pdf/lang/it.php deleted file mode 100644 index 0d3db8377..000000000 --- a/themes/default/pdf/lang/it.php +++ /dev/null @@ -1,76 +0,0 @@ - \ No newline at end of file diff --git a/translations/de/pdf.php b/translations/de/pdf.php index 2ebc7caec..14db5ac83 100644 --- a/translations/de/pdf.php +++ b/translations/de/pdf.php @@ -2,69 +2,5 @@ global $_LANGPDF; $_LANGPDF = array(); -$_LANGPDF['PDF_invoicee0036b67b754e9f6442f9f9e6b200c33'] = 'Rücksendungs-Nr.'; -$_LANGPDF['PDF_invoice77c3e447f60541a1c346a08134078c7f'] = 'Guthaben Nr.'; -$_LANGPDF['PDF_invoicecb5efbba6a6babef9082ca6976928ca7'] = 'Lieferschein-Nr.'; -$_LANGPDF['PDF_invoicefe4da50838bb10dcbf1bf8dcd9b12ab5'] = 'Rechnungs-Nr.'; -$_LANGPDF['PDF_invoiceba160acb58001c904c57507da3689265'] = 'Bestell-Nr.'; -$_LANGPDF['PDF_invoice808a04117534f9dfb63b9accd7efc609'] = 'Firmensitz'; -$_LANGPDF['PDF_invoicea54cedc1e053a70d4a6319feccf531ca'] = 'Telefonnr.:'; -$_LANGPDF['PDF_invoice2babe53026309ed1bc4d26626dbaf9b3'] = 'Details:'; -$_LANGPDF['PDF_invoice15b57bef332e7e0327d89fe93711a954'] = 'Eine elektronische Version dieser Rechnun steht Ihnen in Ihrem Kundenkonto zur weiteren Verwendung bereit. Um die Rechnung einzusehen, melden Sie sich '; -$_LANGPDF['PDF_invoiceb1fb57b55075a4a51cf83e44d0440358'] = 'mit Ihren Zugangsdaten an (die Sie bei Ihrer ersten Bestellung erhalten haben).'; -$_LANGPDF['PDF_invoiced98a07f84921b24ee30f86fd8cd85c3c'] = 'vom'; -$_LANGPDF['PDF_invoice88be9ea838e21273267409d76af3b284'] = 'Wir haben Ihre Bitte um Rücksendung gespeichert.'; -$_LANGPDF['PDF_invoicedd0b8feb4eb6c389c284518f5683017c'] = 'Wir erinnern Sie daran, dass Ihr Paket innerhalb von '; -$_LANGPDF['PDF_invoiceea62a2e28a800c367509773730120a67'] = 'Tagen nach Erhalt Ihrer Bestellung an uns zurückgesendet werden muss.'; -$_LANGPDF['PDF_invoice3d2f834cf879baebfdbe52c1c14d9d53'] = 'Liste der Produkte, die zurückgesendet werden:'; -$_LANGPDF['PDF_invoice9fad4fa5f3fa5caad9b506bbdd9f35d4'] = 'Ihre Rücksendenummer:'; -$_LANGPDF['PDF_invoicefb902bc4807c307b9309f2b528b96f2b'] = 'Rücksendung'; -$_LANGPDF['PDF_invoiceec9d9f81be48dabb74bcdad5312816af'] = 'Bitte sorgen Sie dafür, dass diese Nummer auf Ihrem Rücksendepaket steht.'; -$_LANGPDF['PDF_invoicefbbd47b7e45c0ad3fe0bf70539b5a2d4'] = 'ERINNERUNG:'; -$_LANGPDF['PDF_invoicea3852e23346f6f1e29e1683991690af3'] = '- Alle Produkte müssen in ihrer Originalverpackung und im ursprünglichen Zustand zurückgeschickt werden.'; -$_LANGPDF['PDF_invoice0e9a828e54995e48083a072205493fb4'] = '- Bitte drucken Sie dieses Dokument aus und legen es Ihrem Paket bei.'; -$_LANGPDF['PDF_invoicead500469c8dc258dcebb89c9efe15de7'] = '- Das Paket muss an folgende Adresse geschickt werden:'; -$_LANGPDF['PDF_invoice9f68b11daca41ccf9fdc9d2f69901c9c'] = 'Nach Erhalt Ihres Pakets erstatten wir Ihnen dann den Betrag Ihrer Bestellung und benachrichtigen Sie per E-Mail darüber.'; -$_LANGPDF['PDF_invoice2d0620950a4d96ae301ba7a98e528714'] = 'Bitte wenden Sie sich an uns, wenn Sie Fragen haben.'; -$_LANGPDF['PDF_invoice25e12a86579549b9f88117615eb05e4b'] = 'Wenn die oben genannten Rücksendebedingungen nicht erfüllt wurden,'; -$_LANGPDF['PDF_invoicec896fe3f3895e8ef54194eec601b8f3c'] = 'behalten wir uns das Recht vor, Ihr Paket oder Ihre Rückerstattung zu verweigern.'; -$_LANGPDF['PDF_invoiceb5a7adde1af5c87d7fd797b6245c2a39'] = 'Beschreibung'; -$_LANGPDF['PDF_invoice63d5049791d9d79d86e9a108b0a999ca'] = 'Referenz'; -$_LANGPDF['PDF_invoice03ab340b3f99e03cff9e84314ead38c0'] = 'Menge'; -$_LANGPDF['PDF_invoice396124314c5fd1fa5bf463274896dc80'] = 'Keine Methode zur Preisanzeige für diese Benutzergruppe definiert'; -$_LANGPDF['PDF_invoice065ab3a28ca4f16f55f103adc7d0226f'] = 'Lieferung'; -$_LANGPDF['PDF_invoice6bdf2efe1a99072849d4e87baee37dbe'] = 'Rechnungsstellung'; -$_LANGPDF['PDF_invoice60da3bd6867e3952ef0057a0772ea885'] = 'Steuernummer:'; -$_LANGPDF['PDF_invoice7b13afd12d6d91d52aa9f857d23f96ef'] = 'Rechnungsvorlage'; -$_LANGPDF['PDF_invoiced1228f5476d15142b1358ae4b5fa2454'] = 'Bestellung Nr.'; -$_LANGPDF['PDF_invoicef8617a92ba0a0a4eabee724eab7c9f48'] = 'Versanddienst:'; -$_LANGPDF['PDF_invoicec1f6368d15f7c13c4e5e8f70c68c747f'] = 'Zahlungsweise:'; -$_LANGPDF['PDF_invoicea3a79b28bc45b7fd393effd056b917e1'] = 'Absendedatum:'; -$_LANGPDF['PDF_invoice115dfa9ced2cf136ae677b9a389a5e60'] = 'Geschenkverpackung'; -$_LANGPDF['PDF_invoice2370a4958c4ebe6d6c8045cd49a6b392'] = 'Gesamtpreis exkl. USt.'; -$_LANGPDF['PDF_invoiceebaee01719541f61281c16ba22ebbfde'] = 'Gesamtpreis inkl. USt.'; -$_LANGPDF['PDF_invoicea0eb2cd0b3deb5444102e9a82edae11e'] = 'Gesamt Produkte'; -$_LANGPDF['PDF_invoicef3e545fccad720e197b9ca3b8b658440'] = 'Gesamt Ermäßigungen inkl. MwSt.'; -$_LANGPDF['PDF_invoice9cc000efe3e783af5bf114f2e6573156'] = 'Gesamtbetrag Geschenkverpackung'; -$_LANGPDF['PDF_invoicef246a17c095de09e043cc1cb917481da'] = 'Gesamt Versand (exkl. MwSt.)'; -$_LANGPDF['PDF_invoicee93f43fa527c3534aeca987091d6c049'] = 'Gesamt Versand (inkl. MwSt.)'; -$_LANGPDF['PDF_invoice96b0141273eabab320119c467cdcaf17'] = 'Gesamt'; -$_LANGPDF['PDF_invoice54732c5d0a3f0d597312b0ee55d71fca'] = 'inkl. MwSt.'; -$_LANGPDF['PDF_invoiceac5831c7ec2fed92c7bb73e9962003a4'] = 'exkl. MwSt.'; -$_LANGPDF['PDF_invoiceafd42dfebce46ec93972b2e0cbb8b83f'] = 'Einzelpreis'; -$_LANGPDF['PDF_invoice1d744a9ad1dac20645cfc4a36b77323b'] = 'Bild(er)'; -$_LANGPDF['PDF_invoicec2808546f3e14d267d798f4e0e6f102e'] = 'Benutzerdefiniert'; -$_LANGPDF['PDF_invoicea1e7379abfdbc3b8e03506e5489c6110'] = 'Ermäßigung:'; -$_LANGPDF['PDF_invoicee7bbf027179f23c92bec649fa6ae78e4'] = 'Gemäß Artikel 196 i.V.m. Artikel 44 Richtlinie 2006/112/EG (MwStSystRL) schuldet der Empfänger dieser Dienstleistungen die Mehrwertsteuer gegenüber dem Fiskus.'; -$_LANGPDF['PDF_invoice42c26bf38ece1dcd27aca8c6f8c076ed'] = 'Steuerdetails'; -$_LANGPDF['PDF_invoice4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Steuer'; -$_LANGPDF['PDF_invoicecd6576cc33506a6c44e2debbde5c14d9'] = 'Gesamtpreis exkl. MwSt.'; -$_LANGPDF['PDF_invoiceb602e0d0c6a72053d0a5be60cb2f8126'] = 'Gesamt Steuern'; -$_LANGPDF['PDF_invoicefe1218d355367ae728ae5bf4bbf0019e'] = 'Ökosteuer (inkl. MwSt.)'; -$_LANGPDF['PDF_invoiceae5c2883df7651730799e1036984a6a3'] = 'Gesamt inkl. MwSt.'; -$_LANGPDF['PDF_invoice068f80c7519d0528fb08e82137a72131'] = 'Produkte'; -$_LANGPDF['PDF_invoice914419aa32f04011357d3b604a86d7eb'] = 'Dienstleistungen (Versand)'; -$_LANGPDF['PDF_invoice41c1d61bfff3fc9b1fd8f195061b8caa'] = 'Geschenkverpackung'; -$_LANGPDF['PDF_invoice6f3455d187a23443796efdcbe044096b'] = 'Keine Steuer'; -?> \ No newline at end of file +?> diff --git a/translations/en/pdf.php b/translations/en/pdf.php index 949b9b6ff..14db5ac83 100644 --- a/translations/en/pdf.php +++ b/translations/en/pdf.php @@ -2,8 +2,5 @@ global $_LANGPDF; $_LANGPDF = array(); -$_LANGPDF['PDF_invoice15b57bef332e7e0327d89fe93711a954'] = 'An electronic version of this invoice is available in your account. To access it, log in to the'; -$_LANGPDF['PDF_invoice396124314c5fd1fa5bf463274896dc80'] = 'No price display method defined for this customer group'; -$_LANGPDF['PDF_invoicee7bbf027179f23c92bec649fa6ae78e4'] = 'Exempt of VAT according to section 259B of the General Tax Code.'; -?> \ No newline at end of file +?> diff --git a/translations/es/pdf.php b/translations/es/pdf.php index 5afbedb1d..14db5ac83 100644 --- a/translations/es/pdf.php +++ b/translations/es/pdf.php @@ -2,67 +2,5 @@ global $_LANGPDF; $_LANGPDF = array(); -$_LANGPDF['PDF_invoicee0036b67b754e9f6442f9f9e6b200c33'] = 'Devolución nº '; -$_LANGPDF['PDF_invoice77c3e447f60541a1c346a08134078c7f'] = 'Vale de compra nº '; -$_LANGPDF['PDF_invoicecb5efbba6a6babef9082ca6976928ca7'] = 'Albarán nº '; -$_LANGPDF['PDF_invoicefe4da50838bb10dcbf1bf8dcd9b12ab5'] = 'Factura nº '; -$_LANGPDF['PDF_invoiceba160acb58001c904c57507da3689265'] = 'Pedido n°'; -$_LANGPDF['PDF_invoice808a04117534f9dfb63b9accd7efc609'] = 'Oficinas:'; -$_LANGPDF['PDF_invoicea54cedc1e053a70d4a6319feccf531ca'] = 'TELÉFONO:'; -$_LANGPDF['PDF_invoice2babe53026309ed1bc4d26626dbaf9b3'] = 'Detalles:'; -$_LANGPDF['PDF_invoice15b57bef332e7e0327d89fe93711a954'] = 'La versión electrónica de esta factura está disponible en su cuenta. Para acceder a ella, identifíquese en'; -$_LANGPDF['PDF_invoiceb1fb57b55075a4a51cf83e44d0440358'] = 'nuestra Web usando su dirección de correo electrónico y contraseña (que creó cuando realizó su primer pedido).'; -$_LANGPDF['PDF_invoiced98a07f84921b24ee30f86fd8cd85c3c'] = 'de'; -$_LANGPDF['PDF_invoice88be9ea838e21273267409d76af3b284'] = 'Hemos accedido a su solicitud de devolución.'; -$_LANGPDF['PDF_invoicedd0b8feb4eb6c389c284518f5683017c'] = 'Le recordamos que debemos recibir su devolución antes de'; -$_LANGPDF['PDF_invoiceea62a2e28a800c367509773730120a67'] = 'días desde el momento en que recibió su pedido.'; -$_LANGPDF['PDF_invoice3d2f834cf879baebfdbe52c1c14d9d53'] = 'Listado de artículos devueltos:'; -$_LANGPDF['PDF_invoice9fad4fa5f3fa5caad9b506bbdd9f35d4'] = 'Referencia de devolución:'; -$_LANGPDF['PDF_invoicefb902bc4807c307b9309f2b528b96f2b'] = 'RET'; -$_LANGPDF['PDF_invoiceec9d9f81be48dabb74bcdad5312816af'] = 'Gracias por incluir este número en su paquete de devolución.'; -$_LANGPDF['PDF_invoicefbbd47b7e45c0ad3fe0bf70539b5a2d4'] = 'RECUERDE:'; -$_LANGPDF['PDF_invoicea3852e23346f6f1e29e1683991690af3'] = '- Todos los artículos deben devolverse en su embalaje original en buen estado y sin haber sido usados.'; -$_LANGPDF['PDF_invoice0e9a828e54995e48083a072205493fb4'] = '- Por favor, imprima este documento e introdúzcalo en su envío.'; -$_LANGPDF['PDF_invoicead500469c8dc258dcebb89c9efe15de7'] = '- El paquete debe enviarse a la siguiente dirección:'; -$_LANGPDF['PDF_invoice9f68b11daca41ccf9fdc9d2f69901c9c'] = 'Una vez recibamos su envío, le informaremos por correo electrónico y procederemos al reembolso de su dinero.'; -$_LANGPDF['PDF_invoice2d0620950a4d96ae301ba7a98e528714'] = 'Indíquenos cualquier pregunta que le surja.'; -$_LANGPDF['PDF_invoice25e12a86579549b9f88117615eb05e4b'] = 'Si no se respetan las condiciones de devolución,'; -$_LANGPDF['PDF_invoicec896fe3f3895e8ef54194eec601b8f3c'] = 'nos reservamos el derecho de rechazar su envío o el reembolso.'; -$_LANGPDF['PDF_invoiceb5a7adde1af5c87d7fd797b6245c2a39'] = 'Descripción'; -$_LANGPDF['PDF_invoice63d5049791d9d79d86e9a108b0a999ca'] = 'Referencia'; -$_LANGPDF['PDF_invoice03ab340b3f99e03cff9e84314ead38c0'] = 'Cant.'; -$_LANGPDF['PDF_invoice396124314c5fd1fa5bf463274896dc80'] = 'No se ha definido ningún método de precio para este grupo'; -$_LANGPDF['PDF_invoice065ab3a28ca4f16f55f103adc7d0226f'] = 'Entrega'; -$_LANGPDF['PDF_invoice6bdf2efe1a99072849d4e87baee37dbe'] = 'Facturación'; -$_LANGPDF['PDF_invoice60da3bd6867e3952ef0057a0772ea885'] = 'id del impuesto'; -$_LANGPDF['PDF_invoice7b13afd12d6d91d52aa9f857d23f96ef'] = 'Proyecto de factura'; -$_LANGPDF['PDF_invoiced1228f5476d15142b1358ae4b5fa2454'] = 'Pedido nº '; -$_LANGPDF['PDF_invoicef8617a92ba0a0a4eabee724eab7c9f48'] = 'Transportista:'; -$_LANGPDF['PDF_invoicec1f6368d15f7c13c4e5e8f70c68c747f'] = 'Modo de pago:'; -$_LANGPDF['PDF_invoicea3a79b28bc45b7fd393effd056b917e1'] = 'Fecha de envío:'; -$_LANGPDF['PDF_invoice115dfa9ced2cf136ae677b9a389a5e60'] = 'paquete regalo'; -$_LANGPDF['PDF_invoice2370a4958c4ebe6d6c8045cd49a6b392'] = 'Total productos sin IVA'; -$_LANGPDF['PDF_invoiceebaee01719541f61281c16ba22ebbfde'] = 'Total productos (IVA incluido)'; -$_LANGPDF['PDF_invoicea0eb2cd0b3deb5444102e9a82edae11e'] = 'Total productos'; -$_LANGPDF['PDF_invoicef3e545fccad720e197b9ca3b8b658440'] = 'Total descuentos (IVA incluido)'; -$_LANGPDF['PDF_invoice9cc000efe3e783af5bf114f2e6573156'] = 'Total embalaje'; -$_LANGPDF['PDF_invoice96b0141273eabab320119c467cdcaf17'] = 'Total'; -$_LANGPDF['PDF_invoice54732c5d0a3f0d597312b0ee55d71fca'] = '(IVA incluido)'; -$_LANGPDF['PDF_invoiceac5831c7ec2fed92c7bb73e9962003a4'] = '(sin IVA)'; -$_LANGPDF['PDF_invoiceafd42dfebce46ec93972b2e0cbb8b83f'] = 'Precio Un.'; -$_LANGPDF['PDF_invoice1d744a9ad1dac20645cfc4a36b77323b'] = 'imagen'; -$_LANGPDF['PDF_invoicec2808546f3e14d267d798f4e0e6f102e'] = 'Personalizado'; -$_LANGPDF['PDF_invoicea1e7379abfdbc3b8e03506e5489c6110'] = 'Descuento:'; -$_LANGPDF['PDF_invoicee7bbf027179f23c92bec649fa6ae78e4'] = 'Exento de IVA según el artículo 259B del Código General de los Impuestos.'; -$_LANGPDF['PDF_invoice42c26bf38ece1dcd27aca8c6f8c076ed'] = 'Desglose IVA'; -$_LANGPDF['PDF_invoice4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Tasa'; -$_LANGPDF['PDF_invoicecd6576cc33506a6c44e2debbde5c14d9'] = 'Total sin IVA'; -$_LANGPDF['PDF_invoiceb602e0d0c6a72053d0a5be60cb2f8126'] = 'Total IVA'; -$_LANGPDF['PDF_invoicefe1218d355367ae728ae5bf4bbf0019e'] = 'Ecotasa (IVA incl.)'; -$_LANGPDF['PDF_invoiceae5c2883df7651730799e1036984a6a3'] = 'Total IVA incluído'; -$_LANGPDF['PDF_invoice068f80c7519d0528fb08e82137a72131'] = 'Artículos'; -$_LANGPDF['PDF_invoice914419aa32f04011357d3b604a86d7eb'] = 'Transportista'; -$_LANGPDF['PDF_invoice41c1d61bfff3fc9b1fd8f195061b8caa'] = 'Embalaje'; -$_LANGPDF['PDF_invoice6f3455d187a23443796efdcbe044096b'] = 'Sin impuestos'; -?> \ No newline at end of file +?> diff --git a/translations/fr/pdf.php b/translations/fr/pdf.php index 952b39f6b..14db5ac83 100644 --- a/translations/fr/pdf.php +++ b/translations/fr/pdf.php @@ -2,7 +2,5 @@ global $_LANGPDF; $_LANGPDF = array(); -$_LANGPDF['PDF_invoice396124314c5fd1fa5bf463274896dc80'] = 'Pas de méthode d\'affichage de prix défini pour ce groupe d\'utilisateur'; -$_LANGPDF['PDF_invoice5082245495aa792b3d0874088d2b111b'] = 'plopd'; ?> diff --git a/translations/it/pdf.php b/translations/it/pdf.php index 010cc1c3a..14db5ac83 100644 --- a/translations/it/pdf.php +++ b/translations/it/pdf.php @@ -2,69 +2,5 @@ global $_LANGPDF; $_LANGPDF = array(); -$_LANGPDF['PDF_invoicee0036b67b754e9f6442f9f9e6b200c33'] = 'Restituzione n.'; -$_LANGPDF['PDF_invoice77c3e447f60541a1c346a08134078c7f'] = 'Nota di credito n.'; -$_LANGPDF['PDF_invoicecb5efbba6a6babef9082ca6976928ca7'] = 'Buono di consegna n.'; -$_LANGPDF['PDF_invoicefe4da50838bb10dcbf1bf8dcd9b12ab5'] = 'Fattura n.'; -$_LANGPDF['PDF_invoiceba160acb58001c904c57507da3689265'] = 'Ordine n.'; -$_LANGPDF['PDF_invoice808a04117534f9dfb63b9accd7efc609'] = 'Sede sociale'; -$_LANGPDF['PDF_invoicea54cedc1e053a70d4a6319feccf531ca'] = 'Telefono:'; -$_LANGPDF['PDF_invoice2babe53026309ed1bc4d26626dbaf9b3'] = 'Dati:'; -$_LANGPDF['PDF_invoice15b57bef332e7e0327d89fe93711a954'] = 'Una versione elettronica è conservata nel tuo conto. Per accedervi, identificati nel sito'; -$_LANGPDF['PDF_invoiceb1fb57b55075a4a51cf83e44d0440358'] = 'con i tuoi dati identificativi (creati al momento del tuo primo ordine).'; -$_LANGPDF['PDF_invoiced98a07f84921b24ee30f86fd8cd85c3c'] = 'da'; -$_LANGPDF['PDF_invoice88be9ea838e21273267409d76af3b284'] = 'Abbiamo registrato la tua richiesta di restituzione.'; -$_LANGPDF['PDF_invoicedd0b8feb4eb6c389c284518f5683017c'] = 'Ti ricordiamo che il tuo pacco ci deve essere restituito nei'; -$_LANGPDF['PDF_invoiceea62a2e28a800c367509773730120a67'] = 'giorni successivi al ricevimento del tuo ordine.'; -$_LANGPDF['PDF_invoice3d2f834cf879baebfdbe52c1c14d9d53'] = 'Elenco dei prodotti che sono stati oggetto di una restituzione:'; -$_LANGPDF['PDF_invoice9fad4fa5f3fa5caad9b506bbdd9f35d4'] = 'Il tuo n. di restituzione:'; -$_LANGPDF['PDF_invoicefb902bc4807c307b9309f2b528b96f2b'] = 'REST'; -$_LANGPDF['PDF_invoiceec9d9f81be48dabb74bcdad5312816af'] = 'Ti preghiamo di inserire questo numero nel tuo pacco di restituzione.'; -$_LANGPDF['PDF_invoicefbbd47b7e45c0ad3fe0bf70539b5a2d4'] = 'PROMEMORIA:'; -$_LANGPDF['PDF_invoicea3852e23346f6f1e29e1683991690af3'] = '- Tutti i prodotti devono essere restituiti nel loro imballaggio e nel loro stato originale.'; -$_LANGPDF['PDF_invoice0e9a828e54995e48083a072205493fb4'] = '- Stampa questo documento e inseriscilo nel pacco.'; -$_LANGPDF['PDF_invoicead500469c8dc258dcebb89c9efe15de7'] = '- Il pacco va inviato al seguente indirizzo:'; -$_LANGPDF['PDF_invoice9f68b11daca41ccf9fdc9d2f69901c9c'] = 'Al momento del ricevimento del tuo pacco procederemo al rimborso della somma del tuo ordine e ti terremo informato tramite e-mail.'; -$_LANGPDF['PDF_invoice2d0620950a4d96ae301ba7a98e528714'] = 'Non esitare a contattarci per qualsiasi domanda.'; -$_LANGPDF['PDF_invoice25e12a86579549b9f88117615eb05e4b'] = 'Se le condizioni di restituzione qui sopra elencate non fossero state rispettate,'; -$_LANGPDF['PDF_invoicec896fe3f3895e8ef54194eec601b8f3c'] = 'ci riserviamo il diritto di rifiutare il tuo pacco o il tuo rimborso.'; -$_LANGPDF['PDF_invoiceb5a7adde1af5c87d7fd797b6245c2a39'] = 'Descrizione'; -$_LANGPDF['PDF_invoice63d5049791d9d79d86e9a108b0a999ca'] = 'Riferimento'; -$_LANGPDF['PDF_invoice03ab340b3f99e03cff9e84314ead38c0'] = 'Quant.'; -$_LANGPDF['PDF_invoice396124314c5fd1fa5bf463274896dc80'] = 'Non c\'è un metodo di visualizzazione dei prezzi definito per questo gruppo di utenti'; -$_LANGPDF['PDF_invoice065ab3a28ca4f16f55f103adc7d0226f'] = 'Consegna'; -$_LANGPDF['PDF_invoice6bdf2efe1a99072849d4e87baee37dbe'] = 'Fatturazione'; -$_LANGPDF['PDF_invoice60da3bd6867e3952ef0057a0772ea885'] = 'Numero di codice fiscale:'; -$_LANGPDF['PDF_invoice7b13afd12d6d91d52aa9f857d23f96ef'] = 'bozza fattura'; -$_LANGPDF['PDF_invoiced1228f5476d15142b1358ae4b5fa2454'] = 'Ordine n.'; -$_LANGPDF['PDF_invoicef8617a92ba0a0a4eabee724eab7c9f48'] = 'Mezzo di spedizione:'; -$_LANGPDF['PDF_invoicec1f6368d15f7c13c4e5e8f70c68c747f'] = 'Metodo di pagamento:'; -$_LANGPDF['PDF_invoicea3a79b28bc45b7fd393effd056b917e1'] = 'Data di spedizione:'; -$_LANGPDF['PDF_invoice115dfa9ced2cf136ae677b9a389a5e60'] = 'Pacco regalo'; -$_LANGPDF['PDF_invoice2370a4958c4ebe6d6c8045cd49a6b392'] = 'Totale prodotti tasse escl.'; -$_LANGPDF['PDF_invoiceebaee01719541f61281c16ba22ebbfde'] = 'Totale prodotti tasse incl.'; -$_LANGPDF['PDF_invoicea0eb2cd0b3deb5444102e9a82edae11e'] = 'Totale prodotti'; -$_LANGPDF['PDF_invoicef3e545fccad720e197b9ca3b8b658440'] = 'Totale sconti tasse incl.'; -$_LANGPDF['PDF_invoice9cc000efe3e783af5bf114f2e6573156'] = 'Totale pacco regalo'; -$_LANGPDF['PDF_invoicef246a17c095de09e043cc1cb917481da'] = 'Totale spedizione (tax escl.)'; -$_LANGPDF['PDF_invoicee93f43fa527c3534aeca987091d6c049'] = 'Totale spedizione (tax incl.)'; -$_LANGPDF['PDF_invoice96b0141273eabab320119c467cdcaf17'] = 'Totale'; -$_LANGPDF['PDF_invoice54732c5d0a3f0d597312b0ee55d71fca'] = 'Tasse incl.'; -$_LANGPDF['PDF_invoiceac5831c7ec2fed92c7bb73e9962003a4'] = 'Tasse escl.'; -$_LANGPDF['PDF_invoiceafd42dfebce46ec93972b2e0cbb8b83f'] = 'Prezzo unitario'; -$_LANGPDF['PDF_invoice1d744a9ad1dac20645cfc4a36b77323b'] = 'immagine/i'; -$_LANGPDF['PDF_invoicec2808546f3e14d267d798f4e0e6f102e'] = 'Personalizzato'; -$_LANGPDF['PDF_invoicea1e7379abfdbc3b8e03506e5489c6110'] = 'Sconto:'; -$_LANGPDF['PDF_invoicee7bbf027179f23c92bec649fa6ae78e4'] = 'Esente da IVA secondo l\'art. 259B del Codice Generale delle Imposte. '; -$_LANGPDF['PDF_invoice42c26bf38ece1dcd27aca8c6f8c076ed'] = 'Dettagli fiscali'; -$_LANGPDF['PDF_invoice4b78ac8eb158840e9638a3aeb26c4a9d'] = 'Tassa'; -$_LANGPDF['PDF_invoicecd6576cc33506a6c44e2debbde5c14d9'] = 'Totale tasse escl.'; -$_LANGPDF['PDF_invoiceb602e0d0c6a72053d0a5be60cb2f8126'] = 'Tasse totali'; -$_LANGPDF['PDF_invoicefe1218d355367ae728ae5bf4bbf0019e'] = 'Ecotassa (tasse incl.)'; -$_LANGPDF['PDF_invoiceae5c2883df7651730799e1036984a6a3'] = 'Totale tasse incl.'; -$_LANGPDF['PDF_invoice068f80c7519d0528fb08e82137a72131'] = 'Prodotti'; -$_LANGPDF['PDF_invoice914419aa32f04011357d3b604a86d7eb'] = 'Mezzo di spedizione'; -$_LANGPDF['PDF_invoice41c1d61bfff3fc9b1fd8f195061b8caa'] = 'Pacco regalo'; -$_LANGPDF['PDF_invoice6f3455d187a23443796efdcbe044096b'] = 'Nessuna tassa'; -?> \ No newline at end of file +?>