TOML

Afegit a la versió 5.15.

TOML és un format genèric com Fitxers YAML o Fitxers JSON i es pot utilitzar per localitzar aplicacions.

Weblate supports TOML in several variants:

TOML file

Fitxer TOML senzill sense suport per a plurals.

go-i18n TOML file

variant go-i18n amb suport de plurals.

Fitxer d’exemple:

hello = "Ahoj světe!\n"
orangutan = "Orangutan má %d banán.\n"
thanks = "Děkujeme za použití Weblate."
try = "Zkus Weblate na <https://demo.weblate.org/>!\n"
[hello]
other = "Ahoj světe!\n"

[orangutan]
one = "Orangutan má %d banán.\n"
other = "Orangutan má %d banány.\n"

[thanks]
other = "Děkujeme za použití Weblate."

[try]
other = "Zkus Weblate na <https://demo.weblate.org/>!\n"
Supported features

File extensions

.toml

Lingualitat ⓘ

Monolingual

Supports plural ⓘ

No

Supports descriptions ⓘ

No

Admet l’explicació ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API identifier

toml

Admet cadenes de només lectura ⓘ

No

Supports removing obsolete strings ⓘ

No

Configuració del Weblate

Placa web típica Configuració dels components

Filtre de fitxers

langs/*.toml

Fitxer de llengua base monolingüe

langs/en.toml

Plantilla per a traduccions noves

«Buit».

Format de fitxer

TOML file