Support » Plugins and Hacks » [Resolved] [Plugin: Ninja Forms Lite] Translation errors in v1.2.9

[Resolved] [Plugin: Ninja Forms Lite] Translation errors in v1.2.9

  • Plugin Contributor daveshine (David Decker)


    Hi there!
    I was excited that you finally added internationalization with v1.2.9 – and that is really important! So, a big “Thank you!” 🙂

    However, there are some errors/typos in the latest version which I found out with testing:

    In file “ninja_forms.php” you have:
    load_plugin_textdomain( 'ninja-forms', false, $plugin_dir );

    it should go this way, otherwise translations will not load:
    load_plugin_textdomain( 'ninja-forms', false, $lang_dir );

    Then in both files “includes/body_settings.php” and “includes/body_subs.php” you have typo errors – you used this (9 times each file!):

    but it should be this way:

    –> This error leads to fatal errors on the forms and settings page!

    Otherwise you have a lot of gettext strings without textdomain – you should always only use “ninja-forms” as this is the one you’ve defined and are loading!

    __( 'Your string', 'ninja-forms' );
    _e( 'Your string', 'ninja-forms' );

    Also please use single quotes for all in all gettext strings – it’s the recommended way!

    Thank you very much!
    -Dave from Germany

    P.S. Currently translating your plugin into German 🙂


Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author James Laws


    Thanks for the updates. When you fat finger and then copy and paste a lot it causes all kinds of chaos. Working on fixing them all as I type this. Which will hopefully not cause additional errors. 🙂

    Plugin Author James Laws


    I actually caught the lang_dir error but totally missed the others. Sigh. Coding in the wee hours…we should stop that. 🙂

    Plugin Contributor daveshine (David Decker)


    Thanx! No problem, James – I know these things myself happening way too often sometimes…

    Thanx for your hard work, Dave 🙂

    Plugin Author James Laws



    All should be corrected in version

    Thanks again for the heads up and for translating it.

    Plugin Author Kevin Stover


    Hey David,

    Thanks for the information and the help with translation. If you’re ok with it, we’d love to include your translation in the ninja-forms package. When you get finished, let me know via email: kevin [a t] wpninjas.net.



    Plugin Contributor daveshine (David Decker)


    Hi James & Kevin!

    Thanx for your superfast update – all ok now, great! 🙂

    Of course I’ll send you my language files, I guess I could finish this weekend 🙂


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Ninja Forms Lite] Translation errors in v1.2.9’ is closed to new replies.