// Tags don't look like an URL and the fulltext search does only work with natural words
if (parse_url($search, PHP_URL_SCHEME) && parse_url($search, PHP_URL_HOST)) {
$this->logger->info('Skipping tag and fulltext search since the search looks like a URL.', ['q' => $search]);
- DI::sysmsg()->addNotice(DI::l10n()->t('No results.'));
+ $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), [
+ '$title' => DI::l10n()->t('No results.')
+ ]);
return $o;
}
if (empty($items)) {
if (empty($last_uriid)) {
- DI::sysmsg()->addNotice(DI::l10n()->t('No results.'));
+ $o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), [
+ '$title' => DI::l10n()->t('No results.')
+ ]);
}
return $o;
}
msgstr ""
"Project-Id-Version: 2025.02-dev\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-06-14 15:06+0200\n"
+"POT-Creation-Date: 2025-06-21 13:03+0200\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"
msgid "Map"
msgstr ""
-#: src/App.php:451
+#: src/App.php:454
msgid "Apologies but the website is unavailable at the moment."
msgstr ""
msgid "prev"
msgstr ""
-#: src/Content/Pager.php:262 src/Module/Calendar/Show.php:122
+#: src/Content/Pager.php:246 src/Module/Calendar/Show.php:122
msgid "next"
msgstr ""
-#: src/Content/Pager.php:267
+#: src/Content/Pager.php:251
msgid "last"
msgstr ""
msgid "Search your contacts"
msgstr ""
-#: src/Module/Contact.php:441 src/Module/Search/Index.php:202
+#: src/Module/Contact.php:441 src/Module/Search/Index.php:206
#, php-format
msgid "Results for: %s"
msgstr ""
msgstr ""
#: src/Module/Conversation/Channel.php:125
-#: src/Module/Conversation/Community.php:114 src/Module/Search/Index.php:139
-#: src/Module/Search/Index.php:189
+#: src/Module/Conversation/Community.php:114 src/Module/Search/Index.php:140
+#: src/Module/Search/Index.php:192
msgid "No results."
msgstr ""
msgid "Only one search per minute is permitted for not logged in users."
msgstr ""
-#: src/Module/Search/Index.php:200
+#: src/Module/Search/Index.php:204
#, php-format
msgid "Items tagged with: %s"
msgstr ""
// temporary workaround to avoid 'undefined' being displayed (issue #9789)
// https://github.com/friendica/friendica/issues/9789
- // TODO: find a way to localize this string
if (typeof searchText === "undefined") {
- searchText = "No results";
+ searchText = "";
}
// insert the plain text in a <h4> heading and give it a class
var newText = '<h4 class="search-heading">' + searchText + "</h4>";