PHP 字串

PHP翻譯通常只包含一種語言,因此建議指定(最常見的)帶英語字串的模板文件。

Weblate currently supports several variants of PHP translations:

範例檔案:

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

Weblate 設定組態

典型的 Weblate 組件組態

檔案遮罩

lang/*/texts.php

單語的基底語言檔

lang/en/texts.php

新翻譯的模板

lang/en/texts.php

檔案格式

PHP strings