Support » Plugin: WCAG 2.0 form fields for Gravity Forms » Translation not supported

  • shadowshades

    (@shadowshades)


    Hello,
    I’ve made translation files for french language. You can find it here :
    https://www.dropbox.com/sh/odvueg4kaaib8nu/AAAZ0gR8jWrpiMshWKqq4qjha?dl=0

    Strangly, my strings where always used in french, even when I was on the site in English. By adding the load_plugin_textdomain in the ‘init’ action, this fixes the problem :

    /**
     * Load plugin textdomain.
     */
    add_action( 'init', 'gf_wcag_load_textdomain' );
    function gf_wcag_load_textdomain() {
    	load_plugin_textdomain( 'gravity-forms-wcag-20-form-fields', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
    }

    It seems to be a best practice.
    Can you use this in a future update?

    Thank you!

  • The topic ‘Translation not supported’ is closed to new replies.