What is the code to specify to display other language

ClassiBase classifieds script Forums General help What is the code to specify to display other language

This topic contains 1 reply, has 2 voices, and was last updated by  ClassiBase 3 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1134 Reply

    Elite Tan
    Participant

    dear Support,

    example for testing purpose, in frontend.php I want to display manually customise by adding a word say:

    Hello in english

    and

    Hello in german

    what is the code to add to specify such that it’ll display Hello in german when click on german language? I want to manually type the word hello in german into frontend.php, I want to know the condition if, or any code to add manually to frontend.php if I am to do the translation manually just for the word in frontend.php what code should I enter?

    #1166 Reply

    ClassiBase
    Keymaster

    To make any string translatable use it in following function
    <?php echo __('Hello in english'); ?>

    • Then clear cache from “Tools”->”Clear cache”
    • Then click “Rebuild translation terms” from “Settings” -> “Language” and clicking “Translate” on language you want to write translation.
    • After translation terms built search for string you want to translate or click to display empty fields. Then write translation to each empty field.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: What is the code to specify to display other language
Your information: