Skip to content

Commit

Permalink
docs: add text decration
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 28, 2024
1 parent d1631d6 commit 0153a89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions user_guide_src/source/outgoing/localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ Basic Usage
===========

You can use the :php:func:`lang()` helper function to retrieve text from any of the language files, by passing the
filename and the language key as the first parameter, separated by a period (.). For example, to load the
``errorEmailMissing`` string from the **Errors.php** language file, you would do the following:
filename and the language key as the first parameter, separated by a period (``.``).

For example, to load the ``errorEmailMissing`` string from the **Errors.php**
language file, you would do the following:

.. literalinclude:: localization/010.php

Expand All @@ -169,7 +171,7 @@ For nested definition, you would do the following:
.. literalinclude:: localization/011.php

If the requested language key doesn't exist in the file for the current locale, the string will be passed
back, unchanged. In this example, it would return 'Errors.errorEmailMissing' or 'Errors.nested.error.message' if it didn't exist.
back, unchanged. In this example, it would return ``Errors.errorEmailMissing`` or ``Errors.nested.error.message`` if it didn't exist.

Replacing Parameters
--------------------
Expand Down

0 comments on commit 0153a89

Please sign in to comment.