• Resolved FrederikRS

    (@frederikrs)


    Hi

    It’s said in the description that this plugin can now be translated in to different languages.

    I made a Danish translation of this plugin, but I can’t get it work…

    What should I do to make this translation work? I have the .po and .mo files, but it seems that the plugin wont read the translations.

    Best regards
    FrederikRS

    http://ww.wp.xz.cn/extend/plugins/custom-contact-forms/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter FrederikRS

    (@frederikrs)

    I localized the issue:
    The “load_plugin_textdomain” wasn’t set in the main plugin file.

    To get translations work just add this line:

    load_plugin_textdomain( 'custom-contact-forms', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );

    to the beginning of the file custom-contact-forms.php.

    Rename your translation files to “custom-contact-forms-da_DK.po” and “custom-contact-forms-da_DK.mo” (for the Danish translation).

    I wrote to Taylor Lovett and asked to add this line to the file.

    – FrederikRS

    Thank you! Translated to Spanish and could not wonder the reason why wasn’t working.

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

The topic ‘[Plugin: Custom Contact Forms] Translation won't work.’ is closed to new replies.