Viewing 1 replies (of 1 total)
  • Plugin Author anmari

    (@anmari)

    HI Martin,

    Ideally the plugin you are using to do the country thing would allow you to have translations for the country text.

    Presumably the correct Brazilian version of the country names should be shown at data entry time too ? (which my plugin has nothing to do with)

    If the plugin doesn’t do translation you could consider making a custom version (and offering that back to the original developer, or ask them to do it), adding the ability to show a translated country text (it’s fairly easy – replace the text with __(thetext,plugin_text_domain)
    https://wpseek.com/function/__/
    and load the plugin textdomain
    https://codex.wordpress.org/I18n_for_WordPress_Developers#Loading_a_Text_Domain

    That would allow multi lingual use of that plugin.

    An alternate ‘dirty’ way would be just to change the country text directly (assuming it’s a single language site) in the plugin creating the data (and rename the plugin so it is not overwritten with an update.

    Failing all of the above you can format the values and do the translations at output time in this plugin https://wpusersplugin.com/2645/format-any-field-any-way-you-wish/
    Of course that only affects the visible output in my plugin – the data entry side cannot obviously be influenced by my plugin.

    hope that helps

Viewing 1 replies (of 1 total)

The topic ‘Tranlate Countries List’ is closed to new replies.