Problem: You are using Tutor LMS with WPML for a bilingual English and Swedish site, and you're facing issues with translating dashboard slugs like 'purchase_history', 'my-profile', 'enrolled-courses', etc. into Swedish. The page content loads correctly, but the page title displays 'Page Not Found' in Swedish, while English works fine. Additionally, after updating the Tutor LMS plugins, the sidebar menu in Swedish started working, but clicking the inner tabs redirects to a 404 page. Solution: We have identified that the issue with the page titles not displaying correctly in Swedish and the 404 errors when clicking on inner tabs are caused by your custom code. We recommend testing your site with a default theme, such as Hello Elementor, to confirm if the issue persists without the custom code. If the problem is resolved with the default theme, it indicates that the custom code is causing the translation and redirection issues. For further assistance, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and ensure you have installed the latest versions of themes and plugins.
If this solution does not apply to your case or if it becomes outdated, we highly recommend opening a new support ticket. You can do so at WPML support forum.
Problem: El cliente desea tratar el idioma portugués como un WooCommerce separado en su sitio, pero enfrenta dificultades ya que WPML no soporta configuraciones de multitienda directamente y desea saber cómo podría separar este idioma manteniendo las traducciones. Solution: Nosotros, como equipo de soporte de WPML, aclaramos que no es posible lograr una configuración de multitienda directamente con WPML, ya que nuestros plugins solo permiten una configuración de URL de idiomas. Sugerimos la creación de una solución personalizada que cae fuera del alcance de nuestro servicio de soporte. Para duplicar el sitio y mantener las traducciones, recomendamos utilizar plugins como Duplicator o All-In-One WP Migration, teniendo en cuenta que las traducciones se almacenan en la base de datos del sitio y no se perderán al migrar. Además, proporcionamos enlaces para gestionar idiomas en WPML, como ocultar idiomas que no se utilizan (ocultar idiomas en portada) y cómo eliminar completamente un idioma del sitio (eliminar un idioma completamente). También se puede cambiar el idioma por defecto en la configuración de WPML siguiendo las mejores prácticas descritas en nuestro foro (mejores prácticas para cambiar el idioma por defecto).
Si esta solución no resuelve tu problema o si la información proporcionada se ha vuelto obsoleta, te recomendamos abrir un nuevo ticket de soporte. También te sugerimos revisar los problemas conocidos en problemas conocidos de WPML y asegurarte de que tienes instaladas las últimas versiones de los temas y plugins.
Problem: You are trying to translate a custom filter message on the WooCommerce thank you page, which is not visible in WPML string translation. The message is added via a filter in the functions.php file of your child theme.
Solution: To make your custom messages translatable, you need to wrap all static texts in gettext calls such as
__()
and
_e()
, specifying a text domain. Here’s how you can modify your code:
$thank_you_msg = __('Status: Order Completed & Paid!', 'your-text-domain') . '<br /><br />' . __('You are all set! You can now close this tab and head over to your email inbox for all the details about your challenge.', 'your-text-domain');
After modifying the code, go to WPML → Theme and plugins localization and scan your child theme for new strings. This will register them in WPML’s String Translation, where you can provide translations. For more details on adding gettext calls and scanning themes, visit Adding GetText Calls to PHP Code and Scanning a Theme or Plugin to Update Existing Translations.
Ensure you are properly loading the text domain in your theme. For guidance, see load_theme_textdomain and Text Domain. Always back up your database before making changes.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum.