translate word press to your language
TRANSCRIPT
Translate WordPress to Your Language
About me and the company
Bigul Malayi
QA
OnTheGoSystems
• WPML
• Toolset plugins
• iCanLocalize
Agenda
• Translating WordPress Core
Introduction to GlotPress
Other Translation Tools
• Translating Plugins and Themes
• Translating Contents
Introduction to GlotPress
• What is GlotPress
• Features
• Its History
• How it will work
• The future
What is GlotPress
GlotPress is the open-source engine that powers the translation of WordPress and
related projects
Features
• Different roles: Translators, Validators and Admins
• Translate strings
• Validate strings
• Manage strings by reject/approve them
• Having a glossary with common words
• Import/Export different formats
GlotPress History
• Started in April 2008 by Nikolay Bachiyski
• Uses BackPress as a framework
• And it’s OOP developed
• In 2013 Marko Heijnen started managing GlotPress
• In 2014 they have started first GSoC project
How it will work
• Uses BackPress which has a lot of classes
• A lot of the functionalities are copied over from WordPress
• GlotPress has a lot of scripts
• Import/export originals or translations
Future
• Personal dashboard
• E-mail notifications
• Better string management
• Better search/filter
• New theme
Other Translation Tools
• GNU Gettext
• Poedit
• Launchpad
• Pootle
• KBabel
Translating Plugins and Themes
• How To Make Your Code Translatable
Core Functions
Providing More Information
• Creating Language Files
Core Functions
• Basics functions
__() _e()
• Not so basics functions
_x() _ex() _n()
esc_html__() esc_html_e() esc_html_x()
esc_attr__() esc_attr_e() esc_attr_x()
Core Functions
• Always use only static strings
• Don’t use I18N functions on variables
• Always provide text domains like
_e( ‘string’,'textdomain')
Providing More Information
• Context
_x('Sachin Tendulkar', 'A Cricketer', 'plugin-slug');
_x('Sachin Tendulkar', 'Best batsman ever', 'plugin-slug');
_x('Sachin Tendulkar', 'God of cricket', 'plugin-slug');
• Translator comment
/* translators: description for a picture of Sachin */_e( ‘Sachin', 'plugin-slug' );
Creating Language Files
• Translation consists, mostly, of creating POMO files
• POT file – Portable Object Template
• PO file – Portable Object
• MO file – Machine Object
Translating Contents
• Standalone WordPress environment
Polyglang
qTranslate
WPML (Premium)
Translating Contents
• WordPress Multisite
Multisite Language Switcher
Zanto
Multilingual Press(Free & Premium)
Thank You All
Questions?