WPML

סקירת התקלה

בעת שימוש בערכת העיצוב Shout עם WPML, פריטים מתורגמים מאבדים את השדות ואת הגדרות הפריסה של ערכת העיצוב, טקסט הסרגל העליון ועמוד הכותרת התחתונה נשארים בשפת ברירת המחדל, הטקסטים של כמה שורטקודים אינם מתורגמים, ולא ניתן לתרגם את הטקסטים של הווידג’ט vCard. הקישורים לפוסט הקודם ולפוסט הבא יכולים גם להוביל לפוסט בשפה אחרת.

פתרון עוקף

  1. עבור אל WPMLהגדרות ופתח את הכרטיסייה הגדרות XML מותאמות אישית.
  2. הוסף את הקוד הזה ושמור:
    XML
    <wpml-config>
      <custom-fields>
          <custom-field action="translate">member_job</custom-field>
          <custom-field action="copy">_member_job</custom-field>
          <custom-field action="translate">member_byline</custom-field>
          <custom-field action="copy">_member_byline</custom-field>
          <custom-field action="translate">below_headings_text</custom-field>
          <custom-field action="copy">_below_headings_text</custom-field>
          <custom-field action="translate">testimonial_subheading</custom-field>
          <custom-field action="copy">_testimonial_subheading</custom-field>
          <custom-field action="translate">pirenko_rotating_text</custom-field>
          <custom-field action="copy">_pirenko_rotating_text</custom-field>
          <custom-field action="copy">featured_header</custom-field>
          <custom-field action="copy">_featured_header</custom-field>
          <custom-field action="copy">show_sidebar</custom-field>
          <custom-field action="copy">_show_sidebar</custom-field>
          <custom-field action="copy">sidebar_pos</custom-field>
          <custom-field action="copy">_sidebar_pos</custom-field>
      </custom-fields>
      <admin-texts>
        <key name="prk_shout_options">
          <key name="bar_left_text_1"/>
          <key name="theme_divider"/>
          <key name="woo_subheading"/>
          <key name="bottom_page_id"/>
        </key>
      </admin-texts>
      <shortcodes>
        <shortcode>
            <tag>pirenko_contact_info</tag>
            <attributes>
                <attribute>company_name</attribute>
                <attribute>street_address</attribute>
                <attribute>locality</attribute>
                <attribute>postal_code</attribute>
                <attribute>tel</attribute>
                <attribute>fax</attribute>
                <attribute>hours</attribute>
                <attribute>email</attribute>
            </attributes>
        </shortcode>
        <shortcode>
            <tag>prk_sitemap</tag>
            <attributes>
                <attribute>txt_pages</attribute>
                <attribute>txt_blog_cats</attribute>
                <attribute>txt_posts</attribute>
                <attribute>txt_port_posts</attribute>
            </attributes>
        </shortcode>
      </shortcodes>
    </wpml-config>
  3. עבור אל WPMLתרגום מחרוזות. תרגם את הטקסטים של השורה העליונה, ותרגם את bottom_page_id למזהה של עמוד הכותרת התחתונה המתורגם.
  4. תרגם שוב את העמודים והפריטים שלך, כדי שהתרגומים שלהם יקבלו את השדות.
  5. עבור הווידג’ט vCard, הוסף וידג’ט אחד לכל שפה והגדר את השפה שלו בהגדרות הווידג’ט.
  6. עבור קישורי הפוסט הקודם והבא, תוכל לכבות את ניווט הפוסטים באפשרויות ערכת העיצוב עד שמפתח ערכת העיצוב יתקן זאת.

כל התקלות הידועות

זקוק לעזרה בבעיה זו?

פתח פנייה לתמיכה ואנחנו נבדוק זאת איתך.