Перейти к содержимому Перейти к боковой панели

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using Complianz Premium with WPML, you might notice that certain dynamic content in the Privacy and Cookie Policy pages—such as retention periods and contact information—does not appear in the WPML String Translation interface. As a result, these values remain untranslated on the frontend.

Workaround

Please make sure you have a full backup of your site before proceeding.

  • In WPML → Settings → Custom XML Configuration, add the following configuration:
  • <wpml-config>
      <admin-texts>
        <key name="cmplz_options">
          <key name="organisation_name" />
          <key name="address_company" />
          <key name="country_company" />
          <key name="email_company" />
          <key name="telephone_company" />
          <key name="ca_name_accountable_person" />
          <key name="ca_address_accountable_person" />
          <key name="contact_retain_wmy" />
          <key name="statistics_retain_wmy" />
        </key>
      </admin-texts>
    </wpml-config>
    
            
  • Go to WPML → String Translation and select the domain admin_texts_cmplz_options.
  • Translate the listed strings.
  • Check the frontend Privacy and Cookie Policy pages to confirm translations are displayed correctly.

Оставить ответ

Пожалуйста, придерживайтесь темы и уважайте других. Если вам нужна помощь по вопросам, не связанным с этим сообщением, используйте наш Форум поддержки, чтобы начать чат или отправить заявку.

Вы можете использовать эти теги:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>