Skip to content

Commit

Permalink
Fix TCPDF v6.8.2 breaks document generation because lang files are re…
Browse files Browse the repository at this point in the history
…moved from release

See: #252
  • Loading branch information
maechler committed Feb 6, 2025
1 parent 1c25c1c commit 852c0be
Show file tree
Hide file tree
Showing 49 changed files with 2,113 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/DocumentViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function render(): string
*/
protected function loadTcpdfLanguageSettings(): void
{
$languageFilePath = $this->getTCPDFInstallPath('examples/lang/' . $this->arguments['language'] . '.php');
$languageFilePath = GeneralUtility::getFileAbsFileName('EXT:pdfviewhelpers/Resources/Private/Language/' . $this->arguments['language'] . '.php');

if (!file_exists($languageFilePath) || !is_readable($languageFilePath)) {
throw new ValidationException('The provided language file "' . $languageFilePath . '" does not exist or the file is not readable. ERROR: 1536487362', 1536487362);
Expand Down
44 changes: 44 additions & 0 deletions Resources/Private/Language/afr.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : afr.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Afrikaans
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Afrikaans
* @author Nicola Asuni
* @since 2010-10-26
*/

// Afrikaans

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'af';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'bladsy';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/ara.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : ara.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Arabic
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Arabic
* @author Nicola Asuni
* @since 2010-10-26
*/

// Arabic

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'rtl';
$l['a_meta_language'] = 'ar';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'صفحة';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/aze.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : aze.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Azerbaijani
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Azerbaijani
* @author Nicola Asuni
* @since 2010-10-26
*/

// Azerbaijani

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'az';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'səhifə';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/bel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : bel.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Basque
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Basque
* @author Nicola Asuni
* @since 2010-10-26
*/

// Basque

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'be';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'старонкі';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/bra.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : eng.php
// Begin : 2004-03-03
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Brazilian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Brazilian
* @author Nicola Asuni
* @since 2004-03-03
*/

// Brazilian

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'pt';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'página';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/bul.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : bul.php
// Begin : 2004-03-03
// Last Update : 2013-05-13
//
// Description : Language module for TCPDF
// (contains translated texts)
// Bulgarian
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Bulgarian
* @author Nicola Asuni
* @since 2012-03-22
*/

// Bulgarian

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'bg';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'страница';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/cat.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : cat.php
// Begin : 2010-10-26
// Last Update : 2010-10-26
//
// Description : Language module for TCPDF
// (contains translated texts)
// Catalan
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Catalan
* @author Nicola Asuni
* @since 2010-10-26
*/

// Catalan

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'ca';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'pàgina';

//============================================================+
// END OF FILE
//============================================================+
44 changes: 44 additions & 0 deletions Resources/Private/Language/ces.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
//============================================================+
// File name : ces.php
// Begin : 2010-10-26
// Last Update : 2010-11-22
//
// Description : Language module for TCPDF
// (contains translated texts)
// Czech
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// [email protected]
//============================================================+

/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @brief TCPDF language file: Czech
* @author Nicola Asuni
* @since 2010-10-26
*/

// Czech

global $l;
$l = Array();

// PAGE META DESCRIPTORS --------------------------------------

$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'cs';

// TRANSLATIONS --------------------------------------
$l['w_page'] = 'stránka';

//============================================================+
// END OF FILE
//============================================================+
Loading

0 comments on commit 852c0be

Please sign in to comment.