Can’t translate “back to cart” string
-
Hi there,
I’m using Loco Translate to translate your plugin to my language. Looks like there is no string for the “back to cart” button. Or did I miss something ?
Where do we send you the translation files ?
Thanks !
Pr
-
Hi @prwackymonarch,
the back to cart button are print by WooCommerce plugin and for this reason you don’t find this string in our plugin ??
Please, with loco translate, look in WC plugin for this string.
Let me know if you need more help about this.Have a nice day
YITHIm having the same problem, cant find the string to translate, even in the WC with loco, if its possible i would prefer to disable it from check out, if i could put a line in the style.css id love to.
other thing i couldnt find the string of the wordpayment
(last step of the checkout) with the loco, both multi-step and WCthanks
-
This reply was modified 7 years, 8 months ago by
gspsites. Reason: grammar
Hi, in the file frontend.css i change ‘text-transform: uppercase; display: inline-block; vertical-align: bottom; margin-left: 5px;’ to ‘display: none;’ but isnt the best solution, i really dont like this ‘back-to-cart’ button, first because i cloundt translate it, second its uppercase, third when my client is in the checkout i want him to fish the ordor, not to go back to cart. if its a better solution i would like to know
To hide the “Back to Cart”-Button just add following to your Child Theme style.css:
#yith-wcms-back-to-cart-button { display: none !important; }
The header title “Payment” it′s missing in the .pot file for which reason you will not find it in your translation file. If you′re using Loco Translate just click “Edit Template” –> “Add” and add “Payment” at the source text –> “Save”.
Go to your language file and sync it. After that you′re able to translate “Payment”.Hi there,
thanks for your reporting,
I send your reporting to our developer to check the pot file.
Have a nice day
YITH
Hi there,
let me know any news about this issue, please.
-
This reply was modified 7 years, 6 months ago by
giowebmaster.
Archive “form-checkout.php”
Line 30 (Translate issue with 2 last array items)
$labels = apply_filters( 'yith_wcms_timeline_labels', array( 'next' => __( 'Next', 'yith-woocommerce-multi-step-checkout' ), 'skip_login' => __( 'Next', 'yith-woocommerce-multi-step-checkout' ), 'prev' => __( 'Previous', 'yith-woocommerce-multi-step-checkout' ), 'login' => _x( 'Login', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 'billing' => _x( 'Billing', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 'shipping' => _x( 'Shipping', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 'order' => _x( 'Order Info', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 'payment' => _x( 'Payment Info', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 'back_to_cart' => _x( 'Back to cart', 'Frontend: button label', 'yith-woocommerce-multi-step-checkout' ) ) );
Line 125
<h3 id="payment_heading"><?php _e( 'Payment', 'yith-woocommerce-multi-step-checkout' ); ?></h3>
Line 138
<a href="<?php echo wc_get_cart_url(); ?>" id="yith-wcms-back-to-cart-button" class="<?php echo $button_class ?>"><?php echo $labels['back_to_cart'] ?></a>
I will try to add these 2 labels on .po and .mo files
Hi @giowebmaster,
the text domain it’s correct, probably you need to update the po/mo file. For this you need to use PoEdit, you can download this tool for free here: https://poedit.net/
you need to download a local copy of multi step plugin, go in languages folder and open the po file. After this click on update button, and save the file with the new string.
This operation will add the new string and delete the old one.
for more details look this screenshot:
https://storage2.static.itmages.com/i/17/0829/h_1504000158_5686552_6b98944a9a.png
Let me know.
Have a nice day
YITH
Thanks for the answer, but I tried, but the $ labels payment and back_to_cart do not exist in the .POT, I added them in .POT using IDE Brackets, create the .PO and .MO, but it did not work.
Code add to .POT file
#: templates/woocommerce/checkout/form-checkout.php:37 msgctxt "Checkout: user timeline" msgid "Payment" msgstr "Pago" #: templates/woocommerce/checkout/form-checkout.php:38 msgctxt "Checkout: user timeline" msgid "Back to cart" msgstr "Volver al Carrito"
neither using the plugin ” Loco Translate “, I finally had to change the texts directly in the code. While the plugin is updated, someone gives the correct instructions or I have enough time to continue with the analysis of this issue
I Change in line 39 ‘Back to Cart’ by ‘Volver al Carrito’.
'back_to_cart' => _x( 'Volver al Carrito', 'Frontend: button label', 'yith-woocommerce-multi-step-checkout' )
And change line 125 ‘payment’ by ‘Informaci贸n de Pago’
<h3 id="payment_heading"><?php _e( 'Informaci贸n de Pago', 'yith-woocommerce-multi-step-checkout' ); ?></h3>
Sorry I take sample code of .PO file, the real code in .POT file is as follow:
#: templates/woocommerce/checkout/form-checkout.php:37 msgctxt "Checkout: user timeline" msgid "Payment" msgstr "" #: templates/woocommerce/checkout/form-checkout.php:38 msgctxt "Checkout: user timeline" msgid "Back to cart" msgstr ""
Hi,
our developers are working on this issue.
Thanks for your patience.
Have a nice day
YITH
-
This reply was modified 7 years, 8 months ago by
- The topic ‘Can’t translate “back to cart” string’ is closed to new replies.