Title: Visual Form Builder: localization problem
Last modified: August 20, 2016

---

# Visual Form Builder: localization problem

 *  [HiFly](https://wordpress.org/support/users/hifly/)
 * (@hifly)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/)
 * Hi,
    First of all thanks for this fine and useful plugin. It was very simple 
   to get in creating forms using it. I’ve created a test form in a few minutes!:).
   Nice! However I’m in stuck with plugin localization. It seems to be the plugin
   untranslatable using neither PoEdit, nor CodeStyle Localisation plugin (this 
   one even cannot detect Visual Form Builder among my other plugins). As we need
   forms to be published in two languages (English and Lithuanian), translation 
   of texts visable on front-end is essential. And…it is very urgent for us. Unless
   I solve the problem today/tommorow, I’ll be constrained to change this perfect
   thing to any other localizable one. I would be glad and thankful getting an advise
   or some help.

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

 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238571)
 * I’m aware of encoding and localization issues. The next version will try to solve
   the encoding issues, but localization will take a little more time.
 * The next version is being planned for release next week.
 *  Thread Starter [HiFly](https://wordpress.org/support/users/hifly/)
 * (@hifly)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238596)
 * Thanks, Mmuro, for your answer. I’ll be waiting lot for next version. Could I
   hope to be informed of a new release with localization support? (*pot or *po 
   files are requisite). Good luck in optimization!
 *  [Diane Bourque](https://wordpress.org/support/users/dianebourque/)
 * (@dianebourque)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238642)
 * I’m also waiting for localization.
 * I need to use the forms in French and I can’t seem to be able to translate text
   like “Please enter a valid email address” or “This field is required.” This is
   annoying…
 * I’ll subscribe to this topic hoping that you’ll find time to address this.
 * The form is available here:
    [http://dianebourque.com/contact/](http://dianebourque.com/contact/)
 * Good luck MM!
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238646)
 * If you are looking to translate the messages on the front-end form, not the admin
   stuff, that’s something you will have to do.
 * Here is an example of how to change the default error messages for the jQuery
   Form Validation:
 * In your theme folder, create a JavaScript file. In this example, I’m using myjs.
   js. Add the following code to it and customize the language to what you need:
 *     ```
       jQuery(document).ready(function($) {
       	$.extend($.validator.messages, {
       		required: "Eingabe nötig",
       		email: "Bitte eine gültige E-Mail-Adresse eingeben"
       	});
       });
       ```
   
 * Now, in your functions.php file, add the following piece of code:
    `wp_enqueue_script('
   my-visual-form-builder-validation', get_bloginfo( 'template_url' ) . '/myjs.js',
   array( 'jquery', 'jquery-form-validation' ), '', true );`
 * If you wish to change more of the jQuery error messages, please refer to the 
   [API documentation](http://docs.jquery.com/Plugins/Validation/Validator#Plugin_methods)
   or [this topic on StackOverflow on how to change the default error messages](http://stackoverflow.com/questions/2457032/jquery-validation-change-default-error-message).
 *  Thread Starter [HiFly](https://wordpress.org/support/users/hifly/)
 * (@hifly)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238647)
 * Hi, MMuro,
    First of all we certainly need front-end translations. The Admin 
   panel could be left as it is (EN) for a while. Thanks for your advice. It’s quite
   sophisticated to localize something for non-developers (which I am) :). And there
   is a question: if your suggested adjustment replaces English translation or it
   works as a switch for different languages? Our site is multilingual, so we will
   use different forms in different languages. The second point: how to get bilingual
   such things as “Submit” button, title “Verification”, other visible texts, which
   are not error messages called by js, but simply embedded in your code. We are
   using qTranslate tool, but its shortcode [:lt]… [:en] doesn’t work with your 
   plugin unlike others. As I like your plug nevertheless, I’ve decided to make 
   bilingual texts and button on the same form, but, you see, it’s not the way to
   solve this problem. So I hope to get good news on release of a new update.
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238648)
 * HiFly, I do plan on making the other text translatable in a future version and
   have made that known several times. It’s coming, I just ask for a little patience.
 * The solution above is to fix Diane’s problem with the jQuery form validation 
   error messages. If you want to use the same solution, feel free. However, I’m
   not sure you how you would go about making it work with several languages on 
   the same blog.
 * You might be able to target the ID of the form and use the same code above. I
   haven’t tested that.
 *  [havemaskwilltravel](https://wordpress.org/support/users/havemaskwilltravel/)
 * (@havemaskwilltravel)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238687)
 * Hi Mmuro, really like your formbuilder a lot. Have been able to customize some
   of the validation messages, but I can’t seem to change the text in the captcha
   fieldset. How do I do that? When do you think a future version will support translation
   of text?
 *  [Carlos Vázquez](https://wordpress.org/support/users/carlos-vzquez/)
 * (@carlos-vzquez)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238710)
 * While the plugin is not updated by mmuro, and for whom the above code has not
   worked, either because of conflicts between jQuery and / or templates, here is
   a _workaround_:
 * In this direction download the JQuery Validator: _[http://bassistance.de/jquery-plugins/jquery-plugin-validation/](http://bassistance.de/jquery-plugins/jquery-plugin-validation/)_.
   Click on the link “download” and save the zip file on your pc. Open the file _**
   jquery.validate.js**_ or _**jquery.validate.min.js**_ in a text editor.
 * Look for the text `messages: required:" This field is required.` At line 267 
   in the case of _jquery.validate.js_ or line 20 in the case of _jquery.validate.
   min.js_ _(You can use any . The Jquery.validate.min.js is compressed and takes
   up less Kb)_
 * In the downloaded zip file are translations of 41 languages, in a directory called“
   localization”.
 * Open the file that corresponds to your language with a text editor and copy the
   text that is between the curly braces {} and replace the text with the English
   language in the Jquery.validate you have chosen above.
 * Once done, upload to the server the modified file in your theme directory or 
   wherever you want.
 * Now we must choose between two options:
 * **1 –** Modify the code in visual-form-builder.php. _(This option has the advantage
   that the load is done via the plugin and the disadvantage that in an upcoming
   changes will be lost)_
 * Open the Visual-form-builder.php file and replace the url [http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js](http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js)
   on lines 321 and 331.
 * Looks like this: **wp_enqueue_script (‘jquery-form-validation “,” h t t p://www.
   yoursite.com/wp-content/themes/yourtheme/jquery.validate.min.js’, array (‘jquery’),”,
   true);**
 * **2 –** Open your _functions.php_ file in your theme where or create a new one.
   Copied to the last line before **?>** The above code **wp_enqueue_script (‘jquery-
   form-validation “,” h t t p://www.yoursite.com/wp-content/themes/yourtheme/jquery.
   validate.min.js’ array (‘jquery’),”, true);** _(This method reloads the script,
   but not affected by a new update)_
 * This is a temporary solution and we are limited to a single language, but is 
   simple and useful as the plugin is not updated.
 * Sorry for my English. I hope I have helped you. For me it works well: [http://femcor.net/seguro-de-automoviles-solicitud/](http://femcor.net/seguro-de-automoviles-solicitud/)
 *  Plugin Author [Matthew Muro](https://wordpress.org/support/users/mmuro/)
 * (@mmuro)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238711)
 * Carlos, editing the source should always be avoided. [My solution above](http://wordpress.org/support/topic/visual-form-builder-localization-problem?replies=8#post-2296212)
   is what you need to be doing.
 *  [Carlos Vázquez](https://wordpress.org/support/users/carlos-vzquez/)
 * (@carlos-vzquez)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238712)
 * I know, and this is the solution 2, which does not touch the source. As I said
   earlier was temporary. It’s a little frustrating that a great script can not 
   be translated in a way easier.
    Yesterday I was reviewing how to do it with jQuery,
   even using several possibilities with the jQuery.noConflict (), but I not found
   the solution. I am using the framework presswork and no way to run the plugin
   you offer to change the language.
 * When I add the plugin (jQuery(document).ready(function($)…), to submit validation
   is ignored. I have tried in many ways and with the template parent and child,
   and no way.
 * I will continue investigating to try to apply it.
 *  [BojanGl](https://wordpress.org/support/users/bojangl/)
 * (@bojangl)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238714)
 * If you want to use language files you have at first place to rename folder “langauges”
   to “languages” and after that to add function to your functions.php
 *     ```
       function visual_form_builder_init() {
         load_plugin_textdomain( 'visual-form-builder', false , 'visual-form-builder/languages' );
       }
       add_action('init', 'visual_form_builder_init');
       ```
   
 * After that you can use language files(visual-form-builder-de_DE.po) and update
   plugin without problems.
 * Pozdrav
 *  [manyakama](https://wordpress.org/support/users/manyakama/)
 * (@manyakama)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238731)
 * Matthew!
 * I managed to translate a plugin to hungraian, but downmost in the verification
   box in the transleted text the accentuated letter. How can I fix it?
 * The second problem is also in the verification box: the title of the box is “
   Verification” and I don’t find it in anywhere. In wich file can I find it and
   translate??
 *  [ivank123](https://wordpress.org/support/users/ivank123/)
 * (@ivank123)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238732)
 * Hi there.
    I’ve found the file visual-form-builder.pot so I decided to translate
   this plugin to spanish. But after generating and uploading .po and .mo files 
   nothing changed. I also added the lines to functions.php suggested by BojanGl
   above, but nothing. Any idea of what should I do to make it work?

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

The topic ‘Visual Form Builder: localization problem’ is closed to new replies.

 * ![](https://ps.w.org/visual-form-builder/assets/icon-256x256.png?rev=1205840)
 * [Visual Form Builder](https://wordpress.org/plugins/visual-form-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-form-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-form-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-form-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-form-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-form-builder/reviews/)

 * 13 replies
 * 8 participants
 * Last reply from: [ivank123](https://wordpress.org/support/users/ivank123/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/visual-form-builder-localization-problem/#post-2238732)
 * Status: not resolved