mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
search-invalid-flag -> search-invalid-flag-2
This commit is contained in:
parent
e8d1a035a2
commit
f33bd4ca11
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ search-unclosed-quote = an opening double quote `"` was found, but there was no
|
|||
search-missing-key = a colon `:` was found, but there was no keyword preceding it. If you want to search for a literal `:`, prepend a backslash: `\:`.
|
||||
search-unknown-escape = the escape sequence `{ $val }` is not defined. If you want to search for a literal backslash `\`, prepend another one: `\\`.
|
||||
search-invalid-argument = `{ $term }` was given an invalid argument '`{ $argument }`'.
|
||||
search-invalid-flag = `flag:` must be followed by a valid flag number: `1` (red), `2` (orange), `3` (green), `4` (blue), `5` (pink), `6` (turquoise), `7` (purple) or `0` (no flag).
|
||||
search-invalid-flag-2 = `flag:` must be followed by a valid flag number: `1` (red), `2` (orange), `3` (green), `4` (blue), `5` (pink), `6` (turquoise), `7` (purple) or `0` (no flag).
|
||||
search-invalid-prop-operator = `prop:{ $val }` must be followed by one of the following comparison operators: `=`, `!=`, `<`, `>`, `<=` or `>=`.
|
||||
search-invalid-other = please check for typing mistakes.
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ impl SearchErrorKind {
|
|||
tr.search_invalid_argument("is:", state.replace('`', "'"))
|
||||
}
|
||||
|
||||
SearchErrorKind::InvalidFlag => tr.search_invalid_flag(),
|
||||
SearchErrorKind::InvalidFlag => tr.search_invalid_flag_2(),
|
||||
SearchErrorKind::InvalidPropProperty(prop) => {
|
||||
tr.search_invalid_argument("prop:", prop.replace('`', "'"))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue