mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-26 18:40:05 +08:00
* initial implementation suggestion * basic supported features snippets generation * Add API identifiers, read-only strings and common extensions to features table * generate doc features snippet files * autogenerated snippets cleanup * changelog update * delete one file to test auto-update * replace SUPPORTS_FUZZY with file format additional_states flag * docs: Documentation snippets update * fix include statetement typo * fix incorrect monolingual attributes * minor styling change * docs: Documentation snippets update * exclude snippets from being treated as standalone documents * Set YAMLFormat as both mono/bilingual * docs: Documentation snippets update * fix duplicate format IDs * only use backwards quotes for literals --------- Co-authored-by: gersona <6675010+gersona@users.noreply.github.com> Co-authored-by: Michal Čihař <michal@weblate.org>
40 lines
1.4 KiB
ReStructuredText
40 lines
1.4 KiB
ReStructuredText
.. _laravel:
|
|
.. _laravel-php:
|
|
|
|
Laravel PHP strings
|
|
-------------------
|
|
|
|
.. versionchanged:: 4.1
|
|
|
|
The Laravel PHP localization files are supported as well with plurals:
|
|
|
|
.. versionchanged:: 5.15
|
|
|
|
The translation keys no longer include PHP structure and only contain the actual key.
|
|
|
|
.. literalinclude:: ../../weblate/trans/tests/data/laravel.php
|
|
:language: php
|
|
|
|
.. seealso::
|
|
|
|
* :doc:`tt:formats/php`
|
|
* `Localization in Laravel`_
|
|
|
|
.. _Localization in Laravel: https://laravel.com/docs/localization
|
|
|
|
.. include:: /snippets/format-features/laravel-features.rst
|
|
|
|
Weblate configuration
|
|
+++++++++++++++++++++
|
|
|
|
+-------------------------------------------------------------------+
|
|
| Typical Weblate :ref:`component` |
|
|
+================================+==================================+
|
|
| File mask | ``lang/*/texts.php`` |
|
|
+--------------------------------+----------------------------------+
|
|
| Monolingual base language file | ``lang/en/texts.php`` |
|
|
+--------------------------------+----------------------------------+
|
|
| Template for new translations | ``lang/en/texts.php`` |
|
|
+--------------------------------+----------------------------------+
|
|
| File format | `Laravel PHP strings` |
|
|
+--------------------------------+----------------------------------+
|