Merge pull request #14456 from annando/linefeeds

Fix linefeeds in "detected languages" popup
This commit is contained in:
Tobias Diekershoff 2024-10-08 08:05:18 +02:00 committed by GitHub
commit 342eb53a41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -2319,12 +2319,12 @@ class Item
}
if ($native != $language) {
$used_languages .= DI::l10n()->t('%s (%s - %s): %s', $native, $language, $code, number_format($reliability, 5)) . '\n';
$used_languages .= DI::l10n()->t('%s (%s - %s): %s', $native, $language, $code, number_format($reliability, 5)) . "\n";
} else {
$used_languages .= DI::l10n()->t('%s (%s): %s', $native, $code, number_format($reliability, 5)) . '\n';
$used_languages .= DI::l10n()->t('%s (%s): %s', $native, $code, number_format($reliability, 5)) . "\n";
}
}
$used_languages = DI::l10n()->t('Detected languages in this post:\n%s', $used_languages);
$used_languages = DI::l10n()->t("Detected languages in this post:\n%s", $used_languages);
return $used_languages;
}

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2024.09-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-03 12:14+0200\n"
"POT-Creation-Date: 2024-10-07 20:46+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -3382,7 +3382,9 @@ msgstr ""
#: src/Model/Item.php:2327
#, php-format
msgid "Detected languages in this post:\\n%s"
msgid ""
"Detected languages in this post:\n"
"%s"
msgstr ""
#: src/Model/Item.php:3276