search-invalid-flag -> search-invalid-flag-2

This commit is contained in:
RumovZ 2021-06-02 08:53:23 +02:00
parent e8d1a035a2
commit f33bd4ca11
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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('`', "'"))
}