diff --git a/ftl/core/search.ftl b/ftl/core/search.ftl index f18fa73c3..2754970e5 100644 --- a/ftl/core/search.ftl +++ b/ftl/core/search.ftl @@ -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. diff --git a/rslib/src/error/search.rs b/rslib/src/error/search.rs index 9fb168fe6..11a670976 100644 --- a/rslib/src/error/search.rs +++ b/rslib/src/error/search.rs @@ -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('`', "'")) }