@moacirsantana,
Sorry I do not understand your question.
With this plugin, what you can do, is to save the “locale” of every user.
This is a meta called “locale” that should contain a string like this: es_ES (Spanish of Spain, change this value for the one you need in every user).
I know, I’m talking about the shortcode to be used on the frontend
The language on the frontend is always English, even if the user has its locale set as Spanish/Portuguese.
How to change the language on the frontendfor those users based on their locale?
OK. Please next time try to be more precise. I never thougth you were talking about frontend.
Respect what you are talking, this is not a problem from the plugin, as you can see in the plugin:
<form method="POST" enctype="multipart/form-data" action="" accept-charset="utf-8" class="acui_frontend_form">
<label><?php _e( 'CSV file <span class="description">(required)</span>', 'import-users-from-csv-with-meta' ); ?></label></th>
<input class="acui_frontend_file" type="file" name="uploadfile" id="uploadfile" size="35" class="uploadfile" />
<input class="acui_frontend_submit" type="submit" value="<?php _e( 'Upload and process', 'import-users-from-csv-with-meta' ); ?>"/>
<?php wp_nonce_field( 'codection-security', 'security' ); ?>
</form>
All translatable is translated but the input type file, will be rendered in the language of the browser.
Right, I noticed that everything is translated on the frontend based on the WordPress default language, but I need to translate according to the user’s locale.
You can test it and you will see what I mean. Set your WordPress default language to Spanish, and then create a user with English locale.
Once you log in with this user, the strings will be in Spanish because of the default language, not English (user locale)
That’s what I need, based on the user’s locale.
Sorry this is not a problem from this plugin.
This plugin use the standard i18n and WordPress works in this way: the user’s profile local will only affect the backed; in the frontend, it will always be used the WordPress language.
You can check it for example in the admin bar.
You can create a ticket to WordPress core team if you think it should be changed or you can use some multilanguage plugin to achieve it.