Problem: You are trying to set the thousand separator and decimal separator per language in WooCommerce Multilingual & Multicurrency, specifically for displaying prices in Euros with the correct formatting for different countries like Ireland, where the expected format is €1,914.00 instead of the European format €1.914,00. Solution: Currently, there isn't a direct way to adjust these settings through the UI for secondary currencies. However, we can achieve this by using WooCommerce filters. We have added the necessary code as a Code Snippet on your site. Here is the code you can use:
/**
* Force formatting euro prices for the Ireland language
*/
add_filter( 'wc_get_price_thousand_separator', function( $value ) {
$current_language = apply_filters( 'wpml_current_language', null );
if ( $current_language === 'en-ie' ) {
$value = ",";
}
return $value;
}, 11 );
add_filter( 'wc_get_price_decimal_separator', function( $value ) {
$current_language = apply_filters( 'wpml_current_language', null );
if ( $current_language === 'en-ie' ) {
$value = ".";
}
return $value;
}, 11 );
This code will specifically change the thousand and decimal separators for prices when the site’s language is set to Irish English ('en-ie').
If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
Problema: El cliente ha configurado la traducción automática en su sitio web con WPML para tres idiomas: castellano, inglés y catalán. Los usuarios pueden crear contenido en cualquiera de estos idiomas a través del FrontEnd, y el cliente necesita que se traduzcan automáticamente sin importar en qué idioma se haya creado. Sin embargo, enfrenta problemas con la traducción automática de ciertos tipos de contenido. Solución: 1. Confirmamos que la traducción automática es posible con WPML y se puede configurar para que traduzca automáticamente todo el contenido del sitio y se publique automáticamente. Esto se puede hacer al instalar WPML o en WPML -> Configuración -> Primera sección. Más detalles en documentación de traducción automática. 2. Se sugirió incrementar el límite de memoria de WordPress a un mínimo de 128Mb. Para ello, se puede agregar el siguiente código al archivo wp-config.php:
3. Se recomendó crear una copia de seguridad del sitio completo y actualizar todos los plugins y temas desactualizados. 4. Para problemas específicos con tipos de contenido que no se traducen automáticamente, como Comunidad o Filmografía, se sugiere la implementación de código personalizado. Se recomienda revisar nuestro listado de hooks en referencia de hooks de WPML y contactar con uno de nuestros partners certificados en WPML contractors.
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 es aconsejable revisar los problemas conocidos en problemas conocidos de WPML, verificar la versión del arreglo permanente y confirmar que tienes instaladas las últimas versiones de temas y plugins.
Problem: The client is unable to update the translation of the 'Quick Contact' section in the sidebar of their blog page using WPML's String Translation. Despite translating other titles successfully, the specific text 'Mieten Sie jetzt Ihren VIP-Bus mit Fahrer in Berlin für Ihren Service.' remains untranslated. Solution: We recommend the following steps to resolve the issue: 1. Ensure that the 'Look for strings while pages are rendered' option is enabled in WPML's String Translation settings. 2. Visit the problematic page and refresh it to allow WPML to detect all translatable strings. 3. Navigate to the WPML String Translation page and search for the specific string 'Mieten Sie'. 4. Verify and, if necessary, correct the language setting of the widget to German. 5. Translate the widget content to English.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your current setup, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
Problem: Il cliente desidera sincronizzare i menu in italiano e inglese sul proprio sito, ma incontra difficoltà a causa di problemi legati al tema, che non gestisce correttamente i sottomenu in altre lingue e la sincronizzazione delle pagine. Solution: Se stai riscontrando problemi simili, ti consigliamo di verificare le impostazioni del tema. Tuttavia, il tema utilizzato non è stato testato con WPML, il che potrebbe causare incompatibilità. Ti raccomandiamo di contattare direttamente l'autore del tema per risolvere questi problemi. Inoltre, assicurati di avere i permessi necessari per accedere alle opzioni del tema.
Se questa soluzione non dovesse essere più rilevante, perché potrebbe essere superata o non applicabile al tuo caso, ti suggeriamo di aprire un nuovo ticket di supporto. Ti consigliamo vivamente di consultare la pagina dei problemi noti, verificare la versione della correzione permanente e confermare di avere installato le ultime versioni dei temi e dei plugin. Per ulteriore assistenza, visita il forum di supporto WPML.
Problem: You are developing a site and want the WordPress API to respond in English, despite the main website language being different. You tried using the WPML Hook with
do_action('wpml_switch_language', 'en');
but it did not work. Solution: We recommend using the
rest_request_before_callbacks
filter to force the WPML language for specific API endpoints. Here is an example of how you can implement this:
add_filter('rest_request_before_callbacks', function ($response, $handler, $request) {<br /> // Specify the endpoints you want to target (or apply globally).<br /> $target_endpoints = ['/wp/v2/posts', '/wp/v2/pages'];<br /> <br /> if (in_array($request->get_route(), $target_endpoints, true)) {<br /> // Switch WPML language context to English.<br /> do_action('wpml_switch_language', 'en');<br /> }<br /> <br /> return $response;<br />}, 10, 3);
Please note that we do not provide support for custom coding issues, but only guidance and examples as shown above. If you need further assistance, you might consider hiring a WPML Contractor.
This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket.
Problem: You are using WPML with WooCommerce and WooCommerce Bookings, and you want all outgoing emails to be delivered only in the default language, English. However, customers are receiving booking and order emails in various languages, such as English, German, or Dutch, even when they order the same product in English. Solution: Currently, there is no straightforward out-of-the-box solution to ensure all outgoing emails are sent only in English, as emails are typically sent in the language in which the order was made or the language set in the user's profile. We recommend translating the emails and setting the default language as English in the translations. Alternatively, you could consider hiring a contractor to implement custom code to achieve this functionality. You can find qualified contractors at https://wpml.org/contractors/.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum.
Please note that this solution might be irrelevant due to changes in the theme or our code. If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
Problem: You are trying to translate a dynamically populated ACF field using the ACFML plugin, but the field is not translating or appearing in the other language. Solution: 1. Verify that your ACF Select Field has Choices set. If no Choices are declared, WPML cannot translate them using the WPML Translation Editor because the values are set through custom code. 2. To translate such fields, use the WPML String Translation. You can register the strings for translation using a GetText call in PHP or by utilizing the WPML hook: https://wpml.org/wpml-hook/wpml_register_single_string/ 3. For additional guidance on translating themes and plugins you've created, refer to: https://wpml.org/documentation/support/translating-the-theme-you-created/
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum: WPML Support Forum.
Problem: You need custom behavior that falls outside the standard options of WPML. Solution: Since this involves custom work which is not covered by our standard support, we recommend contacting the theme author. They might be able to resolve the issue by using the code similar to what is used for WooCommerce stock.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.
Problem: The client wants to translate custom post type (CPT) slugs without using WPML's String Translation, aiming for a cleaner approach while maintaining language-specific URLs (e.g., English: example.com/en/products/, German: example.com/produkte/). They are experiencing issues with 404 errors and incorrect language detection in requests. Solution: We recommend using WPML's String Translation for translating CPT slugs as it is a mandatory plugin for such functionality. Ensure that the 'has_archive' is set to true in your code, as shown below:
'has_archive' => true,
WPML supports custom slug translation when the custom type is registered but does not support custom permalink structures. For more details, please refer to our documentation on translating slugs for custom post type archives. If you require a custom solution, we suggest using the services of WPML contractors, which can be found here: WPML contractors.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.
Problem: You are trying to translate all link targets on your website using the Divi side by side buttons module, but the links are still pointing to English pages on the French version of the website. Despite re-translating the page, the side by side buttons on the home page and articulated arms page still link to English pages. Solution: We found that the dual buttons module needed to be registered for translation. We registered it by adding the following code to WPML-> Settings-> Custom XML tab:
After adding this code, update the home page in the default language and update its translation using the translation editor to translate the URLs in the editor. Check the French home page to see if the buttons now correctly link to the French pages.
If this solution does not resolve your issue or seems outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.
Problem: You are using WPML to manage a multilingual site and need to set up permissions so that translators can only view the original language content and edit their assigned language translations. You are looking for a way to make the original content 'view-only' and inquire about any available WPML filters or hooks to implement these restrictions. Solution: The client has managed to achieve it using custom code on his own. Please note that the solution might be outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.
Problem: The client is attempting to disable the WPML permalink changes on a specific page using custom code, but WPML is blocking these changes. Solution: We recommend using the
wpml_permalink
hook to specify a language code. Setting this argument to the site's default language code should help achieve the desired functionality of disabling WPML permalink changes on the specific page without affecting the entire site. For more details on how to use this hook, please visit WPML permalink hook documentation.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.