Laravel PHP 文字列

バージョン 4.1 で変更.

Laravel PHP の現地語化ファイルは、複数形にも対応しています。記述例:

バージョン 5.15 で変更: 翻訳キーには PHP の構造が含まれなくなり、実際のキーのみが含まれるようになりました。

<?php
return [
    'welcome' => 'Welcome to our application',
    'apples' => 'There is one apple|There are many apples',
];
対応機能

File extensions

.php

Linguality

Monolingual

Supports plural

Yes

Supports descriptions

Yes

Supports explanation

No

Supports context

No

Supports location

No

Supports flags

No

API identifier

laravel

Supports read-only strings

No

Check flags added by this format

Laravel 形式

Weblate の設定

典型的な Weblate コンポーネント構成

ファイル マスク

lang/*/texts.php

モノリンガル用の、基礎となる言語ファイル

lang/en/texts.php

新しい翻訳のテンプレート

lang/en/texts.php

ファイル形式

Laravel PHP 文字列