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?
Contact Me
• Mail – bigul.m@wpml.org
• Skype – bigulhere
• Facebook - http://facebook.com/mbigul

Translate word press to your language

  • 1.
  • 2.
    About me andthe company Bigul Malayi QA OnTheGoSystems • WPML • Toolset plugins • iCanLocalize
  • 3.
    Agenda • Translating WordPressCore  Introduction to GlotPress  Other Translation Tools • Translating Plugins and Themes • Translating Contents
  • 4.
    Introduction to GlotPress •What is GlotPress • Features • Its History • How it will work • The future
  • 5.
    What is GlotPress GlotPressis the open-source engine that powers the translation of WordPress and related projects
  • 8.
    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
  • 9.
    GlotPress History • Startedin 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
  • 10.
    How it willwork • 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
  • 18.
    Future • Personal dashboard •E-mail notifications • Better string management • Better search/filter • New theme
  • 21.
    Other Translation Tools •GNU Gettext • Poedit • Launchpad • Pootle • KBabel
  • 22.
    Translating Plugins andThemes • How To Make Your Code Translatable  Core Functions  Providing More Information • Creating Language Files
  • 23.
    Core Functions • Basicsfunctions __() _e() • Not so basics functions _x() _ex() _n() esc_html__() esc_html_e() esc_html_x() esc_attr__() esc_attr_e() esc_attr_x()
  • 24.
    Core Functions • Alwaysuse only static strings • Don’t use I18N functions on variables • Always provide text domains like _e( ‘string’,'textdomain')
  • 25.
    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' );
  • 26.
    Creating Language Files •Translation consists, mostly, of creating POMO files • POT file – Portable Object Template • PO file – Portable Object • MO file – Machine Object
  • 30.
    Translating Contents • StandaloneWordPress environment Polyglang qTranslate WPML (Premium)
  • 31.
    Translating Contents • WordPressMultisite  Multisite Language Switcher  Zanto  Multilingual Press(Free & Premium)
  • 32.
  • 33.
  • 34.
    Contact Me • Mail– bigul.m@wpml.org • Skype – bigulhere • Facebook - http://facebook.com/mbigul