Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Theme es_ES translation files not applied
New Landing › How can we help? › Atelier › Theme es_ES translation files not applied
-
Posted in: Atelier
-
June 30, 2015 at 12:29 pm #190151
I am not able to configure template with language es_ES.
Wordpress is es_ES configured but the theme does not apply mo file for translated strings. As far as I know, everything seems correct (theme loads textdomain) and inspecting the po file, seems that many strings are translated. However, theme options still appear in English and other strings used to navigate through the website.
I would appreciate any solution on this.
Thanks in advanced
Attachments:
You must be logged in to view attached files.July 1, 2015 at 10:51 am #190525Hey!
Could you please supply a WP login credential for us and post a link to your site or page in question for us to investigate?
Thanks.
July 1, 2015 at 6:09 pm #190736of course!
I am working locally right now, but i have uploaded a copy to following address (deploy server):
http://www.differentstore.es/wp-admin/
user: administrador
pass: _administrador_Actually you can change data to check or test something as this is not the real data and it will change with a fresh install later on.
What I am more concerned is with strings as: “Proceed to checkout”, “view wishlist”, etc. that should appear in spanish as it is translated at .pot.
Thanks in advanced!
July 1, 2015 at 6:46 pm #190749Hi,
Did you checked the Woocommerce translation file?
The theme options are ready for translation but need to be translated inside the .po file.
Did you made any of this theme options translation?
Thanks
-RuiJuly 1, 2015 at 7:11 pm #190756yes! Strings as “Proceed to checkout” are filled in; at least in the provided es_ES.po which I attached to this post.
Maybe the mo is not paired with this file and I should save it to reveal changes. In any case I will check it out but I will still attach the files.
Thanks in advanced.
July 1, 2015 at 7:16 pm #190758Also try to copy the .mo files to wp-content/languages/
Let us know how it goes.
-Rui
July 6, 2015 at 11:23 am #191916Hi,
it seems that it does not work. I have opened and saved again the es_ES.po file with poedit (which converts the po file into mo file.).
I attach the images that shows the process.
image1 shows the path of the mo file (inside the atelier theme folder)
image2 shows that the po file translates string Performance Options
image3 shows no translation on the string Performance Options.Thanks in advanced
Attachments:
You must be logged in to view attached files.July 6, 2015 at 12:59 pm #191984Hi,
Is the only issue the theme options are not translating?
– Are you using WPML?
If so, you have to save the Admin Language in WPML menu ( Set Default admin language ).
Thanks.
July 6, 2015 at 1:06 pm #191986Yes is the only issue.
I actually see everything alright but can not understand why it is not translating. Theme Textdomain wordpress api checks the files correctly and WP language settings are set to spanish. Actually all plugins beside the theme detect the language.
I am totally lost on this issue.
Thanks in advanced.
July 6, 2015 at 1:08 pm #191987Sorry I forgot to tell that I am no using WPML or other plugin. The Site will be in spanish (no translation by the moment).
Thanks in advanced
July 6, 2015 at 4:14 pm #192085Hi,
Please use WPML to translate the theme options.
Thanks.
July 6, 2015 at 6:02 pm #192135I have installed and configured WPML. I checked that founds the .mo file in the configuration options but I still have no translated options.
Actually I do not believe that I should use WPML to get locale files (es_ES.mo). Moreover, the site won’t have any translated content in the near future so I do not believe that I should install any WP language manager. Of course, it could be a possibility for the future and I would like to solve this problem.
Woocommerce, for instance, loads all locale files correctly. I suspect that it should be something with either the .po file or any other way to load it.
I have output get_locale();die(); in functions.php right after load_theme_textdomain(… and it shows es_ES.
Finally, I would like to translate not only theme options but woocommerce strings used in this theme as: “Proceed to checkout”.
es_ES.po
#: swift-framework/core/sf-header.php:1214
#: swift-framework/core/sf-woocommerce.php:692
#, fuzzy
msgid “Proceed to checkout”
msgstr “Proceder a la comprobación”Thanks in advanced.
July 7, 2015 at 5:18 pm #192499Hi,
Can you check if you also have a directory called wp-content/languages/
If so try to copy there your translated .mo files
-Rui
July 7, 2015 at 6:00 pm #192511I already did that but anyway I have again copied it to the languages folder without success. Still no translation appears after reset browser cache, etc.
I did also copy the es_ES.mo provided in the language folder of atelier to wp-content/languages/themes and (according to wordpress documentation) I changed the filename as follows: {domain}-es_ES.mo I checked with following names:
1)swiftframework-es_ES.mo
2)atelier-es_ES.moAnd neither of them worked.
The theme is great, really, very good work but I am totally lost after reading wordpress doc about theme translation and standards. Provided .mo file does not seem to be corrupted and echoing output of load_theme_textdomain results in 1 (True: everything fine) but no string is translated.
I would appreciate any help as the goal is to configure an online shop for spanish (Spain) customers.
Finally, should I turn on some theme options to allow woocommerce-quickview? It does not appear.
Thanks in advanced.
July 7, 2015 at 7:36 pm #192528Hi,
I have realized that translation works but not all strings are translated. “My account” and “Sign out” get translated but proceed to checkout dont.
Could it be a .po error?
Thanks in advance
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.