WordPress Multilingual (WPML) – tips

Just some short notes on using WPML in wordpress:

Translating theme strings

In the code use this for strings that should be translated (example is for ‘roots’  theme)

echo __('Instructors', 'roots')

Then in the WPML settings, got to the tab ‘Theme and plugins localization’

Scroll down and click ‘Scan the theme for Strings’

Then scroll slighlty up and click the button ‘View strings that need translation’

Add your translation(s) and save