WordPress.org

Ready to get started?Download WordPress

Forums

Frontend Uploader
[resolved] error messages (5 posts)

  1. jnz31
    Member
    Posted 3 months ago #

    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/

  2. Rinat Khaziev
    Member
    Plugin Author

    Posted 3 months ago #

    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.

  3. jnz31
    Member
    Posted 3 months ago #

    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.

  4. Rinat Khaziev
    Member
    Plugin Author

    Posted 3 months ago #

    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.

  5. jnz31
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.