Retrieve translation strings based on specified query tags.
To filter strings, use a combination of tags with the following syntax:
- Use an ampersand ('&') to signify 'AND' functionality, indicating that all specified
tags must be present.
- Use a pipe ('|') to signify 'OR' functionality, meaning that at least one of
the specified tags must be present.
- Use parentheses '(' to ')' to define the order of statement execution.
- To use the above special characters as part of the query content, escape them with a
backslash ('\')
When combining AND and OR conditions, the query is evaluated from left to right, following operator precedence and respecting existing parentheses. Specifically, the AND operator (&) takes precedence over the OR operator (|).
For example, consider the query:
'tag1&(tag2|tag3)'
This query is interpreted as follows:
tag1 AND (tag2 OR tag3), and it returns strings that have both "tag1" and either "tag2" or "tag3"
Similarly, for the query:
'tag1&tag2|tag3'
This query is read as follows:
(tag1 AND tag2) OR tag3, and it returns strings that have both "tag1" and "tag2" or have "tag3"