Ciągi PHP

PHP translations are usually monolingual, so it is recommended to specify a base file with (what is most often the) English strings.

Weblate currently supports several variants of PHP translations:

Przykładowy plik:

<?php
$LANG['foo'] = 'bar';
$LANG['foo1'] = 'foo bar';
$LANG['foo2'] = 'foo bar baz';
$LANG['foo3'] = 'foo bar baz bag';
Supported features

File extensions

.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

Konfiguracja Weblate

Typowy Weblate Konfiguracja komponentu

Maska pliku

lang/*/texts.php

Jednojęzyczny bazowy plik języka

lang/en/texts.php

Szablon dla nowych tłumaczeń

lang/en/texts.php

Format pliku

Ciągi PHP