Developer Center

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.

5. Variables and Functions 7. Creating a Subpage

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top