Support » Plugin: Visual Form Builder » [Plugin: Visual Form Builder] Localization of address block

  • Resolved wp_hela



    a great piece of work you did.

    Do you think you could change these lines in the address block (around line 2244 in visual-form-builder.php) to make these labels available for localization with Poedit or others?

    <label for="' . $id_attr . '-address">' . __( 'Address' , 'visual-form-builder') . '</label>
    <label for="' . $id_attr . '-address-2">' . __( 'Address Line 2' , 'visual-form-builder') . '</label>
    <label for="' . $id_attr . '-city">' . __( 'City' , 'visual-form-builder') . '</label>
    <label for="' . $id_attr . '-state">' . __( 'State / Province / Region' , 'visual-form-builder') . '</label>
    <label for="' . $id_attr . '-zip">' . __( 'Postal / Zip Code' , 'visual-form-builder') . '</label>
    <label for="' . $id_attr . '-country">' . __( 'Country' , 'visual-form-builder') . '</label>

    Regards from German speaking Austria 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Matthew Muro


    This has already been localized in the Pro version, I just haven’t had a chance to work on the free version.



    I see 😉

    Is there a german .po File in the pro version or do I have to translate again?

    Plugin Author Matthew Muro


    There’s not an existing German translation in the Pro version, but adding those translation files is something I’d love to do.


    I purchased the Pro Version.

    I took the visual-form-builder-pro.pot template from the languages directory.

    I made my visual-form-builder-pro-de_DE.po and with POEdit.

    Unfortunately it seems. as the .po/.mo is ignored by the Pro version.

    Any idea?

    Ok, I found the problem … the multi language plugin qTranslate interferes with Visual Form Builder.

    Is there a solution for this problem?

    These lines do the trick:

    function visual_form_builder_init() {
      load_plugin_textdomain( 'visual-form-builder-pro', false , 'visual-form-builder-pro/languages' );
    add_action('init', 'visual_form_builder_init');

    Hmmm … seems I’m talking to myself here *gg*

    Hope this helps someone with the same problems 😉

    I also have qTranslate but the above code doesn’t work for me.

    The only hack that helped in my case is to insert the new method in class Visual_Form_Builder (in visual-form-builder.php file):

    public function localize_vfb() {
                     $plugin_dir = basename(dirname(__FILE__));
                     load_plugin_textdomain( 'visual-form-builder', false, $plugin_dir. '/languages/' );

    and call it in function __construct():

    add_action('plugins_loaded', array( &$this, 'localize_vfb' ));

    My attempts to resolve this through functions.php file didn’t succeed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Visual Form Builder] Localization of address block’ is closed to new replies.