Skip Navigation

Resolved

Reported for: WPML Multilingual CMS 3.5.1.1

Resolved in: WPML Multilingual CMS 3.5.2

Overview of the issue

The problem manifest itself when:

  1. Using WordPress 4.6.0 and higher.
  2. There is more than one language defined
  3. Option Don’t use String Translation to translate the theme and plugins is chosen in WPML > Theme and plugins localization
  4. MO file corresponding to the second language is uploaded
  5. MO file corresponding to the default language is not uploaded (as it usually happens).

Issue: strings belonging to a plugin or a theme might be shown translated to the secondary language.

For instance:

  • A site with English as default language and Bulgarian as a secondary language.
  • The site uses the WooCommerce plugin.
  • A product is created and added translated in Bulgarian.
  • When visiting the English page of this product, texts belonging to the WooCommerce plugin are shown in Bulgarian.

If the product is not translated, this does not happen.

Workaround

To prevent this problem, you have to upload the plugin’s MO file corresponding to the default language or downgrade to WordPress 4.5.4 (the version previous to 4.6).

2 Responses to “Translation from second language are loaded when MO files are used”

  1. Boa noite
    Preciso de ajuda para a instalação do meu WPLM para funcionar em conjunto com woocommerce.
    A instalação correu toda bem, consegui instalar todos os plugins necessários e estão todos a funcionar, exceptuando a parte onde quero instalar e activar o “wpml-string-translation”, que me deixa o site todo em branco assim que procedo à sua activação. Tanto instalei por FTP como pelo próprio wordpress mas o erro ocorreu sempre. Reparei que a situação já aconteceu anteriormente a outras pessoas, mas no meu caso instalei as versões todas actualizadas dos plugins. Tenho a versão 4.6.1 do wordpress, e estou num tema “Framework Genesis” com o child them “Outreach-pro” ambos da Studiopress. Tive de instalar também um plugin “Genesis Connect for WooCommerce”, que está activo e a funcionar correctamente. Não me aparece nenhuma mensagem de erro, simplesmente todo o site fica em branco, sendo impossível de voltar a entrar no dashboard do wordpress sequer. Assim que apago o plugin “wpml-string-translation” o site volta a funcionar.