搜尋

Searching for strings

使用布爾操作,括號或字段特定查找的高級查詢可用於查找所需的字串。

當沒有定義任何欄位時,查找發生在來源、翻譯和上下文字串。

../_images/search.webp

欄位

source:TEXT

Source string case-insensitive search.

target:TEXT

Target string case-insensitive search.

context:TEXT

Context string case-insensitive search.

key:TEXT

Key string case-insensitive search.

note:TEXT

Source string description case-insensitive search.

location:TEXT

Location string case-insensitive search.

priority:NUMBER

String priority.

id:NUMBER

String unique identifier.

position:NUMBER

String position in the translation file.

added:DATETIME

將字串新增到Webleate時的時間戳。

state:TEXT

Search for string states (approved, translated, needs-editing, empty, read-only).

This field also supports Field operators, so searching for completed strings can be performed as state:>=translated, searching for strings needing translation as state:<translated.

source_state:TEXT

Search for source string states, see above for more info.

pending:BOOLEAN

掛在彎曲以沖洗到VCS。

has:TEXT

Search for string having attributes - plural, context, suggestion, comment, check, dismissed-check, translation, variant, screenshot, flags, explanation, glossary, note, label.

is:TEXT

Filters string on a condition:

read-only or readonly

Read-only strings, same as state:read-only.

approved

Approved strings, same as state:approved.

needs-editing or fuzzy

Needing editing strings, same as state:needs-editing.

translated

Translated strings, same as state:>translated.

untranslated

Untranslated strings, same as state:<translated.

pending

Pending strings not yet committed to the file (see 簡易送交).

language:TEXT

String target language.

component:TEXT

Component slug or name case-insensitive search, see 組件標識串 and 組件名稱.

project:TEXT

Project slug, see URL slug.

path:TEXT

Path to the object to limit searching inside component, category, project, or translation.

changed_by:TEXT

作者使用給定使用者名更改字串。

changed:DATETIME

String content was changed on date, supports Field operators.

change_time:DATETIME

String was changed on date, supports Field operators, unlike changed this includes event which don't change content and you can apply custom action filtering using change_action.

change_action:TEXT

Filters on change action, useful together with change_time. Accepts English name of the change action, either quoted and with spaces or lowercase and spaces replaced by a hyphen. See Searching for changes for examples.

source_changed:DATETIME

Source string was changed on date, supports Field operators.

check:TEXT

String has failing check, see 檢查和修復 for check identifiers.

dismissed_check:TEXT

String has dismissed check, see 檢查和修復 for check identifiers.

comment:TEXT

Search in user comments.

resolved_comment:TEXT

Search in resolved comments.

comment_author:TEXT

Filter by comment author.

suggestion:TEXT

Search in suggestions.

suggestion_author:TEXT

Filter by suggestion author.

explanation:TEXT

在解釋中搜尋。

label:TEXT

Search in labels.

screenshot:TEXT

Search in screenshots.

Boolean operators

You can combine lookups using AND, OR, NOT and parentheses to form complex queries.

The NOT operator has higher precedence than the AND operator; the AND operator has higher precedence than the OR operator. You can add parenthesis to define a precedence of your own.

Omitting the operator will make the query behave like the AND operator was used.

Equivalent expressions

(state:translated AND source:hello) OR source:bar

Parenthesized expression to clearly show the precedence.

state:translated AND source:hello OR source:bar

The AND operator has higher precedence than the OR operator.

state:translated source:hello OR source:bar

Query using an implicit AND operator.

Field operators

您可以為日期或數字搜尋指定運算符,範圍或部分查找:

state:>=translated

國家是“翻譯”或更好的(“批准”(“批准”)。

changed:2019

Changed in year 2019.

changed:[2019-03-01 to 2019-04-01]

在兩個給定的日期之間發生了變化。

position:[10 to 100]

Strings with position between 10 and 100 (inclusive).

Exact operators

您可以使用``=``運算符在不同的字串字段上進行完全匹配查詢。例如,搜尋完全匹配的源字串匹配“您好世界”,使用:“來源:=”Hello World“。用於搜尋單詞表達式,您可以跳過引號。例如,搜尋匹配``hello``的所有源字串:``source:= hello

Searching for changes

在 4.4 版被加入.

搜尋歷史事件可以使用“Change_Action”和“Change_Time`”操作員完成。

例如,可以將標記為2018年編輯的字串輸入為 change_time:2018 AND change_action:marked-for-editchange_time:2018 AND change_action:"Marked for edit"

常規表達式

任何已接受的內文,您也可以指定使用常規表示法如 r"regexp"

例如,要搜尋包含 2 和 5 之間的任何數字的所有來源字串,請使用 source:r"[2-5]"

提示

The regular expressions are evaluated by the database backend and might use different extensions, please consult the database documentation below for more details.

Predefined queries

您可以在搜尋頁面上選擇預定義查詢,這允許您快速存取最常見的搜尋:

../_images/query-dropdown.webp

Ordering the results

根據您的需要,有許多選擇字串:

../_images/query-sort.webp

Searching for users

在 4.18 版被加入.

The user browsing has similar search abilities:

username:TEXT

Search in usernames.

full_name:TEXT

Search in full names.

language:TEXT

User configured translation language (see 想翻譯成哪些語言).

joined:DATETIME

String content was changed on date, supports Field operators.

translates:TEXT

User has contributed to a given language.

You might want to limit contribution time by change_time, for example change_time:>"90 days ago".

contributes:TEXT

User has contributed to a given project or component.

You might want to limit contribution time by change_time, for example change_time:>"90 days ago".

change_time:DATETIME

Same as in Searching for strings.

change_action:TEXT

Same as in Searching for strings.

Additional lookups are available in the 管理介面:

is:bot

Search for bots (used for project scoped tokens).

is:active

Search for active users.

email:TEXT

Search by e-mail.

Fuzzy values for DATETIME fields

Instead of using DATETIME values like MM-DD-YYYY, a string containing adverb of time like yesterday, last month, and 2 days ago can be used as values in the DATETIME fields.

範例:

changed:>="2 weeks ago"

Returns strings that are changed 2 weeks ago from the current date and time.

changed:>=yesterday

Returns strings that are changed starting yesterday.