資料架構¶
Weblate 使用 JSON Schema 來定義外部 JSON 檔案的組態。
Weblate 翻譯記憶結構¶
類型 |
陣列 |
||
項目 |
The Translation Memory Item |
||
類型 |
物件 |
||
屬性 |
|||
|
The String Category |
||
1 是全局的,2 是共享的,10000000+ 是項目特定的,20000000+ 使使用者特定的 |
|||
類型 |
整數 |
||
例子 |
1 |
||
最小 |
0 |
||
預設 |
1 |
||
|
字串源頭 |
||
Filename or component name |
|||
類型 |
字串 |
||
例子 |
test.tmx |
||
專案/組件 |
|||
預設 |
|||
|
The Source String |
||
類型 |
字串 |
||
例子 |
你好 |
||
minLength |
1 |
||
預設 |
|||
|
來源語言 |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
類型 |
字串 |
||
例子 |
en |
||
模樣 |
^[^ ]+$ |
||
預設 |
|||
|
目標字串 |
||
類型 |
字串 |
||
例子 |
Ahoj |
||
minLength |
1 |
||
預設 |
|||
|
目標語言 |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
類型 |
字串 |
||
例子 |
cs |
||
模樣 |
^[^ ]+$ |
||
預設 |
|||
additionalProperties |
False |
||
定義 |
也參考
Weblate 使用者資料匯出¶
類型 |
物件 |
||||
屬性 |
|||||
|
基本 |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
使用者名稱 |
||||
類型 |
字串 |
||||
例子 |
管理 |
||||
預設 |
|||||
|
Full name |
||||
類型 |
字串 |
||||
例子 |
Weblate 管理 |
||||
預設 |
|||||
|
電子郵件 |
||||
類型 |
字串 |
||||
例子 |
|||||
預設 |
|||||
格式 |
電子信箱 |
||||
|
Date joined |
||||
類型 |
字串 |
||||
例子 |
2019-11-18T18:53:54.862Z |
||||
預設 |
|||||
格式 |
日期時間 |
||||
additionalProperties |
False |
||||
|
個人檔案 |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
語言 |
||||
類型 |
字串 |
||||
例子 |
cs |
||||
模樣 |
^[^ ]*$ |
||||
預設 |
|||||
|
Number of suggested strings |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
Number of translated strings |
||||
類型 |
整數 |
||||
例子 |
24 |
||||
預設 |
0 |
||||
|
Number of uploaded screenshots |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
於儀錶板中隱藏已完成的翻譯 |
||||
類型 |
布林值 |
||||
例子 |
False |
||||
預設 |
True |
||||
|
在禪譯模式中顯示第二語言翻譯 |
||||
類型 |
布林值 |
||||
例子 |
True |
||||
預設 |
True |
||||
|
Hide source if a secondary translation exists |
||||
類型 |
布林值 |
||||
例子 |
False |
||||
預設 |
True |
||||
|
Editor link |
||||
類型 |
字串 |
||||
例子 |
|||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
翻譯編輯器模式 |
||||
類型 |
整數 |
||||
例子 |
0 |
||||
預設 |
0 |
||||
|
禪譯編輯模式 |
||||
類型 |
整數 |
||||
例子 |
0 |
||||
預設 |
0 |
||||
|
Special characters |
||||
類型 |
字串 |
||||
例子 |
|||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
Theme |
||||
類型 |
字串 |
||||
例子 |
auto |
||||
模樣 |
^(auto|dark|light)$ |
||||
預設 |
auto |
||||
|
預設儀錶板檢視 |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
預設組件列表 |
||||
預設 |
null |
||||
anyOf |
類型 |
null |
|||
類型 |
整數 |
||||
|
Translated languages |
||||
類型 |
陣列 |
||||
預設 |
|||||
項目 |
Language code |
||||
類型 |
字串 |
||||
例子 |
cs |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
Secondary languages |
||||
類型 |
陣列 |
||||
預設 |
|||||
項目 |
Language code |
||||
類型 |
字串 |
||||
例子 |
sk |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
Watched projects |
||||
類型 |
陣列 |
||||
預設 |
|||||
項目 |
Project slug |
||||
類型 |
字串 |
||||
例子 |
weblate |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
additionalProperties |
False |
||||
|
稽核日誌 |
||||
類型 |
陣列 |
||||
預設 |
|||||
項目 |
Items |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
IP address |
||||
anyOf |
類型 |
null |
|||
類型 |
字串 |
||||
例子 |
127.0.0.1 |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
User agent |
||||
類型 |
字串 |
||||
例子 |
PC / Linux / Firefox 70.0 |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
|
時間戳記 |
||||
類型 |
字串 |
||||
例子 |
2019-11-18T18:58:30.845Z |
||||
預設 |
|||||
格式 |
日期時間 |
||||
|
Activity |
||||
類型 |
字串 |
||||
例子 |
login |
||||
模樣 |
^.*$ |
||||
預設 |
|||||
additionalProperties |
False |
||||
定義 |
也參考
Weblate Messaging¶
Schema for Weblate Fedora Messaging |
||
類型 |
物件 |
|
屬性 |
||
|
Change ID |
|
Numerical ID of change |
||
類型 |
整數 |
|
|
Change Action |
|
Verbose name of the change, see Change actions source code for possible values |
||
類型 |
字串 |
|
|
時間戳記 |
|
ISO formatted timestamp |
||
類型 |
字串 |
|
格式 |
日期時間 |
|
|
Target |
|
New value of the change (eg. new translation of the string) |
||
類型 |
string / array |
|
|
Old Value |
|
Old value of the change (eg. previous translation of the string) |
||
類型 |
string / array |
|
|
Source |
|
來源字串 |
||
類型 |
string / array |
|
|
URL |
|
Absolute URL to view the related object |
||
類型 |
字串 |
|
|
Author |
|
Author username (this can be different from user for example when accepting suggestions) |
||
類型 |
字串 |
|
|
Acting username |
|
類型 |
字串 |
|
|
Project slug |
|
類型 |
字串 |
|
|
Component slug |
|
類型 |
字串 |
|
|
Translation Language Code |
|
類型 |
字串 |
|
additionalProperties |
False |
|
定義 |