Stringhe PHP¶
PHP translations are usually monolingual, so it is recommended to specify a base file with (what is most often the) English strings.
Weblate attualmente supporta diverse varianti di traduzioni PHP:
Stringhe PHP monolingue in varie sintassi
Example file:
<?php
$LANG['foo'] = 'bar';
$LANG['foo1'] = 'foo bar';
$LANG['foo2'] = 'foo bar baz';
$LANG['foo3'] = 'foo bar baz bag';
Estensioni dei file |
|
|---|---|
Linguality ⓘ |
Monolingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Configurazione Weblate¶
Typical Weblate Component configuration |
|
|---|---|
Maschera del file |
|
File di lingua a base monolingue |
|
Modello per le nuove traduzioni |
|
Formato file |
PHP strings |