• Resolved StayForLunch

    (@stayforlunch)


    Hi Bas,

    I’m testing your plugin on a local instal at the moment. Congrats and thank you very much for such a plugin and the great features you added!

    I just updated to the last 2.2.2 version and translation files (French in my case) no longer load. Invoice translation is back when I revert to the previous plugin version.

    I would also like to ask you whether it would be possible to add (or how could I make?) the following changes :
    – Is there an update-safe way to override translation? I tried to save my new po/mo files in wp-content/languages/plugins folder, but that didn’t work.
    – Same question for a custom template. Would it be possible to load it from the admin settings? How can I make it update-safe? Alternatively, how can I use a custom template (and .mo file) in a child-theme?
    – Localize date format : day/month text names at the moment are not translatable.
    – Insert customer order-notes (the one we can create from the admin order details)?

    An finally, do you plan to add admin settings and a template so that we could also print out packing slips?

    Thank you,
    SFL

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter StayForLunch

    (@stayforlunch)

    Hi again Bas,

    Sorry I forgot –I have an issue with the header that doesn’t repeat on every page. This was already not working before v2.2.2.
    Did I forget to tick a box somewhere?

    Thanks again,
    SFL

    Plugin Author Bas Elbers

    (@baaaaas)

    I just updated to the last 2.2.2 version and translation files (French in my case) no longer load. Invoice translation is back when I revert to the previous plugin version.

    I will bring out an update to fix this shortly

    I would also like to ask you whether it would be possible to add (or how could I make?) the following changes :
    – Is there an update-safe way to override translation? I tried to save my new po/mo files in wp-content/languages/plugins folder, but that didn’t work.

    You can send me the translation files and I will put them in the updated version.

    – Same question for a custom template. Would it be possible to load it from the admin settings? How can I make it update-safe? Alternatively, how can I use a custom template (and .mo file) in a child-theme?

    This isn’t possible yet and would be a great feature. I will try to add it in the future.

    – Localize date format : day/month text names at the moment are not translatable.

    Will be fixed in the next update.

    – Insert customer order-notes (the one we can create from the admin order details)?

    Will be added in the next update.

    An finally, do you plan to add admin settings and a template so that we could also print out packing slips?

    Yes, but this will take some time to develop.

    Sorry I forgot –I have an issue with the header that doesn’t repeat on every page.

    I’m aware of the problem and will try to fix it asap.

    Thread Starter StayForLunch

    (@stayforlunch)

    Thank you Bas,
    Your reactivity and last update are great!
    As overriding translation, I’m unsure we think about the same thing –I made a small personal change already in the French po/mo file and I’m just looking for a way to keep my change when the plugin is updated. Therefore my question about including it either in a child-theme or the wp-content/languages folder.
    Apart this special case, the FR translation included in the plugin is perfectly fine and doesn’t need to be updated.

    Keeping customizations (.mo file, custom template) safe from plugin updates is in fact the only thing that refrains me using your plugin.

    Thank you again for your great work,
    SFL

    Plugin Author Bas Elbers

    (@baaaaas)

    Try and change the BEWPI_LANG_DIR in file to point to the folder where you’ve placed your customized language file. Create a dir outside of the plugins dir. Best dir is uploads folder.

    Plugin Author Bas Elbers

    (@baaaaas)

    Did it work? Please let me know.

    Thread Starter StayForLunch

    (@stayforlunch)

    Hi Bas,
    My apologies. I was busy with another website.
    I saved my custom be-woocommerce-pdf-invoices-fr_FR.po and .mo files in the wp-content/languages/plugins folder
    I then tried 2 different things. Both are working.
    – Either : Change BEWPI_LANG_DIR (to ‘/languages/plugins’)
    – Or : Simply delete the FR .po and .mo files from the plugin’s lang folder (without changing BEWPI_LANG_DIR). Then my custom translation saved in wp-content/languages/plugin is loaded.

    I’m not sure which one is the most update-safe?

    Plugin Author Bas Elbers

    (@baaaaas)

    Good to hear!
    Doesn’t matter because you will loose the changes after an update. For the next update I will make a filter for it so you won’t have this problem again.
    Would you be so kind to rate the plugin? That would be awesome!

    Thread Starter StayForLunch

    (@stayforlunch)

    Done ??
    Will the filter protect a custom template from update too or is this something different?

    Plugin Author Bas Elbers

    (@baaaaas)

    Thank you very much!
    Yes, you will have to add a function into your themes functions.php to interact with the filter.
    Will let you know. ??

    Plugin Author Bas Elbers

    (@baaaaas)

    Try the new update.
    Changelog

    You can add the following code to your functions.php within your theme and you won’t loose after update.

    add_filter( 'bewpi_lang_dir', 'change_bewpi_lang_dir' );
    function change_bewpi_lang_dir( $lang_dir ) {
        $lang_dir = 'new-path-to-lang-dir';
        return $lang_dir;
    }

    Would you be so kind to rate the plugin? ??

    Thread Starter StayForLunch

    (@stayforlunch)

    Thank you Bas,
    As the changelog however, I am not sure what I am meant to do with BEWPI_TEMPLATES_DIR. Can I use a filter as above to change the dir-path so that my custom invoice template is not lost when updating the plugin?

    ps : I rated your plugin already. All good ??

    Plugin Author Bas Elbers

    (@baaaaas)

    Thanks for the rating! ??
    Yes just add the code to your functions.php file within your theme and you’re good to go. Change new-path-to-lang-dir to your desired path.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Translation issue with v2.2.2 several features questions’ is closed to new replies.