• Resolved jnz31

    (@jnz31)


    hi and thanks for this tool. works fine on my end.
    i have one question regarding language: the wp installation is set to german, a lot of content on the site is, but in the area, that is using the frontend uploader, the site is in english. i tried to find my way to the error messages (please fill in required field xy) but had no luck.
    how can i modify those messages..?
    thanks

    https://wordpress.org/plugins/frontend-uploader/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rinat

    (@rinatkhaziev)

    Hmm, I can’t reproduce it. This is how it looks like to me:
    http://cl.ly/image/111K1X033x3j

    Some of the strings are missing, if you want to help with translation please let me know.

    Thread Starter jnz31

    (@jnz31)

    hi rinat

    i want to modify the strings. like i said, the site is multilingual, but i dont want this tool to operate multilingual, it should run english only.

    i can help to translate, no problem.

    Plugin Author Rinat

    (@rinatkhaziev)

    Oh I see. There’s a couple of ways around, first would be to filter plugin locale value like this:

    add_filter( 'plugin_locale', 'my_override_fu_locale', 10, 2 );
    function my_override_fu_locale( $locale, $domain ) {
    	// Return global WPLANG locale for any other plugin
    	if ( 'frontend-uploader' !== $domain )
    		return $locale;
    
    	// Return English locale for Frontend Uploader
    	return 'en_US';
    }

    Put that code in functions.php of your theme. This is untested and might conflict with other plugins (let me know if that’s the case).

    Other option would be deleting de_DE files from languages folder in the plugin folder. Obviously this option is less than optimal because you’ll have to delete them each time the plugin is updated.

    Thread Starter jnz31

    (@jnz31)

    yo.
    that didnt do the trick, so i tried around and finally found the snippet. its in the jquery.validation localization.

    guess this feature depends on the language, that is definded in wp-config.

    thanks for the help.
    best
    jens

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘error messages’ is closed to new replies.