Fix new-line in "Invalid category name" translation for Bulgarian

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.
This commit is contained in:
Slavi Pantaleev 2025-03-09 08:54:34 +02:00
commit bfe7bfb4c2

View file

@ -317,8 +317,7 @@
</message> </message>
<message> <message>
<source>Invalid category name:\nPlease do not use any special characters in the category name.</source> <source>Invalid category name:\nPlease do not use any special characters in the category name.</source>
<translation>Невалидно име на категория: <translation>Невалидно име на категория:\nМоля не използвайте никакви специални символи в името на категорията.</translation>
Моля не използвайте никакви специални символи в името на категорията.</translation>
</message> </message>
<message> <message>
<source>Unable to create category</source> <source>Unable to create category</source>