diff --git a/CHANGELOG.md b/CHANGELOG.md index 51d376da..ebcf4d06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - support tiff format for inserting - Finnish, Hebrew, Norwegian, Slovenian empty file templates +## Changed +- used default empty template instead of en-US + ## 9.3.1 ## Changed - creating and editing pdf form 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",