Add translatable search error strings

This commit is contained in:
RumovZ 2021-01-15 09:10:19 +01:00
parent c8f0961c6c
commit 91d56a9b91

View file

@ -1,45 +1,91 @@
## Errors shown when invalid search input is encountered. ## Errors shown when invalid search input is encountered.
## Strong text is literal search input and should not to be translated.
search-invalid = Invalid search - please check for typing mistakes. search-invalid = Invalid search - please check for typing mistakes.
# The literal string `AND` is part of the search syntax.
search-misplaced-and = search-misplaced-and =
An `AND` was found but it is not connecting two Invalid search:
search terms. If you want to search for the word itself, wrap it in An <strong>and</strong> was found but it is not connecting two search terms.
double quotes: "and". If you want to search for the word itself, wrap it in double quotes: <strong>"and"</strong>.
# The literal string `OR` is part of the search syntax.
search-misplaced-or = search-misplaced-or =
An `OR` was found but it is not connecting two Invalid search:
search terms. If you want to search for the word itself, wrap it in An <strong>or</strong> was found but it is not connecting two search terms.
double quotes: "or". If you want to search for the word itself, wrap it in double quotes: <strong>"or"</strong>.
search-empty-group = search-empty-group =
A group was found but there was nothing between the Invalid search:
parentheses to search for. A group <strong>(...)</strong> was found but there was nothing between the brackets to search for.
search-unopened-group = search-unopened-group If you want to search for literal brackets, wrap them in double quotes: <strong>"( )"</strong>.
search-unclosed-group = search-unclosed-group search-unopened-group =
Invalid search:
A closing bracket <strong>)</strong> was found, but there was no opening bracket <strong>(</strong> preceding it.
If you want to search for the literal <strong>)</strong>, wrap it in double quotes or prepend a backslash: <strong>")"</strong> or <strong>\)</strong>.
search-unclosed-group =
Invalid search:
An opening bracket <strong>(</strong> was found, but there was no closing bracket <strong>)</strong> following it.
If you want to search for the literal <strong>(</strong>, wrap it in double quotes or prepend a backslash: <strong>"("</strong> or <strong>\(</strong> .
search-empty-quote = search-empty-quote =
A quote was found but there was nothing between the Invalid search:
double quotes to search for. A pair of double quotes <strong>""</strong> was found but there was nothing between them to search for.
If you want to search for literal double quotes, prepend backslashes: <strong>\"\"</strong>.
search-unclosed-quote = search-unclosed-quote =
An opening double quote `"` was found but there Invalid search:
is no second one to close it. An opening double quote <strong>"</strong> was found but there was no second one to close it.
search-missing-key = A colon `:` must be preceded by a key. If you want to search for the literal <strong>"</strong>, prepend a backslash: <strong>\"</strong>.
search-unknown-escape = The escape sequence `` is unknown. search-missing-key =
search-invalid-id-list = error Invalid search:
search-invalid-state = error A colon <strong>:</strong> was found but there was no key word preceding it.
search-invalid-flag = error If you want to search for the literal <strong>:</strong>, prepend a backslash: <strong>\:</strong>.
search-invalid-added = error search-unknown-escape =
search-invalid-edited = error Invalid search:
search-invalid-rated-days = error The escape sequence <strong>{ $val }</strong> is not defined.
search-invalid-rated-ease = error If you want to search for the literal backslash <strong>\</strong>, prepend another one: <strong>\\</strong>.
search-invalid-dupe-mid = error search-invalid-id-list =
search-invalid-dupe-text = error Invalid search:
search-invalid-prop-property = error Note or card id lists must be comma-separated number series.
search-invalid-prop-operator = error search-invalid-state =
search-invalid-prop-float = error Invalid search:
search-invalid-prop-integer = error <strong>is:</strong> must be followed by one of the predefined card states: <strong>new</strong>, <strong>review</strong>, <strong>learn</strong>, <strong>due</strong>, <strong>buried</strong>, <strong>buried-manually</strong>, <strong>buried-sibling</strong> or <strong>suspended</strong>.
search-invalid-prop-unsigned = error search-invalid-flag =
search-invalid-did = error Invalid search:
search-invalid-mid = error <strong>flag:</strong> must be followed by a valid flag number: <strong>1</strong> (red), <strong>2</strong> (orange), <strong>3</strong> (green), <strong>4</strong> (blue) or <strong>0</strong> (no flag).
search-invalid-added =
Invalid search:
<strong>added:</strong> must be followed by a positive number of days.
search-invalid-edited =
Invalid search:
<strong>edited:</strong> must be followed by a positive number of days.
search-invalid-rated-days =
Invalid search:
<strong>rated:</strong> must be followed by a positive number of days.
search-invalid-rated-ease =
Invalid search:
<strong>rated:{ $val }:</strong> must be followed by <strong>0</strong> (rescheduled), <strong>1</strong> (again), <strong>2</strong> (hard), <strong>3</strong> (good) or <strong>4</strong> (easy).
search-invalid-dupe-mid =
Invalid search:
<strong>dupe:</strong> must be followed by a note type id, a comma and then arbitrary text.
search-invalid-dupe-text =
Invalid search:
<strong>dupe:</strong> must be followed by a note type id, a comma and then arbitrary text.
search-invalid-prop-property =
Invalid search:
<strong>prop:</strong> must be followed by one of the predefined card properties: <strong>ivl</strong> (interval), <strong>due</strong>, <strong>reps</strong> (repetitions), <strong>lapses</strong>, <strong>ease</strong> or <strong>pos</strong> (position).
search-invalid-prop-operator =
Invalid search:
<strong>prop:{ $val }</strong> must be followed by one of the comparison operators: <strong>=</strong>, <strong>!=</strong>, <strong>&lt;</strong>, <strong>&gt;</strong>, <strong>&lt;=</strong> or <strong>&gt;=</strong>.
search-invalid-prop-float =
Invalid search:
<strong>prop:{ $val }</strong> must be followed by a decimal number.
search-invalid-prop-integer =
Invalid search:
<strong>prop:{ $val }</strong> must be followed by a whole number.
search-invalid-prop-unsigned =
Invalid search:
<strong>prop:{ $val }</strong> must be followed by a non-negative whole number.
search-invalid-did =
Invalid search:
<strong>did:</strong> must be followed by a valid deck id.
search-invalid-mid =
Invalid search:
<strong>mid:</strong> must be followed by a note type deck id.
## Column labels in browse screen ## Column labels in browse screen