PHP 字串¶
PHP翻譯通常只包含一種語言,因此建議指定(最常見的)帶英語字串的範本文件。
Weblate 目前支援 PHP 翻譯的幾個變體:
Monolingual PHP strings in various syntax
範例檔案:
<?php
$LANG['foo'] = 'bar';
$LANG['foo1'] = 'foo bar';
$LANG['foo2'] = 'foo bar baz';
$LANG['foo3'] = 'foo bar baz bag';
檔案擴充 |
|
|---|---|
Linguality ⓘ |
單語言 |
Supports plural ⓘ |
|
支援描述 ⓘ |
|
支援解釋 ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
API 識別碼 |
|
Supports read-only strings ⓘ |
|
Weblate 配置¶
典型的 Weblate 組件配置 |
|
|---|---|
檔案遮罩 |
|
單語的基底語言檔 |
|
新翻譯的範本 |
|
檔案格式 |
PHP strings |