- October 14, 2013 at 04:02 #1134
example for testing purpose, in frontend.php I want to display manually customise by adding a word say:
Hello in english
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?October 18, 2013 at 17:10 #1166
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.