Skip to content

Commit 0153a89

Browse files
committed
docs: add text decration
1 parent d1631d6 commit 0153a89

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

user_guide_src/source/outgoing/localization.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ Basic Usage
159159
===========
160160

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

165167
.. literalinclude:: localization/010.php
166168

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

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

174176
Replacing Parameters
175177
--------------------

0 commit comments

Comments
 (0)