WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Contact Form (SMCF)
[resolved] Plugin textdomain for translations (2 posts)

  1. 3dolab
    Member
    Posted 2 years ago #

    Hey, the string won't get translated if you provide false as the first parameter, and then an absolute path to load_plugin_textdomain

    in smcf.php at line 37 I've set

    function init() {
    		$smcfdir = dirname( plugin_basename( __FILE__ ) );
    		load_plugin_textdomain("smcf", false, $smcfdir . "/lang/");

    and now files in the /lang subfolders are successfully loaded

    http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/

  2. Li-An
    Member
    Posted 2 years ago #

    Thank you for this correction ! The plugin needs to be updated as translation does not work without correction !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic