So I have had a lot of problems with translations.
I updated WPML to the latest. And all Royal and some Woocommerce strings became “obsolete”. (when viewing them in string translator)
All my translations disappeared and WPML said they could do nothing. So They told me to retranslate everything.
Now I am in the process of doing so. However, I have noticed that when I search for strings, the royal theme does not show up, only the woocommerce strings.
I am now changing the woocommerce strings, and they do appear as expected on the website.
I am just afraid that there will be an update from you guys, so that I would have to translate all again.
You see, before the update, there was always strings with the domain royal. Now they are only Woocommerce. So I am afraid that after an update, the royal domain will show up again, and I would have to do the translations again.
Would you care to explain what is happening and how I should proceed.
Of course I have searched the theme for strings several times since the update, but the royal domain has not shown up.
Thanks for the help!Site URL: hidden Theme version: 2.3 WooCommerce version: latest
Ok, Thank you. At the moment i have stopped translating so it would be nice to know soon how I should proceed. My customers dont understand the website at the moment, since it is not translated.
I am looking forward to an answer soon..
We checked all changes which were made in the theme and they shouldn’t have affected translations. Unfortunately we can’t find the reason of your issue. On our test sites everything works properly and such problems don’t appear.
To avoid such situations we recommend you to create back up of site files and database before updating anything so you’ll be able to revert back if something goes wrong.
Please take our apologies.
I find it very strange the whole thing.
So now I see that when I make a search among blog posts. On the top it says:
Search results for: …
I wanted to translate that, and the only string I found was in the twentyfourteen theme.
I translated that, and now it shows the translation.
Somehow WP is choosing the strings for twentyfourteen as the woocommerce strings..
Why does this happen? it should not be like this right?
Why I am asking is because I thought WPML plugins were compatible..
I’ve just checked the text “Search results for” on your site and it’s not translated:
Also as I see this string isn’t translated in WPML > String Translation.
Please check it.
Ok well it is translated now.
However, if you go into WPML >> Theme and plugins localization >> Strings in the Theme..
Normally, the Royal theme would show up there.. Now it is not showing up there anymore.
Do you know why?
More likely the problem with strings is related to WPML update and changes that occurred with this update. As we can see from your conversation with WPML support https://wpml.org/forums/topic/string-translations-gone-after-update-have-tried-everything/ they’ve known about this problem from other clients who updated the plugin from 188.8.131.52 to 3.2.x version. It’s not related to our theme.
Although the strings are set as obsolete in admin panel their translation is still working as we can see on frontend.
Well, even if you can see it correctly in the front end, those are not Royal theme strings. We can’t see the theme in WPML anymore, so something is very wrong. It doesn’t find any strings from the theme anymore. So the strings we have translated are from theme twentytwelve and WordPress.. Royal theme does not even appear anymore..
Oh that sounds great! It is Yvette who is working on the issue at the moment:
They seem to be on to something, but it would be great if you gave them a push!
After our conversation with WPML support we discovered that according to WPML modifications you need to do the following:
1) You need add “Text Domain: royal” in the header of style.css file in the theme directory, for example
Theme Name: Royal- 8theme WordPress theme
Theme URI: http://8theme.com/
Author URI: http://themeforest.net/user/8theme
Description: ThemeForest Premium Theme
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: royal
2) Before scanning strings in WPML > Theme and Plugins Localization you need tick
“Automatically use theme or plugin text domains, when gettext calls does not use a string literal.”
We can’t guarantee that such problem won’t happen again because changes depends on WPML plugin more than on us.
Also we recommend to make back up before each update of a plugin or theme.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Your shopping cart is empty