PHP 字串

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

Weblate 目前支援 PHP 翻譯的幾個變體:

範例檔案:

<?php
$LANG['foo'] = 'bar';
$LANG['foo1'] = 'foo bar';
$LANG['foo2'] = 'foo bar baz';
$LANG['foo3'] = 'foo bar baz bag';
支援的功能

副檔名

.php

語言能力

單語言

支援複數

No

支援描述

Yes

支援解釋

No

Supports context

No

支援位置

No

支援旗標

No

API 識別碼

php

支援唯讀字串

No

Supports removing obsolete strings

No

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

lang/*/texts.php

單語言基底語言檔案

lang/en/texts.php

新翻譯的範本

lang/en/texts.php

檔案格式

PHP 字串