Stringhe PHP Laravel

Cambiato nella versione 4.1.

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

Cambiato nella versione 5.15: The translation keys no longer include PHP structure and only contain the actual key.

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

Estensioni dei file

.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

Supports removing obsolete strings ⓘ

No

Check flags added by this format ⓘ

Formato Laravel

Configurazione Weblate

Typical Weblate Component configuration

Maschera del file

lang/*/texts.php

File di lingua a base monolingue

lang/en/texts.php

Modello per le nuove traduzioni

lang/en/texts.php

Formato file

Laravel PHP strings