資料架構

Weblate 使用 JSON Schema 來定義外部 JSON 檔案的組態。

Weblate 翻譯記憶結構

https://weblate.org/schemas/weblate-memory.schema.json

類型

陣列

項目

The Translation Memory Item

類型

物件

屬性

  • category

The String Category

1 是全局的,2 是共享的,10000000+ 是項目特定的,20000000+ 使使用者特定的

類型

整數

例子

1

最小

0

預設

1

  • 來源

字串源頭

Filename or component name

類型

字串

例子

test.tmx

專案/組件

預設

  • 來源

The Source String

類型

字串

例子

你好

minLength

1

預設

  • source_language

來源語言

ISO 639-1 / ISO 639-2 / IETF BCP 47

類型

字串

例子

en

模樣

^[^ ]+$

預設

  • 目標

目標字串

類型

字串

例子

Ahoj

minLength

1

預設

  • target_language

目標語言

ISO 639-1 / ISO 639-2 / IETF BCP 47

類型

字串

例子

cs

模樣

^[^ ]+$

預設

additionalProperties

False

定義

Weblate 使用者資料匯出

https://weblate.org/schemas/weblate-userdata.schema.json

類型

物件

屬性

  • 基本

基本

類型

物件

屬性

  • username

使用者名稱

類型

字串

例子

管理

預設

  • full_name

Full name

類型

字串

例子

Weblate 管理

預設

  • 電子郵件

電子郵件

類型

字串

例子

noreply@example.com

預設

格式

電子信箱

  • date_joined

Date joined

類型

字串

例子

2019-11-18T18:53:54.862Z

預設

格式

日期時間

additionalProperties

False

  • 個人檔案

個人檔案

類型

物件

屬性

  • language

語言

類型

字串

例子

cs

模樣

^[^ ]*$

預設

  • suggested

Number of suggested strings

類型

整數

例子

1

預設

0

  • translated

Number of translated strings

類型

整數

例子

24

預設

0

  • uploaded

Number of uploaded screenshots

類型

整數

例子

1

預設

0

  • hide_completed

於儀錶板中隱藏已完成的翻譯

類型

布林值

例子

False

預設

True

  • secondary_in_zen

在禪譯模式中顯示第二語言翻譯

類型

布林值

例子

True

預設

True

  • hide_source_secondary

Hide source if a secondary translation exists

類型

布林值

例子

False

預設

True

  • editor_link

Editor link

類型

字串

例子

模樣

^.*$

預設

  • translate_mode

翻譯編輯器模式

類型

整數

例子

0

預設

0

  • zen_mode

禪譯編輯模式

類型

整數

例子

0

預設

0

  • special_chars

Special characters

類型

字串

例子

模樣

^.*$

預設

  • theme

Theme

類型

字串

例子

auto

模樣

^(auto|dark|light)$

預設

auto

  • 儀錶板_檢視

預設儀錶板檢視

類型

整數

例子

1

預設

0

  • dashboard_component_list

預設組件列表

預設

null

anyOf

類型

null

類型

整數

  • 語言

Translated languages

類型

陣列

預設

項目

Language code

類型

字串

例子

cs

模樣

^.*$

預設

  • secondary_languages

Secondary languages

類型

陣列

預設

項目

Language code

類型

字串

例子

sk

模樣

^.*$

預設

  • 已關注

Watched projects

類型

陣列

預設

項目

Project slug

類型

字串

例子

weblate

模樣

^.*$

預設

additionalProperties

False

  • 稽核日誌

稽核日誌

類型

陣列

預設

項目

Items

類型

物件

屬性

  • address

IP address

anyOf

類型

null

類型

字串

例子

127.0.0.1

模樣

^.*$

預設

  • user_agent

User agent

類型

字串

例子

PC / Linux / Firefox 70.0

模樣

^.*$

預設

  • 時間標記

時間戳記

類型

字串

例子

2019-11-18T18:58:30.845Z

預設

格式

日期時間

  • activity

Activity

類型

字串

例子

login

模樣

^.*$

預設

additionalProperties

False

定義

Weblate Messaging

https://weblate.org/schemas/weblate-messaging.schema.json

Schema for Weblate Fedora Messaging

類型

物件

屬性

  • change_id

Change ID

Numerical ID of change

類型

整數

  • action

Change Action

Verbose name of the change, see Change actions source code for possible values

類型

字串

  • 時間標記

時間戳記

ISO formatted timestamp

類型

字串

格式

日期時間

  • target

Target

New value of the change (eg. new translation of the string)

類型

string / array

  • old

Old Value

Old value of the change (eg. previous translation of the string)

類型

string / array

  • 原文

Source

來源字串

類型

string / array

  • url

URL

Absolute URL to view the related object

類型

字串

  • author

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

定義