diff --git a/user_guide_src/source/outgoing/localization.rst b/user_guide_src/source/outgoing/localization.rst index c03ddd49b1a5..f9f7e096b6e9 100644 --- a/user_guide_src/source/outgoing/localization.rst +++ b/user_guide_src/source/outgoing/localization.rst @@ -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 @@ -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 --------------------