Translation not working …
-
Hey,
I’ve manually translated some of the woocommerce words into german since they were still showing in englisch.
After the last update though the translations were gone.I’ve tried to reupload the .mo and .po files into the folder “wp-content/languages/woocommerce” but the translations I changed are still in english.
What am i doing wrong? Are the files also stored somewhere else?
I hope you can help! Thx,
Phil
-
Maybe you mistyped the directory or you put the files in the wrong directory!
But the directory to put those language files has to be like:…./wp-content/languages/plugings/woocommerce-xx_XX.po
-inside the (plugins) directory under (languages)
Check again…
hmm no i’ve tried to put them in:
/wp-content/languages/plugins/
and in:
/wp-content/languages/plugins/woocommerce
filenames are:
woocommerce-de_DE.mo
woocommerce-de_DE.poNothing works …
It’s so strange since most of it is translated.
What’s basically missing is:
in the Shopping Cart“You May Be Interested In…”
“Note: Shipping and taxes are estimated and will be updated during checkout based on your billing and shipping information.”
“Subtotal” & “Total” (but only in the Shopping Cart – If i go to the Checkout these 2 are translated.)
What’s missing in the Checkout is:
“Billing Address”
“Ship to a different address?”I think it was like this when i first started translating this rest – Now it’s all translated in the file but it won’t change …
I’m frustrated .. is there some way where i can maybe see what language file it’s pulling its information from?
still no success .. this is not really making sense to me .. anyone can help?
Hi,
According to the documentation:
https://docs.woothemes.com/document/woocommerce-localization/the place to put the translation is:
wp-content/languages/woocommerce/
You didn’t list this as one of the locations tried…
If you can display most of the texts translated but a few not,
then your problem is not the location/directory of the localization/translation files.That should mean you have the files located correctly, but maybe you cannot update the translation file?
What method are you using for translations?And also, there is not only 1 file for localization, maybe your theme had some overrides or some layout/display changes for woocommerce pages. So looking for your theme’s localization is also adviced.
@varktech.com:
Sorry forgot to list that one but i tried that also – no luck ..
Hey – well BEFORE the last woocommerce update i had the exact same problem. I then looked into the “woocommerce-de_DE.po” and changed the words that weren’t translated and translated them with poedit. That worked.
Then, after the update those same words weren’t translated anymore.
I believe that before the update the translation files had to be stored in “wp-content/themename/woocommerce”.
Then it changed to “wp-content/languages/woocommerce”I’ve also read that “wp-content/plugins/woocommerce” was correct – I’ve tried so many differnet folders but somehow i have the feeling it’s pulling the old, not fully translated language from somewhere else.
Is there any way i can see where it’s pulling the language from?
I’ve ported the website from one server to another – maybe for some odd reason it’s pointing to the older server – eventhough I have the correct folder created there too …
I’ve also checked the theme’s language files if there is the same words that are not translated but they aren’t in those language files (I guess because they are woocommerce-specific)
Small update:
I’ve just tried to translate other words to see if they change.
I took the files from the folder “wp-content/languages/woocommerce”.And voila – they changed to what i wanted them to be – just that the other stuff is NOT being translated .. somehow they are overridden by something but i can’t say from what .. I’ve checked the “de_DE.mo/.po” but those words aren’t in there. There aren’t any other files but admin and continents-cities files – also checked them to be sure .. no luck..
this makes no sense at all ..
As the German localization seemed to be 100%,
to be sure you are using the correct/latest update,
make a little test:First, delete all tohose woocommerce localizations and see your site is in default english mode,
After that;
There is a function within the Admin Panel
WooCommerce > System Status > Tools >
–Force language updateUse it to update your localization file.
Then see if it is ok, or overriden somewhere else?
Btw, which theme are you using?
As I know of, some themes have woocommerce functionalities included in the template files…
Hey Manus,
I’ve done everything as you told me.
Deleted all the localization files, changed to english.
Everything was back to english completely.So i went to woocommerce to force the language update.
Then everything turned into german .. just not the words i had listed before … i don’t get it ..First of all, I had to say that I don’t have enough info about the German localization files but I myself also use WooCommerce in another language, other than the default English. That is why I had some similar problems in the past, after some update procedures generally…
Not an exact same situation as yours, but I also had a similar problem: a few non-translated words displaying. They remain unchanged although I change those phrases in every translation file.
After a little search, I realized that the source for my “translation” errors were not the WooCommerce but the the theme. Some of the latest features added to the newest version of the theme were left untranslatable. I mean they were not even found in the translation files that is why they remain unchanged. The ones I thought I transtale were displaying in some other document pages etc.
For a fast solution, I made those changes in the theme files; turning those codes into “translatable / __()” text. And then contacted the theme-author about the situation, he replied that in a hurry adding the new features he forgot to modify/convert the codes for multi-language support and then he made the proper changes in the upcoming version update.After that incident; everytime I activate a new plugin/extension or a new theme, I also had to check the localization files. Because most of the time, plugins/themes had only the default English language files. If lucky enough to have a localization file, it is more than luck to have it “up to date”. That is why I always made my own translations and use my own localization files.
So, to summarize this;
I can advise you to check the other components used in your site settings;
I mean the components other than WooCommerce such as the theme, plugins, extensions or even the code snippets added into functions.php.In order to find a solution, first you have to clarify the source of the problem.
(btw, if there is a live link to your site,
or at least a list like the
Woocommerce>>System Status>>System Report
which shows the theme/plugins you use, it can be more helpful to suggest solutions.)hey thx again for the reply.
I’ve checke all the plugins in use. checked the language files to see if they have those words inside. None of them have them.
HereS a list of the plugins:
Age Verify
Contact Form 7
Artikel duplizieren
Duplicator
Force Regenerate Thumbnails
WPBakery Visual Composer
Revolution Slider
SI CAPTCHA Anti-Spam
Ultimate Coming Soon Page
WooCommerce
WordPress SEO
WordPress Social Ring
X – ShortcodesIs it somehow possible to show me where the site is pulling it’s translation file from? That way i can see where the file is.
Is there a live link / URL for your site to see where those non-translated words are displaying?
What about the “theme” you are using; I mean, which theme is active?
Are you using one of the default themes as twentyfifteen?It will be a good idea too see the working pages online in order to suggest anything.
I’m using theme x from themeco.
https://grimm-spirit.de/barwerkzeug/
if you put some of the stuff in your shopping cart and then press on “kasse” you will see “Billing Adress” and “Ship to different adress?” still being english.
- The topic ‘Translation not working …’ is closed to new replies.