[Bug] Email’s language depend on Admin’s setting preferences
-
Hi Support.
I got weird behavior. My client’s website is Thai language as default setting.
There are admin 1 who setup his language to English. And
admin 2 who setup his language to Thai (Default site)When admin 1 do some action on orders that sending email. ex: processing, completed, etc. Customer will get English language email.
When admin 2 do some action on orders that sending email. ex: processing, completed, etc. Customer will get Thai language email.
What I expected. Customer should get Thai language email which is the default site’s setting.
Thank you
-
Hi @fourkosi sorry to hear about the trouble. I saw a similar problem last week on a site using WPML to show different languages – is your site using that too? If so please reach out to WPML support for assistance, I believe they have a solution.
we use Loco Translate Plugin to show different languages
This is what Loco Plugin Author’s replied.
https://www.ads-software.com/support/topic/bug-emails-language-depend-on-admins-setting-preferences-2/Loco Translate does not control, or interfere with the language setting returned from get_locale or get_user_locale.
It stands to reason that if you’re logged into the admin area, translations according to the current user setting would be used. WooCommerce would have to override this to send a customer an email in their language while someone else is logged in. Such a function has nothing to do with my plugin which simply saves MO files to disk.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
@kbassart Hey Support,
We haven’t heard from you guys in a while too. This problem does NOT fix yet. Please take a look what @timwhitlock mentioned about.Hi there,
Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.### WordPress Environment ### WordPress address (URL): https://www.tpabook.com Site address (URL): https://www.tpabook.com WC Version: 3.7.1 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: ? 5.2.4 - There is a newer version of WordPress available (5.3) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: th External object cache: – ### Server Environment ### Server Info: Apache/2 PHP Version: 7.2.0 PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.19.7 NSS/3.27.1 SUHOSIN Installed: – MySQL Version: ? 5.5.31 - We recommend a minimum MySQL version of 5.6. See: WordPress requirements Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.7.1 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 361.24MB Database Data Size: 250.54MB Database Index Size: 110.70MB wp_woocommerce_sessions: Data: 20.05MB + Index: 0.19MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 4.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 16.55MB + Index: 14.89MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.38MB + Index: 0.38MB + Engine InnoDB wp_comments: Data: 20.55MB + Index: 11.06MB + Engine InnoDB wp_ewwwio_images: Data: 3.52MB + Index: 1.78MB + Engine InnoDB wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 4.38MB + Index: 0.19MB + Engine InnoDB wp_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_imports: Data: 0.20MB + Index: 0.00MB + Engine InnoDB wp_pmxi_posts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_pmxi_templates: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 70.56MB + Index: 34.94MB + Engine InnoDB wp_posts: Data: 56.09MB + Index: 10.83MB + Engine InnoDB wp_redirection_404: Data: 4.02MB + Index: 9.22MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_social_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Data: 0.19MB + Index: 0.20MB + Engine InnoDB wp_terms: Data: 0.47MB + Index: 0.59MB + Engine InnoDB wp_term_relationships: Data: 1.44MB + Index: 0.30MB + Engine InnoDB wp_term_taxonomy: Data: 0.17MB + Index: 0.20MB + Engine InnoDB wp_usermeta: Data: 33.36MB + Index: 22.02MB + Engine InnoDB wp_users: Data: 1.50MB + Index: 0.84MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.11MB + Index: 0.16MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBlockedIPLog: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfConfig: Data: 1.38MB + Index: 0.00MB + Engine InnoDB wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileMods: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wp_wfHits: Data: 1.02MB + Index: 0.25MB + Engine InnoDB wp_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfIssues: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_wfKnownFileList: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLogins: Data: 0.14MB + Index: 0.03MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfNotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfStatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wfTrafficRates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_ywpar_points_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_seo_links: Data: 0.28MB + Index: 0.08MB + Engine InnoDB wp_yoast_seo_meta: Data: 3.47MB + Index: 0.00MB + Engine InnoDB ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (31) ### Admin Menu Editor: by Janis Elsts – 1.9.2 Async JavaScript: by Frank Goossens (futtta) – 2.19.07.14 Better Font Awesome: by Mickey Kay – 1.7.1 Classic Editor: by WordPress Contributors – 1.5 Contact Form 7: by Takayuki Miyoshi – 5.1.5 ELEX Dynamic?Pricing and Discounts for WooCommerce: by ELEX – 3.6.3 Enhanced E-commerce for Woocommerce store: by Tatvic – 2.2.1 EWWW Image Optimizer: by Exactly WWW – 5.1.2 Google XML Sitemaps: by Arne Brachhold – 4.1.0 Kadence WooCommerce Email Designer: by Kadence WP – 1.3.5 Loco Translate: by Tim Whitlock – 2.3.1 PixelYourSite: by PixelYourSite – 7.1.3 Post SMTP: by Yehuda Hassine – 2.0.6 Redirection: by John Godley – 4.4.2 Seed Confirm Pro: by SeedThemes – 1.5.2 – Not tested with the active version of WooCommerce Seed Fonts: by SeedThemes – 2.1.1 Seed Social: by SeedThemes – 1.4.0 Shortcoder: by Aakash Chakravarthy – 4.6 User Role Editor: by Vladimir Garagulya – 4.52.1 WC Kasikorn Gateway: by Watcharamet Chitsanukupt Srinethirothai – 3.13 – Not tested with the active version of WooCommerce WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.3.2.2 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.0 WooCommerce Checkout Manager: by QuadLayers – 4.7.3 – Not tested with the active version of WooCommerce WooCommerce Conditional Shipping and Payments: by SomewhereWarm – 1.5.9 WooCommerce: by Automattic – 3.7.1 – 3.8.0 is available WooSidebars: by WooCommerce – 1.4.5 Wordfence Security: by Wordfence – 7.4.1 Yoast SEO: by Team Yoast – 12.5 WP Extended Search: by 5um17 – 1.3 WP Fastest Cache: by Emre Vona – 0.8.9.9 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.6.11 – Not tested with the active version of WooCommerce ### Inactive Plugins (3) ### Autoptimize: by Frank Goossens (futtta) – 2.5.1 WP Crontrol: by John Blackbourn & crontributors – 1.7.1 YITH WooCommerce Points and Rewards: by YITH – 1.3.7 ### Settings ### API Enabled: ? Force SSL: – Currency: THB (???) Currency Position: right_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #62 - /shop/ Cart: #61 - /cart/ Checkout: #60 - /checkout/ My account: #59 - /my-account/ Terms and conditions: #682 - /terms-and-condition/ ### Theme ### Name: Flatsome Child Version: 3.0 Author URL: Child Theme: ? Parent Theme Name: Flatsome Parent Theme Version: 3.9.0 Parent Theme Author URL: https://www.uxthemes.com/ WooCommerce Support: ? ### Templates ### Overrides: flatsome/woocommerce/archive-product.php flatsome/woocommerce/cart/cart-empty.php flatsome/woocommerce/cart/cart-shipping.php flatsome-child/woocommerce/cart/cart.php flatsome/woocommerce/checkout/form-checkout.php flatsome/woocommerce/checkout/form-coupon.php flatsome/woocommerce/checkout/terms.php flatsome-child/woocommerce/checkout/thankyou.php flatsome/woocommerce/content-product.php flatsome/woocommerce/content-product_cat.php flatsome/woocommerce/content-single-product.php flatsome/woocommerce/content-widget-product.php flatsome-child/woocommerce/emails/customer-note.php flatsome/woocommerce/global/breadcrumb.php flatsome/woocommerce/global/quantity-input.php flatsome/woocommerce/global/wrapper-end.php flatsome/woocommerce/global/wrapper-start.php flatsome/woocommerce/loop/loop-end.php flatsome/woocommerce/loop/loop-start.php flatsome/woocommerce/loop/pagination.php flatsome/woocommerce/loop/result-count.php flatsome/woocommerce/loop/sale-flash.php flatsome/woocommerce/myaccount/form-login.php flatsome/woocommerce/myaccount/navigation.php flatsome-child/woocommerce/myaccount/view-order.php flatsome/woocommerce/notices/error.php flatsome/woocommerce/notices/notice.php flatsome/woocommerce/notices/success.php flatsome/woocommerce/product-searchform.php flatsome/woocommerce/single-product/photoswipe.php flatsome/woocommerce/single-product/price.php flatsome/woocommerce/single-product/product-image.php flatsome/woocommerce/single-product/product-thumbnails.php flatsome/woocommerce/single-product/rating.php flatsome/woocommerce/single-product/related.php flatsome/woocommerce/single-product/review.php flatsome/woocommerce/single-product/sale-flash.php flatsome/woocommerce/single-product/share.php flatsome/woocommerce/single-product/short-description.php flatsome/woocommerce/single-product/tabs/tabs.php flatsome/woocommerce/single-product/title.php flatsome/woocommerce/single-product/up-sells.php flatsome/woocommerce/single-product-reviews.php flatsome/woocommerce/single-product.php ### Action Scheduler ### Complete: 0 Oldest: – Newest: – Pending: 0 Oldest: – Newest: – Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
why am i suddenly getting notifications and emails in foreign language insted of english?
no reply
Hello @kbassart and @stephjacq
I can confirm I have the exact same issue here. When admin is logged in the backend with default English language profile and it sends manually a WC email to a customer (from the order section) the email is being received in English instead of the local set language of the website. When I change my admin profile to the local site’s language, it’s being sent in that language.
We do not use any WPML plugins, everything is original WooCommerce and hardly any 3rd party plugins. I tested below in the default WC storefront theme.
Another additional thing is that Billing Address is untranslatable. See here the Dutch version:
The same string is also problematic in the Order’s My Account section:
Please give us an outcome what to expect here. Do you have any Github pull requests we can follow?
Thanks,
Demian- This reply was modified 4 years, 9 months ago by Demian.
Same issue. Any answers?
@fourkosi have you found a solution?
thanksNo, Still waiting for Author to look at this.
It’s unbelievable that it’s already 4 months from their last feedback.
And also from Woocommerce 3.7.1 until now. ??Some, problem!
Any solution ?
Thanks guys
- The topic ‘[Bug] Email’s language depend on Admin’s setting preferences’ is closed to new replies.