Support » Plugin: SimpleModal Contact Form (SMCF) » [Plugin: SimpleModal Contact Form (SMCF)] Having trouble with po/mo translations

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Eric Martin


    Have you followed the following naming convention?

    – smcf-
    – ISO 639 language code (lowercase)
    – an underscore
    – ISO 3166-1 alpha-2 country code (uppercase)
    – .mo

    So for an Italian translation, the file name would be

    You also need to make sure to update the WPLANG variable in wp-config.php:

    define (‘WPLANG’, ‘it_IT’);

    Yes :

    I confirm the problem, same here with ru_RU.
    define ('WPLANG', 'ru_RU');

    tried both – having lang files if the root folder of plugin and in the ‘lang’ subfolder. None worked.

    I also have the exact same problem, but with french and spanish translations..

    This happend right after upgrading to latest 1.2.6 smcf version, as it worked flawlessly before upgrade.

    Please let us know if this is a bug and how can we fix it?


    Has anyone resolved this problem???

    Please help us!!

    To resolve this problem, you must change line 37 of /wp-content/pluginssimplemodal-contact-form-smcf/smcf.php :

    load_plugin_textdomain("smcf", false, SMCF_DIR . "/lang/");

    it become :

    load_plugin_textdomain('smcf', false, dirname( plugin_basename(__FILE__) ) . '/lang');

    Good luck.


    Thanks a lot for let us know how to fix the problem!

    It works perfectly now!

    Thank you.

    I got the same problem, put the code

    load_plugin_textdomain(‘smcf’, false, dirname( plugin_basename(__FILE__) ) . ‘/lang’);

    but nothing changes. I named the translation

    Any solution?

    Could you confirm the value of WPLANG in wp-config.php ?
    It should be es_ES

    define ('WPLANG', 'es_ES');

    yeah i got the wplang changed into es_ES. translations works perfectly, except the smcf that don load, y try changing the code you say and didnt work for me. trying deleting cookies too. strange…

    Your website is it online?

    no. i am working in my localhost.

    Your website is it only in Spanish or multilingual?

    i installed wordpress in english, translate it with the spanish .mo file and change the wplang, how i know if i am working in multilingual?

    If you want your website to be displayed only in Spanish, the simplest solution is to rename the file in

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: SimpleModal Contact Form (SMCF)] Having trouble with po/mo translations’ is closed to new replies.