- June 16, 2016 at 09:17 #3136
I would like to know how can I add more English words to translate in several other languages? (The words that are not listed in the original English language file.) If there is no way to do that currently, may I suggest you to add this feature? This is so useful.
Thanks.June 16, 2016 at 09:34 #3158
If you are making custom theme and want to add new words to translate then use any wards and sentences in your theme with a
__()(double underscore) function call like this (for example):
<a href="http://google.com">Click to visit google</a>
<a href="http://google.com"><?php echo __('Click to visit google');?></a>
After adding all terms this way to your theme files:
- Navigate to Settings -> Language page on Admin panel
- Click on Translate button next to language
- On opened page click on “Rebuild translations terms” button. This will scan all files for translation terms and will add terms in your files as well.
- Then click on “Display empty values” or search for term that you want to translate and write translation
- Click save to save changes. If changes are not shown correctly then refresh page because currently there may be some bug for not updating terms.
If you have further questions let us know, we will be happy to help.July 6, 2016 at 04:05 #3172
Thank you so much admin, I love this script!