<a id="php"></a>

# PHP 文字列

<a id="index-0"></a>

通常、PHP の翻訳はモノリンガルなので、（最も一般的な）英語の文字列で、基礎となる翻訳ファイルを設定してください。

現在 Weblate が対応している PHP 翻訳ファイル:

* さまざまな構文のモノリンガル PHP 文字列
* [Laravel PHP 文字列](https://docs.weblate.org/ja/latest/formats/laravel.md#laravel-php)

ファイルの例:

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

<!-- AUTOGENERATED START: format-features php -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### 対応機能

| File extensions                                                                                      | `.php`      |
|------------------------------------------------------------------------------------------------------|-------------|
| Linguality [ⓘ](https://docs.weblate.org/ja/latest/formats.md#bimono)                                   | Monolingual |
| Supports plural [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-plurals)                      | `No`        |
| Supports descriptions [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-description)            | `Yes`       |
| Supports explanation [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-explanation)             | `No`        |
| Supports context [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-context)                     | `No`        |
| Supports location [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-location)                   | `No`        |
| Supports flags [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-flags)                         | `No`        |
| API identifier                                                                                       | `php`       |
| Supports read-only strings [ⓘ](https://docs.weblate.org/ja/latest/formats.md#read-only-strings)        | `No`        |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/ja/latest/formats.md#obsolete-strings) | `No`        |
<!-- AUTOGENERATED END: format-features php -->

## Weblate の設定

|                      | 典型的な Weblate [コンポーネント構成](https://docs.weblate.org/ja/latest/admin/projects.md#component)   |
|----------------------|-----------------------------------------------------------------------------------|
| ファイル マスク             | `lang/*/texts.php`                                                                |
| モノリンガル用の、基礎となる言語ファイル | `lang/en/texts.php`                                                               |
| 新しい翻訳のテンプレート         | `lang/en/texts.php`                                                               |
| ファイル形式               | PHP 文字列                                                                           |
