Skip to content

Commit

Permalink
#1665 Update error messages for search
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Jun 12, 2018
1 parent fb403be commit 8dee2ed
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 36 deletions.
Binary file modified lang/English/luna.mo
Binary file not shown.
36 changes: 19 additions & 17 deletions lang/English/luna.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Luna 2.0\n"
"POT-Creation-Date: 2018-06-12 09:40+0200\n"
"PO-Revision-Date: 2018-06-12 09:40+0200\n"
"POT-Creation-Date: 2018-06-12 15:19+0200\n"
"PO-Revision-Date: 2018-06-12 15:19+0200\n"
"Last-Translator: \n"
"Language-Team: Luna Group\n"
"Language: en\n"
Expand Down Expand Up @@ -1717,8 +1717,8 @@ msgstr ""
msgid "Manage groups"
msgstr ""

#: backstage/header.php:26 backstage/header.php:92 include/functions.php:2184
#: include/functions.php:2242 install.php:186
#: backstage/header.php:26 backstage/header.php:92 include/functions.php:2189
#: include/functions.php:2247 install.php:186
msgid "Direction of language"
msgstr "ltr"

Expand Down Expand Up @@ -1754,7 +1754,7 @@ msgstr ""

#: backstage/header.php:121 backstage/header.php:190
#: backstage/maintenance.php:181 backstage/maintenance.php:187
#: db_update.php:183 include/functions.php:1421
#: db_update.php:183 include/functions.php:1426
msgid "Maintenance"
msgstr ""

Expand Down Expand Up @@ -3906,23 +3906,23 @@ msgstr ""
msgid "Luna failed to perform your request"
msgstr ""

#: include/functions.php:1158
#: include/functions.php:1163
msgid "Today"
msgstr ""

#: include/functions.php:1160
#: include/functions.php:1165
msgid "Yesterday"
msgstr ""

#: include/functions.php:1177
#: include/functions.php:1182
msgid "."
msgstr ""

#: include/functions.php:1177
#: include/functions.php:1182
msgid ","
msgstr ""

#: include/functions.php:1229 include/functions.php:1249
#: include/functions.php:1234 include/functions.php:1254
msgid ""
"Bad HTTP_REFERER. You were referred to this page from an unauthorized "
"source. If the problem persists please make sure that \"Base URL\" is "
Expand All @@ -3931,29 +3931,29 @@ msgid ""
"found in the Luna documentation."
msgstr ""

#: include/functions.php:1292
#: include/functions.php:1297
msgid ""
"Bad CSRF hash. You were referred to this page from an unauthorized source."
msgstr ""

#: include/functions.php:1680
#: include/functions.php:1685
#, php-format
msgid "%s "
msgstr ""

#: include/functions.php:2054
#: include/functions.php:2059
msgid "Debug information"
msgstr ""

#: include/functions.php:2059
#: include/functions.php:2064
msgid "Time (s)"
msgstr ""

#: include/functions.php:2060
#: include/functions.php:2065
msgid "Query"
msgstr ""

#: include/functions.php:2081
#: include/functions.php:2086
#, php-format
msgid "Total query time: %s"
msgstr ""
Expand Down Expand Up @@ -4673,7 +4673,9 @@ msgid "You do not have permission to use the search feature."
msgstr ""

#: search.php:57
msgid "You have to enter at least one keyword and/or an author to search for."
msgid ""
"You have to enter at least one keyword and/or an author to search for. "
"Search terms need to be at least three characters long."
msgstr ""

#: search.php:107
Expand Down
Binary file modified lang/Nederlands/luna.mo
Binary file not shown.
40 changes: 22 additions & 18 deletions lang/Nederlands/luna.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Luna 2.0\n"
"POT-Creation-Date: 2018-06-12 09:40+0200\n"
"PO-Revision-Date: 2018-06-12 09:41+0200\n"
"POT-Creation-Date: 2018-06-12 15:18+0200\n"
"PO-Revision-Date: 2018-06-12 15:18+0200\n"
"Last-Translator: \n"
"Language-Team: Luna Group <[email protected]>\n"
"Language: nl\n"
Expand Down Expand Up @@ -1824,8 +1824,8 @@ msgstr "Standaard groep"
msgid "Manage groups"
msgstr "Groepen beheren"

#: backstage/header.php:26 backstage/header.php:92 include/functions.php:2184
#: include/functions.php:2242 install.php:186
#: backstage/header.php:26 backstage/header.php:92 include/functions.php:2189
#: include/functions.php:2247 install.php:186
msgid "Direction of language"
msgstr "ltr"

Expand Down Expand Up @@ -1861,7 +1861,7 @@ msgstr "Instellingen"

#: backstage/header.php:121 backstage/header.php:190
#: backstage/maintenance.php:181 backstage/maintenance.php:187
#: db_update.php:183 include/functions.php:1421
#: db_update.php:183 include/functions.php:1426
msgid "Maintenance"
msgstr "Onderhoud"

Expand Down Expand Up @@ -4215,23 +4215,23 @@ msgstr "..."
msgid "Luna failed to perform your request"
msgstr "Luna kon je verzoek niet volbrengen"

#: include/functions.php:1158
#: include/functions.php:1163
msgid "Today"
msgstr "Vandaag"

#: include/functions.php:1160
#: include/functions.php:1165
msgid "Yesterday"
msgstr "Gisteren"

#: include/functions.php:1177
#: include/functions.php:1182
msgid "."
msgstr "."

#: include/functions.php:1177
#: include/functions.php:1182
msgid ","
msgstr ","

#: include/functions.php:1229 include/functions.php:1249
#: include/functions.php:1234 include/functions.php:1254
msgid ""
"Bad HTTP_REFERER. You were referred to this page from an unauthorized "
"source. If the problem persists please make sure that \"Base URL\" is "
Expand All @@ -4244,31 +4244,31 @@ msgstr ""
"instelling mogelijk fout ingegeven. Meer informatie over dit probleem kan je "
"vinden in de Luna documentatie."

#: include/functions.php:1292
#: include/functions.php:1297
msgid ""
"Bad CSRF hash. You were referred to this page from an unauthorized source."
msgstr ""
"Slechte CSRF hash. Je bent naar deze pagina doorgestuurt van een ongeldige "
"bron."

#: include/functions.php:1680
#: include/functions.php:1685
#, php-format
msgid "%s "
msgstr "%s"

#: include/functions.php:2054
#: include/functions.php:2059
msgid "Debug information"
msgstr "Debug info"

#: include/functions.php:2059
#: include/functions.php:2064
msgid "Time (s)"
msgstr "Tijd (s)"

#: include/functions.php:2060
#: include/functions.php:2065
msgid "Query"
msgstr "Query"

#: include/functions.php:2081
#: include/functions.php:2086
#, php-format
msgid "Total query time: %s"
msgstr "Totale query tijd: %s"
Expand Down Expand Up @@ -5168,8 +5168,12 @@ msgid "You do not have permission to use the search feature."
msgstr "Je hebt geen toestemming om de zoekfunctie te gebruiken."

#: search.php:57
msgid "You have to enter at least one keyword and/or an author to search for."
msgstr "Je moet minstens één zoekwoord en/of auteur ingeven om te zoeken."
msgid ""
"You have to enter at least one keyword and/or an author to search for. "
"Search terms need to be at least three characters long."
msgstr ""
"Je moet minstens één zoekwoord en/of auteur ingeven om te zoeken. "
"Zoekwoorden moeten minstens drie tekens lang zijn."

#: search.php:107
#, php-format
Expand Down
2 changes: 1 addition & 1 deletion search.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
$author = '';

if (!$keywords && !$author)
message(__('You have to enter at least one keyword and/or an author to search for.', 'luna'));
message(__('You have to enter at least one keyword and/or an author to search for. Search terms need to be at least three characters long.', 'luna'));

if ($author)
$author = str_replace(array('*', '_'), array('%', '\\_'), $author);
Expand Down

0 comments on commit 8dee2ed

Please sign in to comment.