Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › how to change cardinal theme language?
New Landing › How can we help? › Cardinal › how to change cardinal theme language?
- This topic has 59 replies, 10 voices, and was last updated 9 years by laranz – SUPPORT.
-
Posted in: Cardinal
-
November 18, 2014 at 3:25 pm #129211
“Still I get the permission issue error, are you sure the ftp points correctly to the theme?”
Do you mean i am in the right folder?
I am, but cannot locate the .po file, only .mo file…
November 18, 2014 at 9:44 pm #129330Hi,
Did you try my suggestion of editing the .po file using POEdit?? Take the .po files from the latest theme version in themeforest ( download it ) and use that to translate using POEdit, and keep me updated.
Let us know,
Thanks,
laranz.November 18, 2014 at 9:59 pm #129332hi Laranz,
cardinal/includes/options/languages/nl_NL.po doesn’t exist, I downloaded the newest version of the theme as you said, but this folder only contains the nl_Nl.mo file…
I can copy the .po file from cardinal/language if nescessary, or try to use poedit to open the .mo file and get a .po file as well. But the theme as is does not contain the file you asked me to CHMOD in the folder you specified…
what should I do?
regards
November 18, 2014 at 10:58 pm #129333Hi,
Can you copy the existent file in cardinal/language/nl_NL.po to cardinal/includes/options/languages/nl_NL.po
-Rui
November 19, 2014 at 9:34 am #129376Hi guys,
I uploaded the .po file from cardinal/languages tot options/languages folder and CHMODded tot 755,
what’s next?
November 19, 2014 at 11:01 pm #129551Hi,
Use the codestyling localization plugin to translate those texts, if need rescan the texts in that plugin options. ( If you are new to that plugins, I suggest you to go through its docs on getting started ).
Let us know,
Thanks,
laranz.November 19, 2014 at 11:12 pm #129554Hi Laranz,
I rescanned the dutch language in codestyling for both Cardinal parent and child theme. Still the same problem.
The strings are already translated in the .po file, but they don’t get translated in the front end. (As they have been all along)
I do not understand what is happening and I give you full permission to use either the ftp login info I supplied or the admin login to fix this issue.
Translations are not working with the theme as they should, and I feel like I am being sent around in circles telling you the exact same thing I told you 2 weeks ago, even though you said you would fix the issue for me if i sent you my ftp login.
Any help would be much appreciated.
November 20, 2014 at 12:04 am #129557I created a completely blank wordpress install, set to dutch language, with cardinal installed, for testing purposes.
I immediately noticed the same strings where untranslated as on my other install.
I then imported the demo content for “Shop two” using Cardinal demos plug-in (this is the demo I based my other page on also)
Off course i know the demo content is in English but also about half the theme strings which should be translated automatically when I install this way remain untranslated (same ones as in my other install…)
Some examples:“Unfortunately your shopping cart is empty” (Cart dropdown in nav)
“Previous article” “Next article” (blogposts)
“View cart” (cart dropdown when not empty)
“Update cart” (cart page)
“add to cart” (button in shop archive overlay)
“My wishlist on Cardinal test” (wishlist dropdown & wishlist page)on the other hand there are some strings that where not translated in my previous install, which are translated now strangely enough..
Some examples:“Reviews” (product page)
“add to cart” (product product page)
basically the entire checkout pageSo what I did next was install codestyling plug-in to check if i could find those untranslated strings. I got the same notice you got before about not having permissions for cardinal/includes/options/languages/nl_Nl.po
Once again this file doesn’t exist.
This makes me feel like there is something fundamentally wrong with the way the theme interprets translations.
I went ahead and copied the nl_Nl.po file from cardinal/language and CHMODded nl_Nl.po and nl_Nl.mo to 755.
Now I was able to scan the translation. As expected al untranslated strings contain translation according to codestyling.
Since this is a clean install I am now sure i did not screw anything up in customization so the problem in my eyes has to be with the theme, meaning I need a fix from you guys ASAP
Regards
November 20, 2014 at 12:04 am #129558This reply has been marked as private.November 20, 2014 at 1:53 pm #129714Hi,
Because that are the steps we need to do, I did that in the test installation and it works, see that in the demo site.. see it here for info: http://cardinal.swiftideas.com/documentation/#165 for more info..
Let us know,
Thanks,
laranz.November 20, 2014 at 4:02 pm #129770Hi,
i’ve found the message “Unfortunately, your cart is empty” in the file located here:
wp-content/themes/cardinal/swift-framework/core/sf-woocommerce.php
When i changed it with the italian translation everything worked fine.
I think some of the messages that don’t work are hardcoded in the core of swift.
Could you please fix this in order to keep the theme updated?
Thanks
November 20, 2014 at 5:03 pm #129787Hello again,
i’ve found that in the .po file the translation of “Unfortunately, your cart is empty” is linked to the 228 line of wp-content/themes/cardinal/swift-framework/core/sf-woocommerce.php but the i think the right line is 248.
thanks
Attachments:
You must be logged in to view attached files.November 20, 2014 at 6:55 pm #129806Hi,
If you notice next to the “Unfortunately, your cart is empty” there is the translation domain that in that case is “woocommerce” instead of “swiftframework”.
So this one should be translated in the woocommerce translation file.
-Rui
November 20, 2014 at 7:12 pm #129816Hi Laranz,
Thanks for setting up the test installation in the right way.
Could you please tell me what you did to fix the issue, so I can fix it in my “real” installation as well?
Regards
November 21, 2014 at 8:49 am #129924Hi,
I just install a plugin named “Loco translate” and generate the .mo file by clicking the save in that plugin, and it did the work. I suggest you to do the same in the real site too, delete the language folder and upload new translation files from the fresh download of the theme and generate the .mo file using the plugin.
Let us know,
Thanks,
laranz. -
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.