6. Language Usage
In the theme structure, two functions are available to display languages on the screen;
- __($lang_line,$replacement,$lang_code)
- ___($lang_line,$replacement,$lang_code)
To get the language value in your theme file, you should use the following function;
- __("theme/example-page-title")
There are two different ways to invoke built-in languages in the system;
- To call the php language files in the "coremio/locale/en/cm/" directory, you should use, for example: __("website/index/add-basket").
- To call the php language files in the "coremio/locale/tr/cm/" directory, you should use, for example: ___("needs/other").
$replacement Variable
This should be a variable array. For example, you can send as ['{variable}' => 'test'].
$lang_code Variable
is the directory name in the "coremio/locale/" folder.