Translate Download Manager Free – posible solution

Viewing 2 posts - 1 through 2 (of 2 total)
#182675

Nanosensores Idgen
Participant

There is no way to translate the plugin, some text strings are not translated, I tried it manually and with loco translate.

One solution that I found is to use a function in functions.php, it is not the best way but it worked for me, the page where I found the code is this: https://www.webempresa.com/blog/traducir-o-reemplazar-textos-en-wordpress-a-traves-de-tu-function-php.html#nbsp_Modificar_varios_textos_al_mismo_tiempo

Below I leave the code with translation for Spanish, the code has to be in functions.php

function change_multiple_texts( $translated ) {
    $text = array(
        'Logout' ► 'Salir',
        'Last' ► 'Últimas',
        'You are already logged in.' ► 'Ya estás logueado',
        'Password' ► 'Contraseña',
        'Forgot Contraseña?' ► 'Olvidaste tu Contraseña?',
        'Enter' ► 'Ingresar',
        'Search' ► 'Buscar',
        'Username' ► 'Nombre de usuario',
        'Remember Me' ► 'Recordarme',
        'Welcome' ► 'Bienvenido/a',
        'My Account' ► 'Mi Cuenta',
        "Don't have an account yet?" ► '¿Aún no tienes una cuenta?',
        'Descarga History' ► 'Historial de Descarga',
        'Register Now' ► 'Registrate Ahora',
        'User Level' ► 'Rol de Usuario',
        'Subscriber' ► 'Suscriptor',
        'Total Downloads' ► 'Descargas Totales',
        "Today's Download" ► 'Descargas de hoy',
        'Package Name' ► 'Nombre del paquete',
        'Download Time' ► 'Fecha de descarga',
        'Downloads are shared with you' ► 'Descarga/as compartidas contigo',
        'Title' ► 'Título',
        'Mostrar Descargas per page' ► 'Mostrar descargas por página',
        'File Size' ► 'Tamaño de archivo',
        'Download' ► 'Descarga',
        'Downloads' ► 'Descargas',
        'Showing' ► 'Demostración',
        'Display' ► 'Mostrar',
        'Previous' ► 'Previo',
        'Next' ► 'Siguiente',
        'New Contraseña:' ► 'Nueva Contraseña:',
        'Save Changes' ► 'Guardar Cambios',
        'About Me:' ► 'Acerca de mi:',
        'Update Contraseña' ► 'Actualizar Contraseña',
        'Mostrar name:' ► 'Mostrar nombre:',
        'Basic Profile' ► 'Perfíl Básico',
        "Keep empty if you don't want to change old Contraseña" ► 'Mantener vacío si no desea cambiar la antigua Contraseña',

    );
    $translated = str_ireplace( array_keys( $text ), $text, $translated );
    return $translated;
}
add_filter( 'gettext', 'change_multiple_texts', 20 );
#182711

Tanvir
Spectator

Hello,

Thanks for contacting us.

If you face issue translating these strings with loco translate, I would suggest to send related screenshots of the area where the strings are not found. You can use https://prnt.sc/ for screenshot those.
We will try to update wpdm by fixing those translation issues.

Regards
Tanvir

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Translate Download Manager Free – posible solution’ is closed to new replies.