• Resolved danrh14

    (@danrh14)


    Hi I am having problems with the translations, when I update via Loco the changes are only displayed on the administrator side, but when I enter the seller mode in dokan it comes out with another translation.

    https://prntscr.com/22nsbpq

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

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

    (@yordansoares)

    Hello @danrh14,

    Do you have set your admin language based on Site default under Users > Profile > Language? I’m thinking that maybe you have two Spanish locales working in your site, e.g. Spanish (Peru) for the admin user and Spanish (Spain) for your site (you can find this setting under Settings > General > Site Language). If so, it’s possible that you have only updated the Spanish (Peru) translation, and then you’re seeing two translations because our plugin choose the invoice language based on the active user language.

    Anyway, if you only need to update the invoice label, maybe it’s better using this code snippet to do it:

    /**
     * Change the invoice title to 'Etiqueta'
     */
    add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title', 10, 2 );
    function wpo_wcpdf_invoice_title ( $title, $document ) {
    	$title = 'Etiqueta';
    	return $title;
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Let me know what approach you chose! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Language problem’ is closed to new replies.