• Resolved ktakahisa

    (@ktakahisa)


    Hi,

    A few days ago, a client of mine reported that the language of WooCommerce had switched from Japanese to English.
    I confirmed that the dashboard and front-end languages are in English.

    No one made any changes to either WordPress or WooCommerce, and suddenly the language switched.
    Neither the theme nor any other plugins were changed.
    For the client’s convenience, both versions are still out of date, but had been working fine until then.

    The WooCommerce language files was installed correctly. I replaced it with the same version of the language files just to be sure, but the problem was not resolved.

    The WordPress site language was still Japanese. I tried to re-save the settings here too, just to be sure, but the problem did not resolve itself.
    The administrator user language was also still in Japanese, and saving over it had no effect.

    In the System Status of WooCommerce, “Language” is set to “ja”. However, it is not actually displayed in Japanese, but in English.

    How can I get it back to Japanese as it was before?

    Thanks,

    System Report:

    <br>### WordPress Environment ###<br><br>WordPress address (URL): https://www.zen-kyo.or.jp/wordpress<br>Site address (URL): https://www.zen-kyo.or.jp<br>WC Version: 7.8.2<br>REST API Version: ? 7.8.2<br>WC Blocks Version: ? 10.2.4<br>Action Scheduler Version: ? 3.5.4<br>Log Directory Writable: ?<br>WP Version: 6.7<br>WP Multisite: –<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: ja<br>External object cache: –<br><br>### Server Environment ###<br><br>Server Info: Apache<br>PHP Version: 7.3.23<br>PHP Post Max Size: 32 MB<br>PHP Time Limit: 30<br>PHP Max Input Vars: 1000<br>cURL Version: 7.19.7<br>NSS/3.15.3<br><br>SUHOSIN Installed: –<br>MySQL Version: 5.7.14-log<br>Max Upload Size: 512 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ?<br><br>### Database ###<br><br>WC Database Version: 7.8.2<br>WC Database Prefix: wp_<br>Total Database Size: 51.78MB<br>Database Data Size: 40.23MB<br>Database Index Size: 11.55MB<br>wp_woocommerce_sessions: Data: 4.82MB + Index: 0.17MB + Engine MyISAM<br>wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_order_items: Data: 0.50MB + Index: 0.20MB + Engine MyISAM<br>wp_woocommerce_order_itemmeta: Data: 2.59MB + Index: 1.89MB + Engine MyISAM<br>wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_actionscheduler_actions: Data: 0.22MB + Index: 0.13MB + Engine MyISAM<br>wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_actionscheduler_logs: Data: 0.25MB + Index: 0.12MB + Engine MyISAM<br>wp_admin_columns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_cimy_uef_data: Data: 0.74MB + Index: 0.94MB + Engine MyISAM<br>wp_cimy_uef_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_cimy_uef_wp_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_comments: Data: 0.59MB + Index: 0.20MB + Engine MyISAM<br>wp_easymail_recipients: Data: 0.03MB + Index: 0.04MB + Engine MyISAM<br>wp_easymail_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_easymail_subscribers: Data: 0.16MB + Index: 0.09MB + Engine MyISAM<br>wp_easymail_unsubscribed: Data: 0.03MB + Index: 0.04MB + Engine MyISAM<br>wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_options: Data: 2.44MB + Index: 0.07MB + Engine MyISAM<br>wp_postmeta: Data: 7.46MB + Index: 4.09MB + Engine MyISAM<br>wp_posts: Data: 16.90MB + Index: 0.94MB + Engine MyISAM<br>wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_term_relationships: Data: 0.01MB + Index: 0.03MB + Engine MyISAM<br>wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_usermeta: Data: 2.06MB + Index: 1.37MB + Engine MyISAM<br>wp_users: Data: 0.31MB + Index: 0.37MB + Engine MyISAM<br>wp_wc_admin_notes: Data: 0.08MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_customer_lookup: Data: 0.19MB + Index: 0.14MB + Engine MyISAM<br>wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_order_product_lookup: Data: 0.40MB + Index: 0.34MB + Engine MyISAM<br>wp_wc_order_stats: Data: 0.23MB + Index: 0.14MB + Engine MyISAM<br>wp_wc_order_tax_lookup: Data: 0.13MB + Index: 0.14MB + Engine MyISAM<br>wp_wc_product_attributes_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM<br>wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM<br>wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM<br><br>### Post Type Counts ###<br><br>acf: 1<br>acf-field: 1<br>acf-field-group: 1<br>attachment: 1039<br>flamingo_contact: 637<br>flamingo_inbound: 112<br>members: 3<br>nav_menu_item: 74<br>newsletter: 2<br>page: 65<br>post: 188<br>product: 49<br>revision: 2152<br>shop_order: 2916<br>topics-for-members: 87<br>wp_global_styles: 1<br>wp_navigation: 1<br>wpcf7_contact_form: 4<br><br>### Security ###<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ?<br><br>### Active Plugins (21) ###<br><br>Advanced Custom Fields: by WP Engine – 6.1.7<br>BackWPup: by Inpsyde社 – 4.0.0<br>Breadcrumb NavXT: by John Havlik – 7.2.0<br>Bulk Media Register: by Katsushi Kawamori – 1.31<br>Cimy User Extra Fields: by Marco Cimmino – 2.7.2<br>Cimy User Manager: by Marco Cimmino – 1.5.0<br>Contact Form 7: by Takayuki Miyoshi – 5.7.7<br>Custom Post Type Permalinks: by Toro Unit – 3.5.2<br>Flamingo: by Takayuki Miyoshi – 2.3<br>Image Widget: by The Events Calendar – 4.4.9<br>Intuitive Custom Post Order: by hijiri – 3.1.4.1<br>Really Simple SSL: by Really Simple プラグイン – 7.0.6<br>Recently Registered: by Mika Epstein – 3.5<br>Big File Uploads: by Infinite Uploads – 2.1.1<br>User Role Editor: by Vladimir Garagulya – 4.63.3<br>Checkout Field Editor for WooCommerce: by ThemeHigh – 1.9.0<br>Japanized for WooCommerce: by 職人工房 – 2.5.13<br>WooCommerce: by Automattic – 7.8.2 (update to version 9.4.1 is available)<br>WP Mail SMTP: by WP Mail SMTP – 3.8.0<br>WP Multibyte Patch: by 倉石 政典 – 2.9<br>WP Robots Txt: by George Pattihis – 1.2<br><br>### Inactive Plugins (4) ###<br><br>Akismet Anti-Spam: Spam Protection: by Automattic - Anti Spam Team – 5.2<br>ALO EasyMail Newsletter: by Alessandro Massasso – 2.12.3<br>WordPress Importer: by wordpressdotorg – 0.8.1<br>WP Test Email: by Boopathi Rajan – 1.1.6<br><br>### Settings ###<br><br>API Enabled: –<br>Force SSL: –<br>Currency: JPY (¥)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 0<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: –<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: –<br><br>### WC Pages ###<br><br>Shop base: #4336 - /shop<br>Cart: #4337 - /shop/cart<br>Checkout: #4338 - /shop/checkout<br>My account: #4339 - /shop/my-account<br>Terms and conditions: #4343 - /%e7%89%b9%e5%ae%9a%e5%95%86%e5%8f%96%e5%bc%95%e6%b3%95%e3%81%ab%e5%9f%ba%e3%81%a5%e3%81%8f%e8%a1%a8%e8%a8%98<br><br>### Theme ###<br><br>Name: Zen-Kyo 2<br>Version: 202230118<br>Author URL: <br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme<br>WooCommerce Support: ? Not declared<br><br>### Templates ###<br><br>Overrides: zen-kyo2/woocommerce/cart/cart-totals.php<br>zen-kyo2/woocommerce/checkout/form-billing.php<br>zen-kyo2/woocommerce/checkout/thankyou.php<br>zen-kyo2/woocommerce/emails/customer-completed-order.php<br>zen-kyo2/woocommerce/emails/customer-invoice.php<br>zen-kyo2/woocommerce/emails/customer-note.php<br>zen-kyo2/woocommerce/emails/customer-on-hold-order.php<br>zen-kyo2/woocommerce/emails/customer-processing-order.php<br>zen-kyo2/woocommerce/emails/customer-refunded-order.php<br>zen-kyo2/woocommerce/emails/email-addresses.php<br>zen-kyo2/woocommerce/emails/email-customer-details.php<br>zen-kyo2/woocommerce/emails/plain/customer-completed-order.php<br>zen-kyo2/woocommerce/emails/plain/customer-invoice.php<br>zen-kyo2/woocommerce/emails/plain/customer-note.php<br>zen-kyo2/woocommerce/emails/plain/customer-on-hold-order.php version 3.7.0 is out of date. The core version is 7.3.0<br>zen-kyo2/woocommerce/emails/plain/customer-processing-order.php<br>zen-kyo2/woocommerce/emails/plain/customer-refunded-order.php<br>zen-kyo2/woocommerce/order/order-details.php version 4.6.0 is out of date. The core version is 7.8.0<br><br>Outdated Templates: ?<br> <br> <br> Learn how to update<br><br>### Admin ###<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br><br>Disabled Features: core-profiler<br>minified-js<br>new-product-management-experience<br>product-variation-management<br>settings<br>async-product-editor-category-field<br><br>Daily Cron: ? Next scheduled: 2024-11-18 06:25:14 +09:00<br>Options: ?<br>Notes: 197<br>Onboarding: completed<br><br>### Action Scheduler ###<br><br>Complete: 130<br>Oldest: 2024-10-18 15:02:43 +0900<br>Newest: 2024-11-18 07:49:04 +0900<br><br>Pending: 3<br>Oldest: 2024-11-18 16:00:59 +0900<br>Newest: 2024-11-20 11:08:04 +0900<br><br><br>### Status report information ###<br><br>Generated at: 2024-11-18 09:49:56 +09:00<br>

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

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter ktakahisa

    (@ktakahisa)

    @shahzeenfarooq

    Hello,

    I have not made any customizations to WooCommerce.
    Nor am I requesting additional features through customization.
    I am hoping for a solution to this problem that has suddenly occurred when I have done nothing.

    Does this mean that this language issue in the dashboard is not going to make any more progress here?

    Thanks,

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @ktakahisa ,

    Thanks for reaching out! I’m sorry you’re dealing with this.

    From what you’ve described, it seems like the issue on the backend is still there, even though the code fixed the problem on the front end. Could you clarify where exactly you’re seeing the backend strings in English? Are all sections affected, or is it just specific ones?

    Here’s a bit about the code you’re using: it reloads WooCommerce’s Japanese language files during the?init?action, which helps restore translations on the front end and some admin areas. However, parts of the admin interface, like the “Orders” and “Products” menus or certain headings (e.g., “Product categories” and “Product tags” on the product edit screen), might still show up in English.

    This happens because WooCommerce’s admin interface uses JavaScript-based components that rely on JSON translation files (e.g.,?woocommerce-ja-<hash>.json), stored in the?wp-content/languages/plugins/?folder. The?load_textdomain()?function doesn’t handle these JSON files, which is why some admin areas may not translated.

    You could also try this following code and see if it does the trick to ensure comprehensive translation across all admin sections, including JavaScript components:

    add_action('init', function() {
    unload_textdomain('woocommerce');
    load_plugin_textdomain('woocommerce', false, WP_LANG_DIR . '/plugins/');
    }, 20);

    Since this is for testing this may not works for both frontend and backend, I’d recommend trying it on a staging site first. You can set one up easily using a plugin like?WP?Staging.

    Let me know how it goes!

    Thread Starter ktakahisa

    (@ktakahisa)

    @jonayedhosen

    Hi,
    Thanks for sharing the details.

    First, the code you provided did not work on the front-end as well as the dashboard.
    The code I added before was able to make the front-end and part of the dashboard Japanese, but this code seems to have reverted the front-end back to English as well as the dashboard, which is all in English.

    As far as I can tell, the following are currently displayed in English on the dashboard:

    • WooCommerce -> Orders menu
    • Products -> All Products menu
      • Add new product menu
      • Categories, Tags menu
    • “Edit Product” in the page title
      • “Product categories” section heading
      • “All categories” tab
      • “Product tags” section heading
      • “Separate tags with commas” text
      • “Choose from the most used tags link” text
      • “Product image” section heading
      • “Remove product image” text
      • “Choose from the most used tags” link text
      • “Product image” section heading
      • “Remove product image” link text
    • “Edit categories” in the page title
      • “Add new category” heading
      • “Parent category” heading
      • “Update category” button text
    • “Edit tags” page title
      • “Add new tag” heading
      • “Update tag” button text
    • “Orders” page title
      • “Add new order” button text on the “Orders” page
      • “Edit Order” in the page title
      • All the words “Order” on the individual order page

    Other than these, the rest of the text seems to be displayed in Japanese on the dashboard.

    Thanks,

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @ktakahisa ,

    Thank you for for the update! At this time, we don’t have a definitive solution since you’re relying on WooCommerce version 7.8.2. I recommend continuing to use the code you implemented earlier or temporarily switching to WordPress version 6.6 if you need the admin language to fully display in Japanese. This can be a workaround since you prefer not to update the WooCommerce version.

    Thank you for your understanding!

    Thread Starter ktakahisa

    (@ktakahisa)

    @jonayedhosen

    Hi,

    At this time, I think we’ve done everything we can on the WooCommerce side.
    The front-end is available in Japanese thanks to the code I added before, so at least the worst case scenario has been prevented.
    As for the remaining English display on the dashboard, I will have to let the client get used to it.

    Downgrading WordPress to 6.6 will be difficult.
    So I will explain to the client that this is a WordPress 6.7 internationalization and plugin issue, and that basically the only way to fix it is to update the plugin to the latest version.

    If you find a better solution in the future, please let me know.

    Thanks for all your help.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello ktakahisa,

    Thank you for your reply.

    I understand the situation with the dashboard language display in WordPress 6.7 and your explanation to the client. Feel free to reach out if you have any additional questions or need further assistance.

    We’re here to help. ??

    Best regards.

Viewing 6 replies - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.