Conversation
supportHey! Thank you for a fine plugin. I have been using it for quite a while. Today, I noticed that the “Leave a reply” would always be displayed in the default site language, regardless of the language I have chosen in my selector. So, in my case, it would say “Efterlad et svar” (in Danish), both on the English and the Danish version of the page. Disabling Performant Translations fixed this for me, as did downgrading to 1.0.9. Is that something you can reproduce? Kind regards, Bjarne The page I need help with: [ log in to see the link]
Heya, thanks for flagging this! In order to try to reproduce this issue I’ll need a little bit more information. What multilingual plugin are you using on your site? Does this issue happen when not using said plugin? You can also share your Site Health info (Tools -> Site Health -> Info -> copy to clipboard), which would be helpful. Are there more untranslated strings or is this the only one?
What I see at first glance is that your theme, Blocksy, is not fully translated into Danish, there’s no translation for the string “Leave a Reply” either. So it makes sense that the string is only in English.
Lets get that site health out of the way first 🙂 ` wp-core version: 6.4.2 site_language: da_DK user_language: en_GB timezone: Europe/Copenhagen permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true wp-paths-sizes wordpress_path: /home/sustain2/oldrup.dk wordpress_size: 92,41 MB (96899819 bytes) uploads_path: /home/sustain2/oldrup.dk/wp-content/uploads uploads_size: 52,15 MB (54685371 bytes) themes_path: /home/sustain2/oldrup.dk/wp-content/themes themes_size: 11,82 MB (12391001 bytes) plugins_path: /home/sustain2/oldrup.dk/wp-content/plugins plugins_size: 136,80 MB (143440337 bytes) database_size: 46,30 MB (48545792 bytes) total_size: 339,47 MB (355962320 bytes) wp-dropins (2) fatal-error-handler.php: true object-cache.php: true wp-active-theme name: Blocksy (blocksy) version: 2.0.22 author: CreativeThemes author_website: https://creativethemes.com parent_theme: none theme_features: widgets-block-editor, automatic-feed-links, responsive-embeds, html5, title-tag, custom-logo, lifterlms-sidebars, boostify-header-footer, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, editor-styles, editor-style, editor-color-palette, editor-gradient-presets, post-thumbnails, menus, align-wide, customize-selective-refresh-widgets, header-footer-elementor, disable-custom-font-sizes, disable-custom-colors, disable-custom-gradients, widgets theme_path: /home/sustain2/oldrup.dk/wp-content/themes/blocksy auto_update: Disabled wp-themes-inactive (1) Twenty Twenty: version: 2.5, author: the WordPress team, Auto-updates disabled wp-plugins-active (31) Accessibility Checker: version: 1.7.1, author: Equalize Digital, Auto-updates enabled Accessibility Checker Pro: version: 1.5.2, author: Equalize Digital, Auto-updates disabled Activity Log: version: 2.9.0, author: Activity Log Team, Auto-updates disabled Admin Columns: version: 4.6.1, author: AdminColumns.com, Auto-updates enabled All-in-One WP Migration: version: 7.79, author: ServMask, Auto-updates disabled Antispam Bee: version: 2.11.5, author: pluginkollektiv, Auto-updates enabled Asset CleanUp: Page Speed Booster: version: 1.3.9.3, author: Gabe Livan, Auto-updates disabled Blocksy Companion (Premium): version: 2.0.22, author: CreativeThemes, Auto-updates enabled Clean Image Filenames: version: 1.4, author: Upperdog, Auto-updates enabled Content Aware Sidebars: version: 3.19.3, author: Joachim Jensen - DEV Institute, Auto-updates disabled Embed Privacy: version: 1.8.1, author: Epiphyt, Auto-updates disabled EWWW Image Optimizer: version: 7.2.3, author: Exactly WWW, Auto-updates disabled Exclude Image Thumbnails From UpdraftPlus Backups: version: 1.0.3, author: Dream-Encode, Auto-updates enabled GenTime: version: 1.1.0, author: Sybre Waaijer, Auto-updates disabled Lightbox for Gallery & Image Block: version: 1.13, author: Johannes Kinast johannes@travel-dealz.de , Auto-updates disabled LiteSpeed Cache: version: 6.0.0.1, author: LiteSpeed Technologies, Auto-updates enabled Loco Translate: version: 2.6.6, author: Tim Whitlock, Auto-updates enabled MRW Simplified Editor: version: 2.12.1, author: Mark Root-Wiley, Auto-updates disabled Performant Translations: version: 1.0.9, author: WordPress Performance Team (latest version: 1.1.0), Auto-updates disabled Polylang: version: 3.5.3, author: WP SYNTEX, Auto-updates enabled Real Custom Post Order: version: 1.3.79, author: devowl.io, Auto-updates disabled Simple Local Avatars: version: 2.7.7, author: 10up, Auto-updates enabled SimpleTOC - Table of Contents Block: version: 6.2.0, author: Marc Tönsing, Auto-updates disabled The SEO Framework: version: 5.0.3, author: The SEO Framework Team, Auto-updates enabled The SEO Framework - Extension Manager: version: 2.6.3, author: The SEO Framework Team, Auto-updates disabled UpdraftPlus - Backup/Restore: version: 1.23.16, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled User Switching: version: 1.7.2, author: John Blackbourn & contributors, Auto-updates disabled Wordfence Security: version: 7.11.1, author: Wordfence, Auto-updates enabled WPCodeBox 2: version: 1.0.3, author: WPCodeBox, Auto-updates disabled WP Htaccess Editor: version: 1.71, author: WebFactory Ltd, Auto-updates enabled WPIDE - File Manager & Code Editor: version: 3.4.7, author: XplodedThemes, Auto-updates disabled wp-media image_editor: EWWWIO_Imagick_Editor imagick_module_version: 1809 imagemagick_version: ImageMagick 7.1.1-19 Q16-HDRI x86_64 21601 https://imagemagick.org imagick_version: 3.7.0 file_uploads: 1 post_max_size: 50M upload_max_filesize: 50M max_effective_size: 50 MB max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM ghostscript_version: 9.25 wp-server server_architecture: Linux 3.10.0-962.3.2.lve1.5.81.el7.x86_64 x86_64 httpd_software: LiteSpeed php_version: 8.2.14 64bit php_sapi: litespeed max_input_variables: 3000 time_limit: 90 memory_limit: 256M max_input_time: 90 upload_max_filesize: 50M php_post_max_size: 50M curl_version: 7.87.0 OpenSSL/1.1.1w suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true current: 2024-01-30T19:32:37+00:00 utc-time: Tuesday, 30-Jan-24 19:32:37 UTC server-time: 2024-01-30T20:32:36+01:00 wp-database extension: mysqli server_version: 10.6.16-MariaDB-cll-lve client_version: mysqlnd 8.2.14 max_allowed_packet: 268435456 max_connections: 800 wp-constants WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/sustain2/oldrup.dk/wp-content WP_PLUGIN_DIR: /home/sustain2/oldrup.dk/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: production WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined wp-filesystem wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable pll_options browser: 0: Detect browser language deactivated rewrite: 1: Remove /language/ in pretty permalinks hide_default: 1: Hide URL language information for default language force_lang: 1: The language is set from the directory name in pretty permalinks redirect_lang: 0: The front page URL contains the page name or page ID instead of the language code media_support: 0: The media are not translated sync: 0: comment_status 1: ping_status 2: sticky_posts 3: post_date 4: menu_order 5: _thumbnail_id post_types: post, page, wp_block, ct_content_block, epi_embed taxonomies: category, post_tag version: 3.5.3 default_lang: da menu_1: da => 6 | en => 33 menu_2: da => 0 | en => 0 menu_3: da => 0 | en => 0 footer: da => 0 | en => 33 footer_2: da => 0 | en => 0 menu_mobile: da => 6 | en => 33 menu_mobile_2: da => 0 | en => 0 previous_version: 3.5.2 pll_language_da name: På dansk slug: da term_group: 0 term_id: 17 locale: da_DK is_rtl: 0 w3c: da-DK facebook: da_DK home_url: https://oldrup.dk/ search_url: https://oldrup.dk/ page_on_front: 5099 page_for_posts: 0 flag_code: dk flag_url: https://oldrup.dk/wp-content/plugins/polylang/flags/dk.png custom_flag_url: 0 active: true fallbacks: 0 is_default: true term_props: language/term_id: 17 language/term_taxonomy_id: 17 language/count: 53 term_language/term_id: 18 term_language/term_taxonomy_id: 18 term_language/count: 5 pll_language_en name: In English slug: en term_group: 0 term_id: 20 locale: en_GB is_rtl: 0 w3c: en-GB facebook: en_GB home_url: https://oldrup.dk/en/home/ search_url: https://oldrup.dk/en/ page_on_front: 5108 page_for_posts: 0 flag_code: gb flag_url: https://oldrup.dk/wp-content/plugins/polylang/flags/gb.png custom_flag_url: 0 active: true fallbacks: 0 is_default: 0 term_props: language/term_id: 20 language/term_taxonomy_id: 20 language/count: 20 term_language/term_id: 21 term_language/term_taxonomy_id: 21 term_language/count: 5 pll_warnings wpml: plugins/content-aware-sidebars: /home/sustain2/oldrup.dk/wp-content/plugins/content-aware-sidebars/wpml-config.xml plugins/autodescription: /home/sustain2/oldrup.dk/wp-content/plugins/autodescription/wpml-config.xml themes/blocksy: /home/sustain2/oldrup.dk/wp-content/themes/blocksy/wpml-config.xml
I’m using a combination of PolyLang and LocoTranslate, and have for years. But giving the benefit of the doubt, let’s do the banana test: Sure thing, on the front end, when Danish is chosen, the “Leave a reply” text is translated as expected: The English version is still untouched: So the problem is not that the translation is not kicking in, more than all the comment/reply fields are being translated into Danish with version 1.1.0, even though English is chosen, and the rest of the page is in English: Uninstalling Performant Translations, or simply reverting to 1.0.9, fixes that, and both the English and the Danish page are shown correctly. Now if you will excuse me, I have a 🍌 to clean up 😉
Thanks! I’ve had no luck so far trying to reproduce this with Polylang and Loco Translate active. Did you perhaps create any custom translations in Loco Translate? In this case, what you could try is completely uninstalling Performant Translations and installing it again. That will reset the PHP translations so you have a clean slate again. If you temporarily install Query Monitor you should be able to see which translation files actually get loaded when viewing a post. That will provide some more details to help pinpoint the issue.
The Danish translation is a custom translation, that’s true. Uninstalling PT solves the issues for me. Installing 1.0.9 is also ok. The problem appears to occur when I upgrade to 1.1.0 I will try to see if I can reproduce this on a fresh install tomorrow, with Query Monitor enabled. Stay tuned.
Uninstalling PT solves the issues for me. Right, what I meant is uninstalling (which deletes translation files) and then re-installing the plugin again. The strange thing about this behavior is that PT itself doesn’t have any logic about different languages. It just loads whatever is given to it in a more performant way.
Heya, thanks for flagging this! In order to try to reproduce this issue I’ll need a little bit more information. What multilingual plugin are you using on your site? Does this issue happen when not using said plugin? You can also share your Site Health info (Tools -> Site Health -> Info -> copy to clipboard), which would be helpful. Are there more untranslated strings or is this the only one?
What I see at first glance is that your theme, Blocksy, is not fully translated into Danish, there’s no translation for the string “Leave a Reply” either. So it makes sense that the string is only in English.
Lets get that site health out of the way first 🙂 ` wp-core version: 6.4.2 site_language: da_DK user_language: en_GB timezone: Europe/Copenhagen permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true wp-paths-sizes wordpress_path: /home/sustain2/oldrup.dk wordpress_size: 92,41 MB (96899819 bytes) uploads_path: /home/sustain2/oldrup.dk/wp-content/uploads uploads_size: 52,15 MB (54685371 bytes) themes_path: /home/sustain2/oldrup.dk/wp-content/themes themes_size: 11,82 MB (12391001 bytes) plugins_path: /home/sustain2/oldrup.dk/wp-content/plugins plugins_size: 136,80 MB (143440337 bytes) database_size: 46,30 MB (48545792 bytes) total_size: 339,47 MB (355962320 bytes) wp-dropins (2) fatal-error-handler.php: true object-cache.php: true wp-active-theme name: Blocksy (blocksy) version: 2.0.22 author: CreativeThemes author_website: https://creativethemes.com parent_theme: none theme_features: widgets-block-editor, automatic-feed-links, responsive-embeds, html5, title-tag, custom-logo, lifterlms-sidebars, boostify-header-footer, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, editor-styles, editor-style, editor-color-palette, editor-gradient-presets, post-thumbnails, menus, align-wide, customize-selective-refresh-widgets, header-footer-elementor, disable-custom-font-sizes, disable-custom-colors, disable-custom-gradients, widgets theme_path: /home/sustain2/oldrup.dk/wp-content/themes/blocksy auto_update: Disabled wp-themes-inactive (1) Twenty Twenty: version: 2.5, author: the WordPress team, Auto-updates disabled wp-plugins-active (31) Accessibility Checker: version: 1.7.1, author: Equalize Digital, Auto-updates enabled Accessibility Checker Pro: version: 1.5.2, author: Equalize Digital, Auto-updates disabled Activity Log: version: 2.9.0, author: Activity Log Team, Auto-updates disabled Admin Columns: version: 4.6.1, author: AdminColumns.com, Auto-updates enabled All-in-One WP Migration: version: 7.79, author: ServMask, Auto-updates disabled Antispam Bee: version: 2.11.5, author: pluginkollektiv, Auto-updates enabled Asset CleanUp: Page Speed Booster: version: 1.3.9.3, author: Gabe Livan, Auto-updates disabled Blocksy Companion (Premium): version: 2.0.22, author: CreativeThemes, Auto-updates enabled Clean Image Filenames: version: 1.4, author: Upperdog, Auto-updates enabled Content Aware Sidebars: version: 3.19.3, author: Joachim Jensen - DEV Institute, Auto-updates disabled Embed Privacy: version: 1.8.1, author: Epiphyt, Auto-updates disabled EWWW Image Optimizer: version: 7.2.3, author: Exactly WWW, Auto-updates disabled Exclude Image Thumbnails From UpdraftPlus Backups: version: 1.0.3, author: Dream-Encode, Auto-updates enabled GenTime: version: 1.1.0, author: Sybre Waaijer, Auto-updates disabled Lightbox for Gallery & Image Block: version: 1.13, author: Johannes Kinast johannes@travel-d...
I’m using a combination of PolyLang and LocoTranslate, and have for years. But giving the benefit of the doubt, let’s do the banana test: Sure thing, on the front end, when Danish is chosen, the “Leave a reply” text is translated as expected: The English version is still untouched: So the problem is not that the translation is not kicking in, more than all the comment/reply fields are being translated into Danish with version 1.1.0, even though English is chosen, and the rest of the page is in English: Uninstalling Performant Translations, or simply reverting to 1.0.9, fixes that, and both the English and the Danish page are shown correctly. Now if you will excuse me, I have a 🍌 to clean up 😉
Thanks! I’ve had no luck so far trying to reproduce this with Polylang and Loco Translate active. Did you perhaps create any custom translations in Loco Translate? In this case, what you could try is completely uninstalling Performant Translations and installing it again. That will reset the PHP translations so you have a clean slate again. If you temporarily install Query Monitor you should be able to see which translation files actually get loaded when viewing a post. That will provide some more details to help pinpoint the issue.
The Danish translation is a custom translation, that’s true. Uninstalling PT solves the issues for me. Installing 1.0.9 is also ok. The problem appears to occur when I upgrade to 1.1.0 I will try to see if I can reproduce this on a fresh install tomorrow, with Query Monitor enabled. Stay tuned.
Uninstalling PT solves the issues for me. Right, what I meant is uninstalling (which deletes translation files) and then re-installing the plugin again. The strange thing about this behavior is that PT itself doesn’t have any logic about different languages. It just loads whatever is given to it in a more performant way.