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
-
August 7, 2014 at 4:50 pm #99017
Hi,
“Show all” is inside the theme translation.
Can you send me all your Spanish .po and .mo files(Cardinal and Woocommerce files)Can find “Share it” is it “Share this”? can make a screenshot?
-Rui
August 7, 2014 at 7:59 pm #99080I haven’t translated anything really yet, so everything is still like on the file you provide with the theme on the latest version, same with woo commerce.
I can’t translate the “Show All” string, is really the only one I really need, because the “Share This” i already hide it with CSS, but the “Show All” is important for me.
I tried with POEdit and get an error which I show on the picture. Please help.
I tried with WPML and no luck.
And finally I tried with CodeStyling and the string is nowhere to be found I got this error as well
link is this on my website
Attachments:
You must be logged in to view attached files.August 8, 2014 at 12:09 am #99177For now you can change it directly in the file if you prefer.
location “cardinal/swift-framework/content/sf-portfolio.php”
Around Line 288
$filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">'. __("Show all", "swiftframework").'</span></a></li>'. "\n";
Didn’t get any error when using poedit.
-RuiAugust 8, 2014 at 4:48 am #99222How did you do it in PoEdit to translate correctly.
My steps were:
1. Open PoEdit
2. Translate a wordpress theme or complement (Poedit pro feature)
3. Select es_ES as language to translate
4. Hit cmd+f to search the string “Show All”
5. Get zero resultsAugust 8, 2014 at 11:35 am #99361Hi,
-Just opened Poedit.
-Find the desire string.
-Replace the text
-Save
-Upload the .mo and .po to the landguage folderTry it without step 2 and 3, I guess that step 2 may replace the “Show All” and that’s why you can’t find it in step 4.
-Rui
August 23, 2014 at 6:26 pm #103506is there any way, EASY WAY, to change the language? i did everything, translated the strings, etc, and nothing, u should put an update with this option, this is becoming so annoying…
August 25, 2014 at 3:20 am #103673@Wished087 – It’s not the theme’s responsibility to designate what language it shows in. This is controlled in WordPress, via the setup in your wp-config.php file.
See here: http://codex.wordpress.org/Installing_WordPress_in_Your_Language
– Ed
August 26, 2014 at 2:04 pm #104149This reply has been marked as private.August 26, 2014 at 2:15 pm #104165@ruadasgaivotas thanks for the input.
-RuiOctober 9, 2014 at 11:50 am #118860Hi,
I am running into the exact same problems. For example my cart widget, shows al English text even though my wordpress setup is set to dutch. (In wordpress 4.0 I set it to Dutch under general settings. To be sure I ALSO used define (‘WPLANG’, ‘nl_NL’); in wp-config.php.)
It turns out about half the theme seems to be translated. For example. When i have a product in my cart. The widget says:
1 PRODUCT IN THE CART <- English
MICHEL
PRIJS PER STUK: €12.00 <- Dutch
HOEVEELHEID: 1 <- Dutch
×
VIEW CART <- English
NAAR AFREKENEN <- DutchSeems really much the same problem as described above. I tried translating the strings with Codestyling Localization plug-in, but they where already translated!
Please inform me how to fix this!
October 9, 2014 at 11:51 am #118861This reply has been marked as private.October 9, 2014 at 1:50 pm #118890Hi,
just copying the translation files it’s not enough to those files be loaded.
Check this topic.
http://support.swiftideas.net/forums/topic/swift-framework-translations-location-for-child-theme/-Rui
October 9, 2014 at 1:56 pm #118891Hi, after opening functions.php i noticed this piece came supplied:
/* LOAD THEME LANGUAGE ================================================== */ /* * You can uncomment the line below to include your own translations * into your child theme, simply create a "language" folder and add your po/mo files */ // load_theme_textdomain('swiftframework', get_stylesheet_directory_uri().'/language');
So i uncommented load_theme_textdomain. Do i need to add add_action from the mentioned post?
I put the translation files into the /languages folder, still i get half a translated site.
Also when i turn on the original theme….
October 9, 2014 at 1:59 pm #118893Ok. That should work.
What you mean by half translated? Need some specific examples?Please not that the folder name should be “language”
-Rui
October 9, 2014 at 2:02 pm #118895You are right, i named it correctly though, just typo in the post.
For example when i open the shop page:
The url and page title is dutch, but it says:
“Showing the single product” in english, Departments in english, the add to cart button on mouseover in english. Then when I add the product and I look at my cart mouseover widget in the menubar it says:
1 PRODUCT IN THE CART <- English
MICHEL
PRIJS PER STUK: €12.00 <- Dutch
HOEVEELHEID: 1 <- Dutch
×
VIEW CART <- English
NAAR AFREKENEN <- Dutch -
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.