qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
559 stars 108 forks source link

[Slugs] Page titles do not translate #1388

Open Farris27 opened 1 year ago

Farris27 commented 1 year ago

Hello everyone, I'm contacting you to report a bug I've been having since I customized the slug for different languages. The page title is only in the default language. No problem for the description or other acf fields.

https://github.com/qtranslate/qtranslate-xt/assets/13883476/21274a12-9383-405d-988e-868f4600406f

{ "PHP_VERSION": "8.0.30", "WP_VERSION": "6.0.6", "QTX_VERSION": "3.15.1", "Plugins": [ "Advanced Custom Fields: Extended 0.8.9.3", "Advanced Access Manager 6.9.11", "Advanced Custom Fields PRO 6.1.7", "Age Gate 2.21.0", "Autoptimize 3.1.8.1", "Booking Calendar 10.Business.Medium.SingleSite.9.7.1", "Classic Editor 1.6.3", "Colorlib 404 Customizer 1.0.96", "Complianz Privacy Suite (GDPR/CCPA) premium 6.5.6", "Complianz - Terms and Conditions 1.2.7", "Contact Form 7 5.7.7", "Custom Post Type UI 1.13.7", "Yoast Duplicate Post 4.5", "GTM4WP 1.18.1", "Google Listings and Ads 2.4.5", "WP Armour - Honeypot Anti Spam 2.1.4", "Import Users 1.3", "Instant Images 4.6.2", "LiteSpeed Cache 5.7", "Mollie Payments for WooCommerce 7.3.9", "Mondial Relay - InPost - WordPress 4.3", "Pinterest pour WooCommerce 1.2.21", "Post SMTP 2.6.0", "Post Types Order 2.1", "qTranslate-XT 3.15.1", "Redirection 5.3.10", "Search & Filter Pro 2.5.7", "Slide Anything - Responsive Content / HTML Slider and Carousel 2.4.9", "TikTok 1.0.16", "UpdraftPlus - Sauvegarde/Restauration 1.23.4", "UpSolution Core 8.11.3", "Converter for Media 5.11.1", "Woo Discount Rules PRO 2.0 2.3.7", "Woo Discount Rules 2.6.2", "WooCommerce Advanced Free Shipping 1.1.6", "Paiements WooCommerce 5.8.3", "WooCommerce Shipping & Tax 2.2.5", "WooCommerce 7.7.2", " ", "WordPress Importer 0.8", "Yoast SEO 14.9", "WP-Optimize - Nettoyer, compresser, mettre en cache. 3.2.19", "WP Store Locator - CSV Manager 1.2.12", "WP Store Locator - Widget 1.2", "WP Store Locator 2.2.240", " ", "WP Webhooks 3.3.1" ] }

{ "default_language": "fr", "enabled_languages": [ "fr", "en" ], "locale": { "fr": "fr_FR", "en": "en_US" }, "date_format": { "fr": "%A %e %B %Y", "en": "%A %B %e%q, %Y" }, "time_format": { "fr": "%H:%M", "en": "%I:%M %p" }, "url_mode": 2, "use_strftime": 3, "filter_options_mode": 0, "language_name_case": 0, "detect_browser_language": false, "hide_untranslated": true, "show_menu_alternative_language": false, "show_displayed_language_prefix": false, "show_alternative_content": false, "hide_default_language": true, "use_secure_cookie": false, "header_css_on": true, "text_fieldfilters": [ "woocommerce%_settings" ], "disable_client_cookies": false, "url_info": { "cookie_lang_front": "fr", "cookie_lang_admin": "fr", "cookie_front_or_admin_found": true, "scheme": "https", "host": "whiskytwelve.fr", "path": "/wp-admin/admin-ajax.php", "query": "action=admin_debug_info", "path-base": "", "wp-path": "/wp-admin/admin-ajax.php", "language_neutral_path": true, "http_referer": "https://whiskytwelve.fr/wp-admin/options-general.php?page=qtranslate-xt", "referer_admin": true, "doing_front_end": false, "lang_cookie_admin": "fr", "lang_admin": "fr", "language": "fr", "set_cookie": false, "page_referer": "options-general.php" }, "language": "fr", "editor_mode": 0, "highlight_mode": 1, "auto_update_mo": true, "hide_lsb_copy_content": false, "lsb_style": "simple-buttons.css", "config_files": [ "./i18n-config.json", "plugins/qtranslate-xt-master/i18n-config.json" ], "custom_fields": [], "custom_field_classes": [], "post_type_excluded": [], "admin_enabled_modules": { "acf": true, "woo-commerce": true, "wp-seo": true, "slugs": true, "all-in-one-seo-pack": false, "events-made-easy": false, "jetpack": false, "google-site-kit": false, "gravity-forms": false }, "qtrans_compatibility": false }

spleen1981 commented 8 months ago

I'm not able to replicate this, can you try again with slugs module enabled and the other modules disabled (e.g. acf)?

MaksBgm commented 4 months ago

Hi, I have the exact same problem. I activated the slugs module and while the titles created the appropiate slug, the title itself still reverted to default language. The plugin worked fine for two years, so it's very strange that it has suddenly occured out of the blue.

I did update the theme recently and it may have occured after that, not sure though. I'm using Woohoo 2.4.6.

[EDIT: In Single Language Mode, when I edit the page in English the title reverts to English in the German (default language) as well. Amazing.]

In any case, here's the info from me as well:

{ "PHP_VERSION": "7.4.28", "WP_VERSION": "5.8.10", "QTX_VERSION": "3.15.2", "Plugins": [ "Bdaia Shortcodes 1.5.0", "Classic Editor 1.6.4", "Classic Widgets 0.3", "CM Table Of Contents 1.2.1", "Content Aware Sidebars 3.20", "Crop Thumbnails 1.8.0", "Easy Slider Revolution 1.1.0", "Folders 3.0.3", "Smart Post Show 3.0.0", "qTranslate-XT 3.15.2", "Redirection 5.3.10", "SVG Support 2.5.5", "Ultimate floating widgets 2.8", "Yoast SEO 19.1", "Zotpress 7.3.10" ] }


{ "default_language": "de", "enabled_languages": [ "de", "en" ], "locale": { "de": "de_DE", "en": "en_US" }, "date_format": { "de": "%A, \d\e\r %e. %B %Y", "en": "%A %B %e%q, %Y" }, "time_format": { "de": "%H:%M", "en": "%I:%M %p" }, "url_mode": 2, "use_strftime": 3, "filter_options_mode": 0, "language_name_case": 0, "detect_browser_language": true, "hide_untranslated": false, "show_menu_alternative_language": false, "show_displayed_language_prefix": true, "show_alternative_content": true, "hide_default_language": true, "use_secure_cookie": false, "header_css_on": true, "text_field_filters": [], "disable_client_cookies": false, "url_info": { "cookie_lang_front": "en", "cookie_lang_admin": "de", "cookie_front_or_admin_found": true, "scheme": "https", "host": "www.mdw.ac.at", "path": "/mdwpress/wordpress/wp-admin/admin-ajax.php", "query": "action=admin_debug_info", "path-base": "/mdwpress/wordpress", "wp-path": "/wp-admin/admin-ajax.php", "language_neutral_path": true, "http_referer": "https://www.mdw.ac.at/mdwpress/wordpress/wp-admin/options-general.php?page=qtranslate-xt", "referer_admin": true, "doing_front_end": false, "lang_cookie_admin": "de", "lang_admin": "de", "language": "de", "set_cookie": false, "page_referer": "options-general.php" }, "language": "de", "editor_mode": 0, "highlight_mode": 1, "auto_update_mo": true, "hide_lsb_copy_content": false, "lsb_style": "simple-buttons.css", "config_files": [ "./i18n-config.json" ], "custom_fields": [], "custom_field_classes": [], "post_type_excluded": [ "sidebar", "condition_group", "sidebar", "condition_group" ], "admin_enabled_modules": { "wp-seo": true, "acf": false, "all-in-one-seo-pack": false, "events-made-easy": false, "jetpack": false, "google-site-kit": false, "gravity-forms": false, "woo-commerce": false, "slugs": false }, "translator": {}, "qtrans_compatibility": false }


{ "cookies": [], "navigator": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0", "Javascript built-in RegExp: @@split": "supported" }

MaksBgm commented 3 months ago

Update: I have since updated Wordpress and the theme to the newest versions, but the error persists. Would love to hear whether there is a solution or whether I should do some other tests/provide addtional info.