Veri şemaları¶
Weblate, dış JSON dosyalarının yerleşimini tanımlamak için JSON şeması kullanır.
Weblate Translation Memory Schema¶
type |
array |
||
items |
The Translation Memory Item |
||
type |
object |
||
properties |
|||
|
The String Category |
||
1 is global, 2 is shared, 10000000+ are project specific, 20000000+ are user specific |
|||
type |
integer |
||
examples |
1 |
||
minimum |
0 |
||
default |
1 |
||
|
The String Origin |
||
Filename or component name |
|||
type |
string |
||
examples |
test.tmx |
||
project/component |
|||
default |
|||
|
The Source String |
||
type |
string |
||
examples |
Hello |
||
minLength |
1 |
||
default |
|||
|
The Source Language |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
type |
string |
||
examples |
en |
||
pattern |
^[^ ]+$ |
||
default |
|||
|
The Target String |
||
type |
string |
||
examples |
Ahoj |
||
minLength |
1 |
||
default |
|||
|
The Target Language |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
type |
string |
||
examples |
cs |
||
pattern |
^[^ ]+$ |
||
default |
|||
additionalProperties |
False |
||
definitions |
Ayrıca bakınız
Weblate user data export¶
type |
object |
||||
properties |
|||||
|
Basic |
||||
type |
object |
||||
properties |
|||||
|
Username |
||||
type |
string |
||||
examples |
admin |
||||
default |
|||||
|
Full name |
||||
type |
string |
||||
examples |
Weblate Admin |
||||
default |
|||||
|
|||||
type |
string |
||||
examples |
|||||
default |
|||||
format |
|||||
|
Date joined |
||||
type |
string |
||||
examples |
2019-11-18T18:53:54.862Z |
||||
default |
|||||
format |
date-time |
||||
additionalProperties |
False |
||||
|
Profile |
||||
type |
object |
||||
properties |
|||||
|
Language |
||||
type |
string |
||||
examples |
cs |
||||
pattern |
^[^ ]*$ |
||||
default |
|||||
|
Number of suggested strings |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Number of translated strings |
||||
type |
integer |
||||
examples |
24 |
||||
default |
0 |
||||
|
Number of uploaded screenshots |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Hide completed translations on the dashboard |
||||
type |
boolean |
||||
examples |
False |
||||
default |
True |
||||
|
Show secondary translations in the Zen mode |
||||
type |
boolean |
||||
examples |
True |
||||
default |
True |
||||
|
Hide source if a secondary translation exists |
||||
type |
boolean |
||||
examples |
False |
||||
default |
True |
||||
|
Editor link |
||||
type |
string |
||||
examples |
|||||
pattern |
^.*$ |
||||
default |
|||||
|
Translation editor mode |
||||
type |
integer |
||||
examples |
0 |
||||
default |
0 |
||||
|
Zen editor mode |
||||
type |
integer |
||||
examples |
0 |
||||
default |
0 |
||||
|
Special characters |
||||
type |
string |
||||
examples |
|||||
pattern |
^.*$ |
||||
default |
|||||
|
Theme |
||||
type |
string |
||||
examples |
auto |
||||
pattern |
^(auto|dark|light)$ |
||||
default |
auto |
||||
|
Default dashboard view |
||||
type |
integer |
||||
examples |
1 |
||||
default |
0 |
||||
|
Default component list |
||||
default |
null |
||||
anyOf |
type |
null |
|||
type |
integer |
||||
|
Translated languages |
||||
type |
array |
||||
default |
|||||
items |
Language code |
||||
type |
string |
||||
examples |
cs |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Secondary languages |
||||
type |
array |
||||
default |
|||||
items |
Language code |
||||
type |
string |
||||
examples |
sk |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Watched projects |
||||
type |
array |
||||
default |
|||||
items |
Project slug |
||||
type |
string |
||||
examples |
weblate |
||||
pattern |
^.*$ |
||||
default |
|||||
additionalProperties |
False |
||||
|
Audit log |
||||
type |
array |
||||
default |
|||||
items |
Items |
||||
type |
object |
||||
properties |
|||||
|
IP address |
||||
anyOf |
type |
null |
|||
type |
string |
||||
examples |
127.0.0.1 |
||||
pattern |
^.*$ |
||||
default |
|||||
|
User agent |
||||
type |
string |
||||
examples |
PC / Linux / Firefox 70.0 |
||||
pattern |
^.*$ |
||||
default |
|||||
|
Timestamp |
||||
type |
string |
||||
examples |
2019-11-18T18:58:30.845Z |
||||
default |
|||||
format |
date-time |
||||
|
Activity |
||||
type |
string |
||||
examples |
login |
||||
pattern |
^.*$ |
||||
default |
|||||
additionalProperties |
False |
||||
definitions |
Ayrıca bakınız
Weblate Messaging¶
Schema for Weblate Messaging |
|||
type |
object |
||
properties |
|||
|
Change ID |
||
Numerical ID of change |
|||
type |
integer |
||
|
Change Action |
||
Verbose name of the change, see Change actions source code for possible values |
|||
type |
string |
||
|
Timestamp |
||
ISO formatted timestamp |
|||
type |
string |
||
format |
date-time |
||
|
Target |
||
New value of the change (eg. new translation of the string) |
|||
type |
string / array |
||
|
Old Value |
||
Old value of the change (eg. previous translation of the string) |
|||
type |
string / array |
||
|
Source |
||
Source string |
|||
type |
string / array |
||
|
URL |
||
Absolute URL to view the related object |
|||
type |
string |
||
|
Author |
||
Author username (this can be different from user for example when accepting suggestions) |
|||
type |
string |
||
|
Acting username |
||
type |
string |
||
|
Project slug |
||
type |
string |
||
|
Component slug |
||
type |
string |
||
|
Translation Language Code |
||
type |
string |
||
|
Category and subcategory slugs |
||
type |
array |
||
items |
Category slug |
||
type |
string |
||
additionalProperties |
False |
||
definitions |
Ayrıca bakınız