May 2017
Beginner to intermediate
536 pages
14h 25m
English
Most popular plugins are translation-ready, which means you can use the built-in translation files or create translation files for any language. However, this feature seems to be lacking in many less popular plugins, as well as in application plugins that were built for a specific website. So, as a developer, it's important to understand how to add support for translation files and create translation files from scratch. Let's see how we can build a fully translatable plugin. Create a new plugin in a file called wpwaf-lang.php. Then, add a shortcode with a translatable string, as shown in the following code:
<?php // Plugin information add_shortcode('wpwaf_lang_checker','wpwaf_lang_checker'); functionwpwaf_lang_checker(){ ...Read now
Unlock full access