From c2693846aef8a7537187c22b91dd5d467227f9b0 Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 10 Oct 2024 14:10:28 +0300 Subject: [PATCH 1/2] feat: use default empty template --- lib/templatemanager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/templatemanager.php b/lib/templatemanager.php index 43ab33f3..c5ecdc69 100644 --- a/lib/templatemanager.php +++ b/lib/templatemanager.php @@ -174,7 +174,7 @@ public static function getEmptyTemplate($fileName) { */ public static function getEmptyTemplatePath($lang, $ext) { if (!\array_key_exists($lang, self::$localPath)) { - $lang = "en"; + $lang = "default"; } return \dirname(__DIR__) . DIRECTORY_SEPARATOR . "assets" . DIRECTORY_SEPARATOR . "document-templates" . DIRECTORY_SEPARATOR . self::$localPath[$lang] . DIRECTORY_SEPARATOR . "new" . $ext; @@ -192,6 +192,7 @@ public static function getEmptyTemplatePath($lang, $ext) { "cs" => "cs-CZ", "de" => "de-DE", "de_DE" => "de-DE", + "default" => "default", "el" => "el-GR", "en" => "en-US", "en_GB" => "en-GB", From 66cd62c4b7cc9bcdfa69e13c911f889cd5ebdf5f Mon Sep 17 00:00:00 2001 From: rivexe Date: Thu, 10 Oct 2024 14:12:16 +0300 Subject: [PATCH 2/2] docs: default empty template to CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b270c24..bdc1d48a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - support tiff format for inserting - fi-FI, Hebrew (Israel), nb-NO, sl-SI empty file templates +## Changed +- used default empty template instead of en-US + ## 9.3.1 ## Changed - creating and editing pdf form