Hi Ewout,
Thank you for your reply again and a great support, I am happy to be helpful and you are welcome to have this information ??
One more thing I forgot is that the back-end also requires attention, so on file ‘qwc-admin.php’ of the “WooCommerce & qTranslate-X” plugin I also added the same list of all the filters to support the multilanguage in admin mode while generating and downloading the invoice file.
There is only one bug which I noticed and still could not work out is that sometimes when admin downloads the PDF manually from admin ‘Orders’ page, the qtranslate-x formatted (as the format is [:en]english string[:de]german string[:]
) values of
- wpo_wcpdf_shop_address
- wpo_wcpdf_shop_name
- wpo_wcpdf_footer
and probably other variables are rewriten back to the single language (plugin removes the shortcodes and leaves only the admin’s requested language when generating the invoice), probably that which was used by the buyier (user) OR the admin (since the admin uses different language than user) I am not sure in which case exactly. I am sure this could be fixed as it is a minor issue, but I do not know yet when it happens exactly.
I will send you an email with updated translation (.po) files and as well the added filters into ‘qwc-front.php’ and ‘qwc-admin.php’ files which were actually nothing special and very simple but I also agree that there is a very simple way to add the qtranslate-x support into upcoming release of your plugin, I only added the temporary solution.
Unfortunately my WooCommerce website is not public yet as there are still some things to work on and it has no English language at the moment as the translations of the content are not made yet by a third party but after it will be on public domain for sure I am willing to share it.
Still a correct way for implementation should be found and some fixes for an admin mode should be done so I am not closing this topic as resolved yet, but it is almost resolved ??
By the way the same is for plugins qTranslate, mqTranslate and all related plugins (like qTML, IM8 qTranslate WooCommerce and few other child plugins) but they are out of date and all who use them gets the message that mqtranslate is not supported anymore and everyone should migrate to qtranslate-x which I believe most of the qTranslate and mqTranslate users have already done or they will be migrating to the qtranslate-x in the nearest future.
Regards
zuyki5