Problem: Sie möchten Medien automatisch mit Deepl übersetzen lassen, aber die Übersetzungen können nur manuell angepasst werden, da das Media Translation Plugin die Bildmetadaten im benutzerdefinierten Block Ihres Themes nicht registriert. Solution: Wenn Sie das Theme selbst entwickelt haben, empfehlen wir Ihnen, unsere Dokumentation für Entwickler zu überprüfen, um sicherzustellen, dass die Bildmetadaten korrekt für die Übersetzung registriert sind. Besuchen Sie:
Wenn die Metadaten korrekt registriert sind, werden sie im Advanced Translation Editor von WPML verfügbar sein, und Sie können sie automatisch in Bulk übersetzen.
Falls diese Lösung veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum: WPML Support Forum.
, instead of the name of the layout, causing your code to break after translating your site with WPML, this might be due to missing custom fields in the translation. Solution: We recommend checking if the custom field settings were configured after the page was translated. If so, you can trigger the translation by modifying the original page, updating it, and then saving the translation again. This should ensure that
get_row_layout()
returns the correct layout names. Remember to update the page translations if there are other pages affected.
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 issues persist, please open a new support ticket at WPML support forum for further assistance.
Problem: The client installed WPML on their development website. While the default language displays correctly, the translated version of the website appears broken, with issues in layout, untranslated navigation menus, and other text elements. Solution: First, we addressed the navigation menu issues in both the header and footer. We recommended translating the navigation menus following the detailed instructions provided here: https://wpml.org/documentation/getting-started-guide/translating-menus/. For custom menu links and header buttons, we suggested manual translation methods as shown in this screen recording: https://go.screenpal.com/watch/cZj1bZV91yB. Additionally, to fix styling issues, we inserted custom CSS code into WP > Appearance > Customize > Additional CSS:
If you're experiencing similar issues, we recommend trying these steps. However, if these solutions do not resolve your problem or seem outdated, please 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. If issues persist, we highly recommend opening a new support ticket for further assistance.
Problem: The footer of your website is no longer being translated into English and French, and the associated translation strings are not found. Solution: If you find that the footer of your website is no longer being translated, we recommend checking the translation of the footer block. We have updated the translation for the page with the ID in the WPML String Translation Tool. You can check this by clicking here.
If this solution is outdated or does not apply to your problem, we recommend opening a new support ticket. We also recommend checking the page with known issues (https://wpml.org/known-issues/), verifying the version of the permanent solution, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/de/forums/forum/support-in-german/.
Problem: The client wants to display different currency symbols ('BGN' in English and 'лв.' in Bulgarian) on their website without using WooCommerce Multilingual & Multicurrency. Solution: If you're experiencing this issue, we recommend implementing custom code to check the website's language and adjust the currency symbol accordingly. Here is an example of how you can do this:
Please note that custom coding is beyond our support scope, so it's your responsibility to maintain and update this code as needed.
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.
Problem: The client is trying to fetch a localized string for a JavaScript file in the Gutenberg editor, but the string is not being returned in the current language of the admin screen, even after attempting to switch languages programmatically. Solution: We recommend using the
wp_set_script_translations
function to ensure that the JavaScript file recognizes the localized strings. This involves generating a .json file from the .po file and ensuring it is loaded through a WordPress hook. Here are the steps:
For more detailed guidance, refer to the WordPress documentation on how to handle internationalization in block editors: Internationalization in Gutenberg.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, you can open a new support ticket for further assistance at WPML Support Forum.
Problem: You need to redirect the root URL of your website to a language-specific version using WPML, but you are unable to create a template for the redirection. Solution: 1. First, create a PHP template in your site’s theme folder. You can name it 'Root redirect'. It's recommended to add PHP files to a child theme. For more details on creating custom page templates, visit Creating Custom Page Templates for Global Use. 2. Add the following content to your new PHP page template file:
3. Edit your root page and in the right sidebar, expand the Summary section and select the template you just created. 4. Update the page.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 at WPML Support Forum.
Problem: If you're experiencing issues with URL parameters not being passed when switching languages on your site, despite having 'Preserve URL arguments' correctly configured, this might be due to the parameters being populated via JavaScript.
Solution: We recommend modifying your 'Search' button to submit and reload the page. This adjustment should ensure that the parameters are correctly passed to the language switcher. If you prefer to keep your current setup, you will need to implement custom code to modify the language links in the language switcher to include these client-side populated parameters.
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 for further assistance.
Problema: Se stai riscontrando la duplicazione degli articoli tradotti visualizzati in entrambe le lingue sul tuo sito, il problema potrebbe essere dovuto alla mancanza di filtri per la lingua nel codice che gestisce la visualizzazione degli articoli. Soluzione: Per risolvere questo problema, dovresti aggiungere alcuni filtri specifici per WPML nel tuo array di argomenti quando recuperi gli articoli. Modifica il tuo codice come segue:
$current_language = apply_filters('wpml_current_language', NULL);
$args = array(
'numberposts' => -1, // -1 per tutti
'post_type' => 'annunci', // oppure 'post', 'page'
'orderby' => 'date', // oppure 'date', 'rand'
'order' => 'DESC', // oppure 'DESC'
'suppress_filters' => false, // Assicurati che WPML filtri i risultati
'lang' => $current_language, // Filtra per lingua corrente
);
Questo codice assicura che gli articoli vengano filtrati per la lingua corrente, evitando così la duplicazione nei risultati. Per ulteriori dettagli, consulta la pagina degli hook di WPML.
Se questa soluzione non dovesse essere più rilevante o non risolvere il tuo problema, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di verificare la presenza di problemi noti correlati su https://wpml.org/known-issues/, di controllare la versione della correzione permanente e di assicurarti di avere installato le ultime versioni dei temi e dei plugin.