How to translate NinjaForms labels

NinjaForms is already translated to several languages, but as soon as you save the message labels your entries are saved as static text.


WPML String Translation

I tried to translate the labels with WPMLs string translation feature. WPML finds the labels, allows translation, but doesn’t display the changes in frontend.

I had a look at the NinjaForms source code and found a general flexible solution.

NinjaForms Filters

NinjaForms uses filters for each of the labels so we can override every field value in our code and of course allow the values to be translated.

To even simplify this step I don’t use own translations but the contained translations from NinjaForms.  For future projects I’ll just copy these lines to the functions file and my labels are already translated to all available languages.


6 thoughts on “How to translate NinjaForms labels”

  1. Hi Hannes
    I’m quite new to WP & programming and all that .. I added your commands into functions.php of my child theme, but it changes nothing on the interface – i don’t see where I can translate texts (I have a bi-lang website .and would like to translate especially the Form Title & the Send button .. do you know what I’m doing wrong? Thnx & have a nice weekend!

    1. Hey Stela,
      Just create one form for each language. In NinjaForms THREE you can customize all these text for each form in the display settings.
      best regards, Hannes

Leave a Reply

Your email address will not be published. Required fields are marked *