translate word press to your language
TRANSCRIPT
![Page 1: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/1.jpg)
Translate WordPress to Your Language
![Page 2: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/2.jpg)
About me and the company
Bigul Malayi
QA
OnTheGoSystems
• WPML
• Toolset plugins
• iCanLocalize
![Page 3: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/3.jpg)
Agenda
• Translating WordPress Core
Introduction to GlotPress
Other Translation Tools
• Translating Plugins and Themes
• Translating Contents
![Page 4: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/4.jpg)
Introduction to GlotPress
• What is GlotPress
• Features
• Its History
• How it will work
• The future
![Page 5: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/5.jpg)
What is GlotPress
GlotPress is the open-source engine that powers the translation of WordPress and
related projects
![Page 6: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/6.jpg)
![Page 7: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/7.jpg)
![Page 8: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/8.jpg)
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
![Page 9: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/9.jpg)
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
![Page 10: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/10.jpg)
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
![Page 11: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/11.jpg)
![Page 12: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/12.jpg)
![Page 13: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/13.jpg)
![Page 14: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/14.jpg)
![Page 15: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/15.jpg)
![Page 16: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/16.jpg)
![Page 17: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/17.jpg)
![Page 18: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/18.jpg)
Future
• Personal dashboard
• E-mail notifications
• Better string management
• Better search/filter
• New theme
![Page 19: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/19.jpg)
![Page 20: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/20.jpg)
![Page 21: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/21.jpg)
Other Translation Tools
• GNU Gettext
• Poedit
• Launchpad
• Pootle
• KBabel
![Page 22: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/22.jpg)
Translating Plugins and Themes
• How To Make Your Code Translatable
Core Functions
Providing More Information
• Creating Language Files
![Page 23: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/23.jpg)
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()
![Page 24: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/24.jpg)
Core Functions
• Always use only static strings
• Don’t use I18N functions on variables
• Always provide text domains like
_e( ‘string’,'textdomain')
![Page 25: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/25.jpg)
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' );
![Page 26: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/26.jpg)
Creating Language Files
• Translation consists, mostly, of creating POMO files
• POT file – Portable Object Template
• PO file – Portable Object
• MO file – Machine Object
![Page 27: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/27.jpg)
![Page 28: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/28.jpg)
![Page 29: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/29.jpg)
![Page 30: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/30.jpg)
Translating Contents
• Standalone WordPress environment
Polyglang
qTranslate
WPML (Premium)
![Page 31: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/31.jpg)
Translating Contents
• WordPress Multisite
Multisite Language Switcher
Zanto
Multilingual Press(Free & Premium)
![Page 32: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/32.jpg)
Thank You All
![Page 33: Translate word press to your language](https://reader034.vdocument.in/reader034/viewer/2022051516/55a6f16d1a28ab8c5e8b47a8/html5/thumbnails/33.jpg)
Questions?