• Resolved leandrinholemos

    (@leandrinholemos)


    Olá!

    Fiz a tradu??o de alguns termos nos arquivos woocommerce.po e .mo na minha lingua -pt_BR. Mas todo dia, ele amanhece com a tradu??o original sem as minhas altera??es. N?o utilizo plugin de cache, nada parecido.

    Recentemente inseri o codigo no tema filho, no function.php:

    // traducao permanente woocommerce //
    add_action( ‘plugins_loaded’, ‘load_custom_plugin_translation_file’ );
    function load_custom_plugin_translation_file() {
    $locale = apply_filters( ‘plugin_locale’, get_locale(), ‘woocommerce’ );
    load_textdomain( ‘woocommerce’, WP_LANG_DIR . ‘wp-content/languages/plugins/woocommerce-pt_BR.mo’ . $locale . ‘.mo’ );
    }

    e mesmo assim, todo dia amanhece com as tradu??es originais sem as minhas altera??es.

    Alguém tem o mesmo problema?

    Obrigado

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @leandrinholemos I used Google Translate to understand your message in English:

    I translated some terms into the woocommerce.po and .mo files in my language. But every day, it dawns with the original translation without my changes. I don’t use cache plugin, nothing like that.

    From what I understand, it sounds like you are translating certain strings of text in WooCommerce, but they revert back to the original text – erasing your translations. Did I get that correctly?

    I’m wondering what method did you use to make those translations. I’d usually recommend using a translation plugin, like Loco Translate. That will help you change the text you want, and it will be update proof. So that, even if WooCommerce is updated, the translations won’t be erased.

    Thread Starter leandrinholemos

    (@leandrinholemos)

    ola!

    Eu traduzo os arquivos woocommerce.po e woocommerce.mo no software poedit. E todo dia a todo dia a tradu??o volta ao normal. Na verdade, testei novamente e logo após 01 hora, a tradu??o volta para o original. Vou testar a ferramenta Loco Translate e fazer o teste.

    Breve volto a dar um parecer aqui.

    Desde já, muito obrigado.

    Thread Starter leandrinholemos

    (@leandrinholemos)

    Plugin Loco Translate instaldo, configurado e testado. O site está funcionando corretamente agora.

    Obrigado pela ajuda.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Loco Translate plugin installed, configured and tested. The site is working correctly now.

    Thank you for your help.

    I’m glad to hear that solved the issues you were having! Thanks for updating the thread to let us now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tradu??o personalizada expira todo dia’ is closed to new replies.