סקירת התקלה
בעת שימוש ב־Flatsome עם WPML, לא ניתן לתרגם טקסטים מסוימים: שעות יצירת הקשר בכותרת העליונה וסיומת תקציר הבלוג באפשרויות ערכת העיצוב, השם והחברה של רכיב Testimonial, הטקסט של לחצן הכותרת העליונה, והכותרת של רכיב Products.
פתרון עוקף
- עבור אל WPMLהגדרותהגדרות XML מותאמות אישית, הוסף את ה־XML הבא ושמור:
XML
<wpml-config> <shortcodes> <shortcode> <tag>testimonial</tag> <attributes> <attribute>name</attribute> <attribute>company</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>header_button</tag> <attributes> <attribute>text</attribute> <attribute type="link">link</attribute> </attributes> </shortcode> <shortcode> <tag>ux_products</tag> <attributes> <attribute>title</attribute> </attributes> </shortcode> </shortcodes> <admin-texts> <key name="theme_mods_flatsome"> <key name="contact_hours" /> <key name="blog_excerpt_suffix" /> </key> </admin-texts> </wpml-config>
- תרגם את הטקסטים של אפשרויות ערכת העיצוב ב־WPMLתרגום מחרוזות.
- תרגם שוב את העמודים שמשתמשים ברכיבי UX Builder אלה.