vteam #453 has been working on the project of a community website. The aim of this project was to incorporate international language support according to WordPress standards using the BuddyPress plugin. The WPML plugin was used to provide multilingual functionality to the site.
WPML includes features like WPML String Translation and a core Translation component that supports all international languages and can be customized with custom themes and integrated plug-ins. However, many challenges were faced; the most predominant being the need for high levels of customization and the difficulty involved in the integrated plugins being used on the site already.
vteam #453 formatted all the possible strings with the function so the theme could detect the translated string from the WPML String Translation component. So that the translation plugin would be compatible with BuddyPress’ plugin, which allows BuddyPress sites to run fully multilingual using the WPML plugin, was used.
Commonly, other plugins use the String Translation function; , so it was easy to pick relevant domain of plugin and add translation for strings.
The plugin was used on this site to build the main forms like “Contact Us”. So, “” component, which is known to work with WMPL was used to translate the forms by picking data from .
Defined translations of deferent sections were required to be stored in database tables. These sections included:
- Education Level
- Featured Items
- Subject Areas
Tables of the above mentioned sections have associated translated tables. So, the vteam #453 utilized WPML snippets and constants like to implement customization. For example the use of is given as: