WPML

问题概述

将 Salient 与 WPML 搭配使用时,Chat Thread、Scrolling Text 和 Single Testimonial 元素的某些文本未发送进行翻译,因此翻译后的页面会以默认语言显示这些文本。

临时解决方法

  1. 前往WPML设置自定义 XML 配置,添加以下 XML 并保存:
    XML
    <wpml-config>
      <shortcodes>
        <shortcode>
          <tag>nectar_single_testimonial</tag>
          <attributes>
            <attribute>quote</attribute>
            <attribute>name</attribute>
            <attribute>subtitle</attribute>
          </attributes>
        </shortcode>
        <shortcode>
          <tag>nectar_scrolling_text</tag>
          <attributes>
            <attribute>text_repeat_divider_custom</attribute>
          </attributes>
        </shortcode>
        <shortcode>
          <tag>nectar_chat_thread</tag>
          <attributes>
            <attribute>outgoing_bubble_name</attribute>
            <attribute>incoming_bubble_name</attribute>
          </attributes>
        </shortcode>
        <shortcode>
          <tag>nectar_chat_thread_bubble</tag>
        </shortcode>
      </shortcodes>
    </wpml-config>
  2. 再次翻译该页面。

所有已知问题

需要有关此问题的帮助?

提出支持问题,我们将与您一起调查。