• Resolved dejudicibus

    (@dejudicibus)


    The AVATAR block uses an input field of type “file”, which uses ALWAYS the deault language of browser. Thsi is a problem because it mixes languages when used in multilingual sites. Can you please use the following trick to fix this problem?

    <div>
      <label 
        for="upload_avatar_field_button" 
        class="btn">
        <?php _e("Select Image", 'text-domain'); ?>
      </label>
      <input 
        type="file" 
        id="upload_avatar_field_button"
        name="simple_upload_avatar_field" 
        style="visibility:hidden;">
    </div>

    with

    $("#upload_avatar_field_button").change(function() {
      filename = this.files[0].name;
      // Do what you want
    });
Viewing 1 replies (of 1 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @dejudicibus,

    Thank you for the suggestion. We will make this improvement in the future.

    If you switch to the Media Gallery variant of uploading the avatar this should work correctly as well.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Enable “file” button for translation’ is closed to new replies.