Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    @olidueggelin German is certainly supported! Could you open a topic in the support forums or send us an email at support@wpovernight.com so we can try to resolve any translation issues?

    Thread Starter olidueggelin

    (@olidueggelin)

    @pomegranate : Thank you for your reply!
    I have checked all the translation files and tried with different language settings (de_DE/de_DE_formal/de_CH) but nothing worked. Since I knew, that it WAS working, I simply installed an older version and it worked again!

    SOLVED! Just download the older version: https://downloads.wordpress.org/plugin/woocommerce-pdf-invoices-packing-slips.2.1.0.zip

    Plugin Contributor Ewout

    (@pomegranate)

    Hello! Just for my information: is your site admin in German or is it in English? The plugin follows the following rules:

    When the site is in German and admin is in German:

    • Admin PDF invoices are in German
    • Customer PDF Invoices (from both the backend and the ones sent by email) are in German

    When the site is in German and the admin is in English:

    • Admin invoices are in English (following admin user profile settings)
    • In emails sent to the customer by the admin, PDF Invoices are in German
    • Customer PDF Invoices are in German

    There was an inconsistency in old versions that was causing issues with mixed languages, showing everyting in the WooCommerce backend in the User language except the PDF invoices (settings, pdf, everything). To resolve this we now follow the WooCommerce method and always follow the user profile settings (and still provide the customer with the PDF in the site language!).
    I understand your preference may be different, but in order to prevent conflicts it’s important that we stick to the WooCommerce standards.

    That said, you can still force German for the PDF Invoice plugin, but it requires a filter:

    
    add_filter( 'plugin_locale', function( $locale, $textdomain ){
    	if( $textdomain == 'woocommerce-pdf-invoices-packing-slips' || $textdomain == 'wpo_wcpdf' ) {
    		$locale = 'de_DE';
    	}
    	return $locale;
    }, 999, 2 );
    

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

    Let us know if you need more help with this! I’d appreciate it if you could update your rating if everything works again. Thanks!

    Hey all

    Just chiming in here because I got notified automatically when someone writes de_CH 🙂

    It looks like the plugin is fully set up to be translatable and supports a wide variety of languages already. de_DE is one of them, however the translations are only 73% there. Lots of translations are currently waiting to be approved though, so that is likely to go up soon.

    @olidueggelin Please note that plugin translations are a community effort. Everyone – including yourself – can suggest new translations. These are then reviewed by translation editors from the German polyglots community. Giving a plugin a 2-star review because the community is not actively translating it seems a bit unfair to me. As someone who is not involved with this project, but cares about translations, I hope that you reconsider it 🙂

    Thread Starter olidueggelin

    (@olidueggelin)

    i got that, thanks. but there was no single word in german on the actual backend of the website. despite the fact, that the language file was very well translated. I just tried de_CH, as well as I tried de_DE, and the formal one on wordpress. nothing worked, that’s why I had to install the old version…!

    Unfortunately there are no de_DE (formal) or de_CH translations for the plugin yet, but the de_DE translation of the plugin works fine. I just installed the plugin and it looks like this: https://imgur.com/a/k81jsUJ – almost everything is translated.

    If you’re site language or user language is set to de_CH or de_DE (formal), WordPress doesn’t automatically use de_DE as a fallback in case there are no translations for them. For that, I recommend a plugin like https://de.wordpress.org/plugins/preferred-languages/

    Plugin Contributor Ewout

    (@pomegranate)

    @olidueggelin if I understand correctly the issue is now resolved, I’d appreciate it if you could update your rating, it’s still at 2 stars now. Thanks in advance!

    For anyone else reading this, I’ll summarize:
    1) If the site account is in English (Users > Your Profile > Language), the PDF Invoice will be in English too (as in the case of the original poster: “but there was no single word in german on the actual backend of the website.”). In old versions, this was different (PDF invoice settings would be in the site language regardless of the user profile language) and this caused inconsistencies so we implemented the WooCommerce standard.
    2) If you want your PDF in the site language you can either change your user profile language to the site language, or use a filter:

    
    add_filter( 'plugin_locale', function( $locale, $textdomain ){
    	if( $textdomain == 'woocommerce-pdf-invoices-packing-slips' || $textdomain == 'wpo_wcpdf' ) {
    		$locale = 'de_DE';
    	}
    	return $locale;
    }, 999, 2 );
    

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

    p.s. @swissspidy thanks for chiming in! We do actually support de_DE_formal as well, but in the form of bundled translations in the plugin folder. It looks like there are a lot of de_CH transaltions waiting for approval, would be great if we could get those confirmed!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘no german’ is closed to new replies.