搜尋¶
搜尋字串¶
Advanced queries using boolean operations, parentheses, or field specific lookup can be used to find the strings you want.
當沒有定義任何欄位時,尋找發生在來源、翻譯和上下文字串。
簡易搜尋¶
Any phrase typed into the search box is split into words. Strings containing all
of them are shown. To look for an exact phrase, put "the searchphrase" into
quotes (both single (') and double (") quotes will work): "this is a quoted
string" or 'another quoted string'.
欄位¶
source:TEXTSource string case-insensitive search.
target:TEXTTarget string case-insensitive search.
context:TEXTContext string case-insensitive search.
key:TEXTKey string case-insensitive search.
note:TEXTSource string description case-insensitive search.
location:TEXTLocation string case-insensitive search.
priority:NUMBERString priority.
id:NUMBER字串唯一識別碼。
position:NUMBERString position in the translation file.
added:DATETIME將字串新增到Weblate時的時間戳。
state:TEXTSearch for string states (
approved,translated,needs-editing,needs-rewriting,needs-checking,empty,read-only).This field also supports 欄位運算子, so searching for completed strings can be performed as
state:>=translated, searching for strings needing translation asstate:<translated.source_state:TEXTSearch for source string states, see above for more info.
pending:BOOLEAN掛在彎曲以沖洗到VCS。
has:TEXTSearch for string having attributes -
plural,context,suggestion,comment,check,dismissed-check,translation,variant,screenshot,flags,explanation,glossary,note,label,location.is:TEXTFilters string on a condition:
read-only或readonlyRead-only strings, same as
state:read-only.approvedApproved strings, same as
state:approved.needs-editing或fuzzyNeeding editing/checking/rewriting strings, same as
state:needs-editing OR state:needs-rewriting OR state:needs-checking.translatedTranslated strings, same as
state:>translated.untranslatedUntranslated strings, same as
state:<translated.pendingPending strings not yet committed to the file (see 惰性提交).
automatically-translated自動翻譯的字串(請參閱 自動翻譯)。
language:TEXT字串目標語言。
component:TEXTComponent slug or name case-insensitive search, see 組件標識串 and 組件名稱.
project:TEXTProject slug, see URL slug.
path:TEXTPath to the object to limit searching inside component, category, project, or translation.
changed_by:TEXTString was changed by author with given username. Use
changed_by:""to search for strings with at least one content change without a recorded author.changed:DATETIMEString content was changed on date, supports 欄位運算子 and Searching for DATETIME fields.
change_time:DATETIMEString was changed on date, supports 欄位運算子 and Searching for DATETIME fields.
Unlike
changedthis includes event which don't change content and you can apply custom action filtering usingchange_action.change_action:TEXTFilters 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.When combining
changed_by,changed,change_time, andchange_actionfilters, the filters apply to the same change event.source_changed:DATETIMESource string was last changed on date, supports 欄位運算子 and Searching for DATETIME fields.
last_changed:DATETIMEThe string was last changed on date, supports 欄位運算子 and Searching for DATETIME fields.
check:TEXTString has failing check, see 檢查與修復 for check identifiers.
dismissed_check:TEXTString has dismissed check, see 檢查與修復 for check identifiers.
comment:TEXTSearch in user comments.
resolved_comment:TEXTSearch in resolved comments.
comment_author:TEXTFilter by comment author.
suggestion:TEXTSearch in suggestions.
suggestion_author:TEXTFilter by suggestion author.
explanation:TEXTSearch in explanations.
label:TEXTSearch in labels.
screenshot:TEXTSearch in screenshots.
labels_count:NUMBERFilter by count of labels
布林運算子¶
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.
|
Parenthesized expression to clearly show the precedence. |
|
The |
|
Query using an implicit |
欄位運算子¶
您可以為日期或數字搜尋指定運算子,範圍或部分尋找:
state:>=translatedState is
translatedor better (approved).changed:[2019-03-01 to 2019-04-01]Changed between two given dates (inclusive).
position:[10 to 100]Strings with position between 10 and 100 (inclusive).
Searching for DATETIME fields¶
時間戳搜尋支援多種方式來指定數值,也支援各種不同的日期與時間格式。
ISO 8601 formatted like
2025-09-08T12:16:55.336146+00:00.English written date and time like
July 4, 2013 PST.English adverbs of time like
yesterday,last month, and2 days ago.
Whenever only the date is specified, it is always used as inclusive and covers that date. Specify the exact timestamp if you need to override this behavior.
範例:
changed:>=2019-03-01Changed on 1st March 2019 and later (inclusive).
changed:>="2 weeks ago"Changed 2 weeks ago from the current date and time.
changed:>=yesterdayChanged starting yesterday.
changed:2019Changed in the year 2019.
changed:[2019-03-01 to 2019-04-01]Changed between two given dates (inclusive).
changed:[20_days_ago to yesterday]Changed between two relative dates (inclusive).
Exact operators¶
You can do an exact match query on different string fields using = operator. For example, to
search for all source strings exactly matching hello world, use: source:="hello world".
For searching single word expressions, you can skip quotes. For example, to search for all source strings
matching hello, you can use: source:=hello.
Searching for changes¶
在 4.4 版被加入.
Searching for history events can be done using change_action and
change_time operators.
例如,可以將標記為2018年編輯的字串輸入為 change_time:2018 AND change_action:marked-for-edit 或 change_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 for more details:
Predefined queries¶
您可以在搜尋頁面上選擇預定義查詢,這允許您快速存取最常見的搜尋:
Ordering the results¶
根據您的需要,有許多選擇字串:
Searching for screenshots¶
The screenshot listing in a component accepts advanced queries using boolean operations, parentheses, or field specific lookup.
When no field is defined, the lookup happens on the screenshot name, repository path, screenshot language, assigned source string, assigned context, and assigned location.
Screenshot fields¶
name:TEXTScreenshot name case-insensitive search.
path:TEXTRepository path to screenshot case-insensitive search.
repository:TEXTRepository path to screenshot case-insensitive search, same as
path:TEXT.language:TEXTScreenshot language code or language name case-insensitive search.
string:TEXTAssigned source string case-insensitive search.
context:TEXTAssigned source string context case-insensitive search.
location:TEXTAssigned source string location case-insensitive search.
id:NUMBERScreenshot unique identifier.
timestamp:DATETIMETimestamp for when the screenshot was added to Weblate.
strings:NUMBERNumber of assigned source strings.
has:TEXTSearch for screenshots having attributes:
stringScreenshot assigned to at least one source string.
repositoryScreenshot with a repository path.
pathScreenshot with a repository path, same as
repository.
Screenshot search examples¶
loginSearch for screenshots matching
loginin any default screenshot field.name:loginSearch for screenshots with
loginin the screenshot name.language:csSearch for screenshots in languages matching
cs.string:"Save changes"Search for screenshots assigned to source strings matching
Save changes.has:stringSearch for screenshots assigned to at least one source string.
NOT has:stringSearch for screenshots not assigned to any source string.
repository:fastlaneSearch for screenshots with
fastlanein the repository path.strings:>2Search for screenshots assigned to more than two source strings.
has:repository AND NOT has:stringSearch for screenshots imported from the repository that still need source string assignment.
Screenshot search supports the same 布林運算子, 欄位運算子, Searching for DATETIME fields, exact match, and regular expression syntax as string search.
Searching for users¶
在 4.18 版被加入.
The user browsing has similar search abilities:
username:TEXTSearch in usernames.
full_name:TEXTSearch in full names.
language:TEXTUser configured translation language (see 想翻譯成哪些語言).
joined:DATETIMEString content was changed on date, supports 欄位運算子.
translates:TEXTUser has contributed to a given language.
You might want to limit contribution time by
change_time, for examplechange_time:>"90 days ago".contributes:TEXTUser has contributed to a given project or component.
You might want to limit contribution time by
change_time, for examplechange_time:>"90 days ago".change_time:DATETIMESame as in 搜尋字串.
change_action:TEXTSame as in 搜尋字串.
Additional lookups are available in the 管理介面:
is:botSearch for bots (used for project scoped tokens).
is:activeSearch for active users.
email:TEXT以電子郵件搜尋。
ip:TEXTSearch by audit log IP address.