<a id="laravel"></a>

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

# Laravel PHP izrazi

#### Versionchanged
Promijenjeno u verziji 4.1.

The Laravel PHP localization files are supported as well with plurals:

#### Versionchanged
Promijenjeno u verziji 5.15: The translation keys no longer include PHP structure and only contain the actual key.

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

#### SEE ALSO
* [PHP](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/php.html)
* [Localization in Laravel](https://laravel.com/framework/docs/localization)

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

#### Podržane funkcije

| Datotečni sufiks                                                                                           | `.php`                                                                             |
|------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| Jezičnost [ⓘ](https://docs.weblate.org/hr/latest/formats.md#bimono)                                          | Jednojezične                                                                       |
| Podržava množinu [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-plurals)                           | `Yes`                                                                              |
| Podržava opise [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-description)                         | `Yes`                                                                              |
| Podržava objašnjenja [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-explanation)                   | `No`                                                                               |
| Podržava kontekst [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-context)                          | `No`                                                                               |
| Podržava mjesto [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-location)                           | `No`                                                                               |
| Podržava oznake [ⓘ](https://docs.weblate.org/hr/latest/formats.md#format-flags)                              | `No`                                                                               |
| Identifikator API-ja                                                                                       | `laravel`                                                                          |
| Podržava izraze koji su samo-za-čitanje [ⓘ](https://docs.weblate.org/hr/latest/formats.md#read-only-strings) | `No`                                                                               |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/hr/latest/formats.md#obsolete-strings)       | `No`                                                                               |
| Provjeri oznake koje je dodao ovaj format [ⓘ](https://docs.weblate.org/hr/latest/admin/checks.md#custom-checks)   | [Laravel format](https://docs.weblate.org/hr/latest/user/checks.md#check-laravel-format) |
<!-- AUTOGENERATED END: format-features laravel -->

## Weblate konfiguracija

|                                       | Typical Weblate [Konfiguracija komponente](https://docs.weblate.org/hr/latest/admin/projects.md#component)   |
|---------------------------------------|-----------------------------------------------------------------------------------------------------|
| Maska datoteke                        | `lang/*/texts.php`                                                                                  |
| Jednojezična datoteka osnovnog jezika | `lang/en/texts.php`                                                                                 |
| Predložak za nove prijevode           | `lang/en/texts.php`                                                                                 |
| Format datoteke                       | Laravel PHP strings                                                                                 |
