Adding Right to left (RTL) languages support to your themes and plugins doesn’t have to be a chore. This short talk introduces the basics of RTL support and demonstrate how to use automated tools to simplify the process.
1. Right To Left Languages
In WordPress
Yoav Farhi
@yoavf
2. Right To Left Languages
In WordPress
Yoav Farhi
@yoavf
הנכתבות בשפות תמיכה
בוורדפרס מימין-לשמאל
פרחי יואב
@yoavf
Right To Left Languages
In WordPress
25. קובץ עם הבעיה
rtl.css
צפיה בכל לטעינה נוסף קובץ
באתר
אוטומטי באופן ליצירה יותר קשה
בהם במקרים בלבד חלקי פתרון
מודולרי CSS-ה
➡ Another file to request on
every page view
➡ Harder to generate
automatically
➡ Only a partial solution when
using modular css
The problem
with rtl.css
27. האלטרטיבה
המקור מקובץ מראה קובץ צרו
{file}.css
{file}-rtl.css לו קראו
➡ Generate a fully mirrored file
out of the original
{file}.css
➡ Name it {file}-rtl.css
The Alternative
30. עושה זה מה
עם קובץ אוטומטית טוען
במקום -rtl.css סיומת
.המקורי הקובץ
Loads the file with the
-rtl.css suffix instead
of the original file.
What this does
31. המראה קובץ יצירת
של הליבה בקוד הנעשה אחר עקבו
וורדפרס
rtlcss נוד במודול השתמשו
.שלכם ההרכבה בתהליך
npm install rtlcss -g
➡ Follow core WordPress’ lead
➡ Integrate node module rtlcss
in your build process
npm install rtlcss -g
Generating the
mirrored file
32. rtlcss
(הקובץ לא ,Node-ל )המודול
מושלם מראה קוד
מתקדמים ופקדים אפשרויות
,(ignore, remove, replace)
ותוספים
הרכבה במערכות שילובים
grunt, gulp,) נפוצות
.(…webpack
➡ Perfect mirroring
➡ Advanced options and
directives (ignore, remove,
replace), and plugins
➡ Integrations with popular
build systems (grunt, gulp,
webpack…).
rtlcss
(The Node module, not the file)