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:

Example file:

<?php
$LANG['foo'] = 'bar';
$LANG['foo1'] = 'foo bar';
$LANG['foo2'] = 'foo bar baz';
$LANG['foo3'] = 'foo bar baz bag';
Funzionalità supportate

Estensioni dei file

.php

Linguality ⓘ

Monolingual

Supports plural ⓘ

No

Supports descriptions ⓘ

Yes

Supports explanation ⓘ

No

Supports context ⓘ

No

Supports location ⓘ

No

Supports flags ⓘ

No

API identifier

php

Supports read-only strings ⓘ

No

Supports removing obsolete strings ⓘ

No

Configurazione Weblate

Typical Weblate Component configuration

Maschera del file

lang/*/texts.php

File di lingua a base monolingue

lang/en/texts.php

Modello per le nuove traduzioni

lang/en/texts.php

Formato file

PHP strings