@@ -39,9 +39,9 @@ language codes like en-US for American English, or fr-FR, for French/France. A m
3939to this can be found on the `W3C's site <https://www.w3.org/International/articles/language-tags/ >`_.
4040
4141The system is smart enough to fallback to more generic language codes if an exact match
42- cannot be found. If the locale code was set to **en_US ** and we only have language files setup for **en **
43- then those will be used since nothing exists for the more specific **en_US **. If, however, a language
44- directory existed at **application/Language/en_US ** then that we be used first.
42+ cannot be found. If the locale code was set to **en-US ** and we only have language files setup for **en **
43+ then those will be used since nothing exists for the more specific **en-US **. If, however, a language
44+ directory existed at **application/Language/en-US ** then that would be used first.
4545
4646Locale Detection
4747================
@@ -64,7 +64,7 @@ of locales that you have defined in ``$supportLocales``. If no match is found be
6464that you support, and the requested language, the first item in $supportedLocales will be used. In
6565the following example, the **en ** locale would be used if no match is found::
6666
67- public $supportedLocales = ['en', 'es', 'fr_FR '];
67+ public $supportedLocales = ['en', 'es', 'fr-FR '];
6868
6969In Routes
7070---------
@@ -108,7 +108,7 @@ Language Localization
108108Creating Language Files
109109=======================
110110
111- Language do not have any specific naming convention that are required. The file should be named logically to
111+ Languages do not have any specific naming convention that are required. The file should be named logically to
112112describe the type of content it holds. For example, let's say you want to create a file containing error messages.
113113You might name it simply: **Errors.php **.
114114
@@ -234,12 +234,12 @@ third parameter to the ``lang()`` method.
234234::
235235
236236 // Displays "The time is now 23:21:28 GMT-5"
237- echo lang('Test.longTime', [time()], 'ru_RU ');
237+ echo lang('Test.longTime', [time()], 'ru-RU ');
238238
239239 // Displays "£7.41"
240- echo lang('{price, number, currency}', ['price' => 7.41], 'en_GB ');
240+ echo lang('{price, number, currency}', ['price' => 7.41], 'en-GB ');
241241 // Displays "$7.41"
242- echo lang('{price, number, currency}', ['price' => 7.41], 'en_US ');
242+ echo lang('{price, number, currency}', ['price' => 7.41], 'en-US ');
243243
244244Nested Arrays
245245-------------
0 commit comments