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

  1. 3dolab
    Posted 4 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


  2. Li-An
    Posted 4 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

  • SimpleModal Contact Form (SMCF)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic