Chaînes de caractères 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:

Example file:

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

Configuration Weblate

Configuration des composants typique de Weblate

Masque de fichier

lang/*/texts.php

Fichier de langue de base mono-langue

lang/en/texts.php

Modèle pour les nouvelles traductions

lang/en/texts.php

Format de fichier

PHP strings