Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated country names are not supported #12

Open
MissVeronica opened this issue Nov 3, 2022 · 0 comments
Open

Translated country names are not supported #12

MissVeronica opened this issue Nov 3, 2022 · 0 comments

Comments

@MissVeronica
Copy link
Contributor

MissVeronica commented Nov 3, 2022

Plugin: "Displays Country Flag to a Profile & Member Directory"
https://github.com/ultimatemember/Extended/tree/main/um-country-flag

Sites with another language than English and when translated country names differ from English country names there are no flags displayed. This occurs because the predefined country names from UM()->builtin()->get( 'countries' ) are translated and the UM field country is always returned in English from um_user('country')

Solution replace line 44 with this code and update the plugin version number:

$user_country = __( um_user( 'country' ), 'ultimate-member' ); // Get the users country translated

UM Support Forum issue with another quick fix replacing with array of English country names:
https://wordpress.org/support/topic/profile-data-issue-again-with-ml-version/page/3/#post-16158099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants