Cadenas de 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:

Archivo de ejemplo:

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

Configuración de Weblate

Typical Weblate Configuración de componentes

Máscara de archivos

lang/*/texts.php

Archivo de base monolingüe

lang/en/texts.php

Plantilla para traducciones nuevas

lang/en/texts.php

Formato de archivo

Cadenas de PHP