Hello,
I would like to know how to translate the sidebar elements.
The base language is EN.
Currently, it’s very strange. All 25 other languages are not translated, yet DE is translated on its own.
Regards
This topic has 14 replies, 3 voices, and was last updated 1 week ago ago by Samir Malik
Hello,
I would like to know how to translate the sidebar elements.
The base language is EN.
Currently, it’s very strange. All 25 other languages are not translated, yet DE is translated on its own.
Regards
Hi,
Thank you for reaching out to us.
The translation for the content of the safebar you specified comes from the XStore Core plugin.
When you visit the translation of the Woocommerce plugin https://posterworldwide.com/wp-admin/admin.php?bundle=woocommerce%2Fwoocommerce.php&page=loco-plugin&action=view you can see what the correct language codes – https://prnt.sc/ctwpM1EVDi44
You need to rename the translation files for the theme and the Core plugin – https://prnt.sc/tPpSUcXFAAOd https://prnt.sc/eMyqIyTvYbLp
Best Regards,
8Theme’s Team
Thank you very much for clarifying this issue for me.
I corrected the PO file names and it works.
However, when I click on another sidebar (this time, My Cart), I still have items that are not translated.
They are not automatically translated, but they seem to be standard Woocommerce or Xstore elements?
The sample image shows a FR page.
Regards
Hi,
Thank you for reaching out to us.
You need to sync translation – https://prnt.sc/dGl094Cm8G4Z (click Sync for the theme, core, and WooCommerce translation). Then find and translate the mentioned strings.
Warm Regards,
The 8Theme Team
Hi,
I synchronized the 3 elements for FR, but nothing has changed.
Regards
Hi,
Unfortunately, the FTP access details you provided lead to an empty folder https://gyazo.com/ae5c0a8d8df59dd160b9ad1fb8608f96
Please check the destination folder of the user, we need access to your WP installation.
Warm Regards,
The 8Theme Team
Hello,
you are right.
The reason is because I restored a backup, and as a result, we lost full access to your FTP account.
Everything is back to normal now, and you have access.
Regards.
To be clear, when I said “Everything is back to normal now,” I was referring to FTP access.
But my translation problem is still unresolved.
Regards
Urgent question: please see private content
Hello Bruno,
Our development team has installed the plugin on your website to add custom code to the functions.php file.
Best regards,
The 8Theme Team
Great, I feel reassured.
Regards
Hello Brunos,
The mini cart is loaded through an Ajax request, which prevents the translation from functioning correctly.
We have added the following custom code to the functions.php file in your child theme as a temporary solution. You may adjust the translations as needed:
add_action('wp_head', function() {
if ( get_locale() !== 'en-US') {
?>
<style type="text/css">
/* === Start --- Translations === */
/* Arabic */
html[lang=ar] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'المجموع الفرعي'; }
html[lang=ar] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'عرض السلة'; }
html[lang=ar] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'إتمام الشراء'; }
/* Bulgarian */
html[lang=bg-BG] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Междинна сума'; }
html[lang=bg-BG] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Преглед на количката'; }
html[lang=bg-BG] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Плащане'; }
/* Chinese (China) */
html[lang=zh-Hans] .et-off-canvas .cart-widget-subtotal .small-h:before { content: '小计'; }
html[lang=zh-Hans] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: '查看购物车'; }
html[lang=zh-Hans] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: '结账'; }
/* Czech */
html[lang=cs] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Mezisoučet'; }
html[lang=cs] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Zobrazit košík'; }
html[lang=cs] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Pokladna'; }
/* Danish */
html[lang=da-DK] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotal'; }
html[lang=da-DK] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Se kurv'; }
html[lang=da-DK] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Gå til kassen'; }
/* Dutch */
html[lang=nl-NL] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotaal'; }
html[lang=nl-NL] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Bekijk winkelwagen'; }
html[lang=nl-NL] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Afrekenen'; }
/* Finnish */
html[lang=fi] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Välisumma'; }
html[lang=fi] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Näytä ostoskori'; }
html[lang=fi] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Kassa'; }
/* French */
html[lang=fr-FR] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Sous-total'; }
html[lang=fr-FR] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Voir le panier'; }
html[lang=fr-FR] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Commander'; }
/* German */
html[lang=de] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Zwischensumme'; }
html[lang=de] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Warenkorb ansehen'; }
html[lang=de] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Zur Kasse'; }
/* Greek */
html[lang=el] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Μερικό σύνολο'; }
html[lang=el] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Προβολή καλαθιού'; }
html[lang=el] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Ταμείο'; }
/* Hindi */
html[lang=hi-IN] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'उप-योग'; }
html[lang=hi-IN] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'कार्ट देखें'; }
html[lang=hi-IN] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'चेकआउट'; }
/* Hungarian */
html[lang=hu] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Részösszeg'; }
html[lang=hu] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Kosár megtekintése'; }
html[lang=hu] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Pénztár'; }
/* Italian */
html[lang=it-IT] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotale'; }
html[lang=it-IT] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Visualizza carrello'; }
html[lang=it-IT] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Checkout'; }
/* Japanese */
html[lang=ja] .et-off-canvas .cart-widget-subtotal .small-h:before { content: '小計'; }
html[lang=ja] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'カートを見る'; }
html[lang=ja] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'チェックアウト'; }
/* Korean */
html[lang=ko-KR] .et-off-canvas .cart-widget-subtotal .small-h:before { content: '소계'; }
html[lang=ko-KR] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: '장바구니 보기'; }
html[lang=ko-KR] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: '결제하기'; }
/* Norwegian (Bokmål) */
html[lang=nb-NO] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Delsum'; }
html[lang=nb-NO] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Se handlekurv'; }
html[lang=nb-NO] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Gå til kassen'; }
/* Polish */
html[lang=pl-PL] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Suma częściowa'; }
html[lang=pl-PL] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Zobacz koszyk'; }
html[lang=pl-PL] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Do kasy'; }
/* Portuguese (Portugal) */
html[lang=pt-PT] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotal'; }
html[lang=pt-PT] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Ver carrinho'; }
html[lang=pt-PT] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Finalizar compra'; }
/* Romanian */
html[lang=ro-RO] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotal'; }
html[lang=ro-RO] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Vezi coșul'; }
html[lang=ro-RO] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Finalizare comandă'; }
/* Slovak */
html[lang=sk-SK] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Medzisúčet'; }
html[lang=sk-SK] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Zobraziť košík'; }
html[lang=sk-SK] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Pokladňa'; }
/* Spanish (Spain) */
html[lang=es] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Subtotal'; }
html[lang=es] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Ver carrito'; }
html[lang=es] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Finalizar compra'; }
/* Swedish */
html[lang=sv-SE] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Delsumma'; }
html[lang=sv-SE] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Visa varukorg'; }
html[lang=sv-SE] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Till kassan'; }
/* Thai */
html[lang=th] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'ยอดรวมย่อย'; }
html[lang=th] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'ดูตะกร้าสินค้า'; }
html[lang=th] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'ชำระเงิน'; }
/* Turkish */
html[lang=tr] .et-off-canvas .cart-widget-subtotal .small-h:before { content: 'Ara toplam'; }
html[lang=tr] .et-off-canvas.et_element .mini-cart-buttons .wc-forward:not(.btn-checkout):before { content: 'Sepeti görüntüle'; }
html[lang=tr] .et-off-canvas.et_element .mini-cart-buttons .wc-forward.btn-checkout:before { content: 'Ödeme'; }
/* === End --- Translations === */
html:not([lang*=en]) .et-off-canvas .cart-widget-subtotal .small-h:before {
font-size: 16px;
}
html:not([lang*=en]) .et-off-canvas .cart-widget-subtotal .small-h,
html:not([lang*=en]) .et-off-canvas.et_element .mini-cart-buttons .wc-forward {
font-size: 0;
}
html:not([lang*=en]) .et-off-canvas.et_element .mini-cart-buttons .wc-forward:before {
font-size: 14px;
display: block;
}
</style>
<?php
}
});
Best regards,
8Theme Team
I am therefore forced to do a hard-coded translation instead of getting an automatic translation for these elements which are supposed to be automatically translated via PO files.
When you say “temporary solution,” does that mean that the theme could later be updated to support automatic translation of these elements?
In any case, thank you for your analysis on this point.
Regards
Dear Brunos,
Our development team will review this issue and address it in upcoming updates.
Thank you for your patience and understanding.
Best regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up