WordPress WooCommerce words not translated - php

I am trying to translate woo-commerce using WPML. I am translating woo-commerce in Chinese languages using .mo and .po files. Everything is translating fine but some words is not translted like quantity, Paypal, view cart etc. I try to translate it using string translator but not effected.
Any suggestion please.
Thanks

In WPML -> Theme and plugin localization please select the option "Translate the theme and plugins using WPML's String Translation" option. After that, scrolldown and click the Scan buttons for both themes and for plugins.
Finally, after the operation completes, please go to WPML -> String translation and search for the strings you want to translate.

Related

Loco Translate not shows all translations

I am using Loco Translate to translate wordpress and woocommerce. Great plugin, but unfortunately some string translations are not visible/working on the frontend at the checkout page and cart. Could this be a child team problem?
Strings are know in Loco Translate and correctly translated, they are only not showing up at frontend.
Translation String issues:
Have a coupon? Click here to enter your code.
Flat rate:
Subscribe to our newsletter
Site www.narwal.shop/checkout
Help is appreciated.
Go to wp-content and uploads directory. create a new directory and name it as same as the plugin name. then create a new directory and name it languages.
now upload your .po and .mo files in it.
the problem is solved!
Force WP to load the language file from languages/loco/themes/.. directory, like this inside functions.php:
add_action ( 'wp', 'load_translations' );
function load_translations() {
load_theme_textdomain( 'theme-name-here' );
}
Update: you should contact the creator of the (child) theme.
Every single component that displays text (i.e.: almost all of them), including themes and plugins, need to have included multilingual support for it to work.
Woocommerce does it, but you might have other components that do not. If you have a custom theme, that would be the first thing I'd check.
Unfortunately, if this is the case there is nothing you can do about it other than not use it, accept that that part of the site will not be translated or ask the developer who made them to put in the extra work to add multilingual support.
See also: https://localise.biz/wordpress/plugin/child-themes
In my case it was a wordpress language problem. I resolved this by changing it from English to my target translation language. To achive this in your wordpress panel go to: Settings -> General -> find language and change it.

WooCommerce: Localise some text button in storefront theme

I am making Wordpress/WooCommerce webiste, and I am using "Storefront" as theme, but now I have problem because I am not making website in English, so now I want to change buttons text, on example "View Basket", "Checkout" and "Add to Basket".
But I don't know where can I change it in code. Or what I need to do to change it?
You can install Storefront in a language of your choice. You might want to follow this guide https://docs.woothemes.com/document/installing-storefront-in-your-language/
There you will also find the link to create a custom WooCommerce Localization
You will need to decide what fits your needs.
Custom translations can basically be done by putting translation files into
wp-content/languages/themes/
For Storefront name the file
storefront-it_IT.mo
You will find more information on the refered link
Ok what is properly answer here, and most easiest solution: You should download translated files for your language, probably Wordpress community from your country did it already. So zipped files you should unzip and insert into
wp-content/languages/themes and wp-content/languages/plugins. You should have 2 files with .po and .mo extensions. After that simply go in your dashboard->settings->Site language: "Your language".
And that should be it.
https://docs.woothemes.com/document/installing-storefront-in-your-language/

WPML Woocommerce Support

My website is multilingual(En,fr,rs) having woocommerce created by using the qTranslate plugin. But the problem is that, I am unable to translate woocommerce message (cart, checkout, email contents) but fortunately achieved with jQuery except email notification and thank you order page.
At the last WPML paid plugin purchased but how to use it only for woocommerce(cart, checkout, email contents etc) pages and I don't want WPML functionality over all the site.
Is there any setting to disable WPML for the site where enable only for woocommerce section only, because I have already achieved my task as I want with qTranslate?
One more thing don't suggest "qTranslate to WPML importer" plugin which is useless for my site. Your help will be very appreciable.
You'll need WPML String Translation and Woo Multilingual Plugin by WPML to translate those items.
On other hand, if your website is made in 1 language, you can use PO files to translate such staff. Don;t forget about special software for proper editing.
Cheers
#oliver is right but WPML is one of the Worst multilingual plugin for WordPress as it down the site and by which it hammers the SEO and speed of site.
I have used WPML on 4 sites and its a average rating.

Wordpress WPML how to print translation

I'm trying to translate texts in a WordPress template file:
_e('Sport Events Organizing', 'theme-text-domain');
I've setup the translation for spanish on WPML String Translation. Checked "Finished Translation" and clicked "Save". Then I browse my site and change the language to "Spanish". But the text still appears in english. URL shows the ?lang=es parameter.
To get WPML to make the translations for this text available I had to register it with:
icl_register_string('theme-text-domain', 'Sports', 'Sport Events Organizing')
Why is the spanish translation not showing? Is there a way to debug this?
First you have to translate the strings from the admin panel , the strings wrapped in __() or _e() will appear in the wpadmin panel under the String translation module if you haven't install this plugin then first install this wpml plugin below is the snapshot in which you can see the list of strings need to be translated and from there you can edit the translations from default language to other languages
When ever you add new strings in your theme you have to refresh the translation module to get the new strings in the translation module see below attached snaps
Under Theme and plugins localization menu
And in same module you will see the plugins and there strings you can rescan them and they appear in string translation module
Hope it makes a good sense for the cycle of translation

How to translate the post/page content of a theme

I am working on a site in which I have to give the option of 3 languages on the front page.
I searched a lot and was successful in translating the theme using .pot files but it is translating only the default strings of Wordpress.
I want to translate the post/page contents too which we are adding from wp-admin.
I don't want to do it with any Google translator or sidebar plugin. I want to offer this option in the index page.
Any help will be welcome.
Consider using i18n plugins such as qTranslate

Categories