• Resolved John Quail

    (@johnquail)


    BUG: República Dominicana and Venezuela flags are not showing up on user profiles on a Spanish website. It seems it has something to do with recent changes in the Spanish translations of those countries. (I’m using the Flags in User Profiles Extension).

    ALSO: Venezuela’s name in English and Spanish should be just “Venezuela”. For some reason the plugin states it as “Bolivarian Republic of Venezuela” and “República Bolivariana de Venezuela”. For other countries the full official names of the countries, like “Plurinational State of Bolivia” or “Argentinian Republic” are not used. Not sure why it’s being used for Venezuela.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @johnquail

    Please create the issue here https://github.com/ultimatemember/Extended because the functionality you asked about isn’t related to build-in functionality of Ultimate Member plugin.?

    Let me know if you have other questions,

    Best Regards!

    Thread Starter John Quail

    (@johnquail)

    I’ll do, but it seems the second issue I mentioned relates to the plugin, not the extension. The name of the country Venezuela is wrong.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @johnquail

    I checked and found that “Venezuela – officially the Bolivarian Republic of Venezuela” since 1999. If you have actually verified data – we will change the name of this country.

    Regards.

    @johnquail

    Use the “Say What?” plugin with text domain ultimate-member
    to change the country name.

    Original string: Venezuela, Bolivarian Republic of
    Text domain: ultimate-member
    Replacement string: Venezuela

    https://www.ads-software.com/plugins/say-what/

    Thread Starter John Quail

    (@johnquail)

    The issue is that the official name should not be used, because you’re not using the official name for any other country. For example, you’re using “United Kingdom” and not “United Kingdom of Great Britain and Northern Ireland”. You’re using Bolivia, and not “Plurinational State of Bolivia”. You’re using Chile and not “Republic of Chile”. You’re using “Argentina” and not “Argentine Republic”. Should I go on?

    Official names are rarely used. They’re not used in maps or the news… or web forms and plugins.

    Thread Starter John Quail

    (@johnquail)

    Some more examples just in case: You have “China” in the plugin, you don’t have “People’s Republic of China”. You have “Iran”, you don’t have “Islamic Republic of Iran”. You have “India”, you don’t have “Republic of India”. You have “Australia”, you don’t have “Commonwealth of Australia”. I hope this will suffice.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @johnquail

    Thank you, we will do research about counties name.

    Now you could use recommendation by @missveronicatv and try to use plugin for changing this name.

    Regards.

    @johnquail
    @andrewshu

    Here you will find the ISO Standard Country Names:

    https://www.iso.org/obp/ui/#search

    and all details about Venezuela here:

    https://www.iso.org/obp/ui/#iso:code:3166:VE

    Thread Starter John Quail

    (@johnquail)

    @missveronicatv

    In most cases, and for the sake of simplicity, the common name of a country (and not the ISO one) should be used. In most cases, the common name is better recognized or simply easier to fit or find than the official country name.

    The official name of the United Kingdom according to ISO is “United Kingdom of Great Britain and Norther Ireland” but no one uses that because it’s long and unnecessary and no one calls the country that. Same applies to Venezuela.

    Thread Starter John Quail

    (@johnquail)

    @andrewshu Thank you. I’ve also noticed that in the country dropdown in Spanish, the countries names are not in alphabetical order. So, “Espa?a” doesn’t show up in the “E” but among the countries that begin with “S”, because the name in English is “Spain”. I’d be very grateful if you could fix that too.

    @johnquail

    You can try this code snippet for sorting country names dropdown in local language.

    add_filter( 'um_select_dropdown_dynamic_options_country', 'um_field_value_country_sort', 10, 1 );
    
    function um_field_value_country_sort( $options ) {
    
        $countries = array();
        foreach ( $options as $option ) {
            $countries[$option] = __( $option, 'ultimate-member' );
        }
        asort( $countries );
        $options = array_keys( $countries );
    
        return $options;
    }

    Add this code snippet to your active theme/child-theme’s functions.php file
    or use the “Code Snippets” plugin.

    https://www.ads-software.com/plugins/code-snippets/

    @johnquail

    About the missing flags have you seen this issue

    https://github.com/ultimatemember/Extended/issues/12

    Plugin Support andrewshu

    (@andrewshu)

    Hi @johnquail

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Bug: Rep Dominicana and Venezuela flags not showing up’ is closed to new replies.