• How do I show the countries list on other languages? I have site on English and Spanish and want to know if I can show the list of the countries in Spanish for the Spanish site.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @mstudioil,

    The places names are internationalized and also already translated into Spanish, therefore, you should see their names correctly either in English or Spanish.

    Thread Starter mstudioIL

    (@mstudioil)

    I just using the something like

    [select your-country data:countries.olympic]

    and it will work for all the countries that translated?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    That’s right! If the countries are already translated, they will be displayed in the locale name, e.g. United States would be displayed as Estados Unidos in Spanish.

    Thread Starter mstudioIL

    (@mstudioil)

    I have “Estados Unidos de América” on the form, is that correct?
    How do I translate the list if it is not translated? I need it in Hebrew.
    Also how do I order the list in Alphabetical order, or move country to higher position?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I have “Estados Unidos de América” on the form, is that correct?

    Yes, it is. Sorry the mix-up! I did not remember by heart how it was translated in Spanish.

    How do I translate the list if it is not translated? I need it in Hebrew.

    My recommendation is to use Loco Translate. This plugin allows you to translate both plugin and themes from your WordPress Dashboard. I did a quick search on Google and find this article that I think explains very well how to use it: https://wpmarmite.com/en/loco-translate/


    Also how do I order the list in Alphabetical order, or move country to higher position?

    You can use this code snippet to sort list items alphabetically:

    /**
     * Listo (Contact Form 7):
     * Sort list items alphabetically
     */
    function wpcf7_listo_lists_sort( $data, $options, $args ) {
    	if ( is_array( $data ) ) {
    		asort( $data );	
    	}
    	return $data;
    }
    add_filter( 'wpcf7_form_tag_data_option', 'wpcf7_listo_lists_sort', 11, 3 );

    Thread Starter mstudioIL

    (@mstudioil)

    Thanks for the answer, I already using Polylang for translation, I don’t want to add extra plugin just for this, if I install it, can I remove it after I translated what I need? Can I make it other way?

    I will check the code you sent me.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for the answer, I already using Polylang for translation, I don’t want to add extra plugin just for this

    Polylang and Loco Translate are different kind of plugins: The first translate your own content, the second the plugins’ strings.

    If I install it, can I remove it after I translated what I need? Can I make it other way?

    This is the easier and faster way I am aware of.

    That said, another way is to send your own translations to the Hebrew translation project on “Translating WordPress” site, here: https://translate.www.ads-software.com/locale/he/default/wp-plugins/listo/

    Please note that you would to wait until the General Translation Editors from the Hebrew locale approve your translations, which can be taking some time, since they have not an active Slack group (see). In addition, you have to reach +90% of the translations, before a language pack is generated.

    That said, you could ask to be a Project Translation Editor (PTE) for this plugin! See: https://make.www.ads-software.com/polyglots/handbook/plugin-theme-authors-guide/pte-request/#plugin-theme-author-translation-review-pte-request

    As mentioned above, if you manage to complete unless 90% of the translations, a language pack for Hebrew will be created, and you would not need any plugin to get the translations, since they will be available on the public www.ads-software.com ecosystem, not only for you, but every WordPress site that is using Loco in Hebrew!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘countries list’ is closed to new replies.