Title: Warnings from &#039;Codestyling Localization&#039; plugin
Last modified: August 20, 2016

---

# Warnings from 'Codestyling Localization' plugin

 *  Resolved [weeix](https://wordpress.org/support/users/weeix/)
 * (@weeix)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warnings-from-codestyling-localization-plugin/)
 * Hello Chouby,
 * First I must thank you for your great plugin. I used to install qTranslate for
   my bilingual project, but your multilingual plugin seems very promising that 
   I’d like to give it a try.
 * The ‘Codestyling Localization’ (CL) plugin keeps warning me about other plugins
   and themes, so I decide to report it to every developers. I’m not very experienced
   with plugin developing so I don’t know if it’s a false warning or not, but I 
   think it might be useful.
 * 1. CL report this after I turn on Polylang:
 * > STRICT Error: [2048] Only variables should be passed by reference
   >  D:\\xampp\\
   > htdocs\\hynae\\wp-includes\\pomo\\mo.php on line 210
 * 2. CL suggest about using `load_plugin_textdomain` instead of `load_textdomain`
 * Picture: [http://www.fileden.com/files/2010/11/3/3007256/polylang098.png](http://www.fileden.com/files/2010/11/3/3007256/polylang098.png)
 * Thanks for hearing me out, Wee.
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warnings-from-codestyling-localization-plugin/#post-3358377)
 * 1. I don’t have the error you reported (I am using CodeStyling Localization 1.99.29).
   Have you some special debug settings?
 * 2. I am aware of the compatibility warning displayed by CodeStyling Localization.
   I anm using load_plugin_textdomain to load the polylang textdomain.
 * In Polylang, you have the possibility to choose the language from content (see
   Polylang settings). That means that the language code is not included in the 
   url for posts and pages. This has some pros and cons. Among this, Polylang needs
   to delay the textdomain load (normally done before the content is known). So 
   Polylang uses load_textdomain to do this. This function is convenient as I don’t
   need to know what sort of text domain it is (default, plugin, theme). To avoid
   this compatibility warning would need more complex code and, up to now, no issue(
   except this warning) was reported. I am using both plugins and never got any 
   conflict.
 *  Thread Starter [weeix](https://wordpress.org/support/users/weeix/)
 * (@weeix)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warnings-from-codestyling-localization-plugin/#post-3358382)
 * Maybe it’s about the php in my machine – I’m using version 5.4.7
 * It seems that `load_textdomain` is essential for multilingual plugins since they
   have to localize WP, themes and other plugins.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warnings-from-codestyling-localization-plugin/#post-3358383)
 * I am using 5.4.7 too. load_textdomain is useful only because, depending on the
   chosen option, Polylang defers text domain loading. It is not needed when the
   language code is added to all urls (because in that case, it is possible to set
   the language before WP, plugins and themes load load the text domain).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Warnings from 'Codestyling Localization' plugin’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [load_plugin_textdomain](https://wordpress.org/support/topic-tag/load_plugin_textdomain/)
 * [load_textdomain](https://wordpress.org/support/topic-tag/load_textdomain/)

 * 3 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/warnings-from-codestyling-localization-plugin/#post-3358383)
 * Status: resolved