From bfe7bfb4c29f14eb72b2f85c42fcba84d2b6a93a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 9 Mar 2025 08:54:34 +0200 Subject: [PATCH] Fix new-line in "Invalid category name" translation for Bulgarian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The translated text contained a new-line instead of the `\n` literal. This resulted in `/newcategory.html?action=create` rendering: ```js if (name.match("^([^\\\\\\/]|[^\\\\\\/]([^\\\\\\/]|\\/(?=[^\\/]))*[^\\\\\\/])$") === null) { alert("Невалидно име на категория: Моля не използвайте никакви специални символи в името на категорията."); return false; } ``` .. which resulted in the following error: > Uncaught SyntaxError: "" string literal contains an unescaped line break This made creating new categories via the web UI not possible when the Bulgarian translation was used. --- src/webui/www/translations/webui_bg.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webui/www/translations/webui_bg.ts b/src/webui/www/translations/webui_bg.ts index a635881bd..287a749a7 100644 --- a/src/webui/www/translations/webui_bg.ts +++ b/src/webui/www/translations/webui_bg.ts @@ -317,8 +317,7 @@ Invalid category name:\nPlease do not use any special characters in the category name. - Невалидно име на категория: -Моля не използвайте никакви специални символи в името на категорията. + Невалидно име на категория:\nМоля не използвайте никакви специални символи в името на категорията. Unable to create category