Support » Plugin: User Login History » Translation of acquired data

  • Resolved jonney

    (@ganarukanaru)


    The acquired data is in English, is there any way to translate it into a favorite language?

    Because the client can not read English.

    How to manually create replacement text

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Faiyaz Alam

    (@faiyazalam)

    You can easily translate all the texts used in the plugin.
    For this you have to create mo file for your language.
    Please see the translation section on the plugin description page.

    Thanks 🙂

    • This reply was modified 6 months, 1 week ago by Faiyaz Alam.
    jonney

    (@ganarukanaru)

    I use the Loco translation plug-in, but the output data has no translation.

    
    function change_any_texts($text){
    if (current_user_can('administrator')) {
    	$replace = array(
    

    I’m avoiding it this way.

    Translation of country names etc.

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    Using mo editor like Loco, you can only translate the static text of the plugin.
    You cannot translate the dynamic content like country name, username etc.

    I think that you want to translate the country name using mapping or find-n-replace so you need to check the function:

    File path: user-login-history/trunk/includes/class-faulh-abstract-list-table.php
    public function column_default($item, $column_name) {...}

    I do not recommend to modify the plugin core files.

    • This reply was modified 6 months, 1 week ago by Faiyaz Alam.
    jonney

    (@ganarukanaru)

    Was self resolved. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation of acquired data’ is closed to new replies.