June 17, 2012 at 1:08 am #13352
I am installing my site in german, and I am using the woocommerce translation files. Everything seems to be working but in the header the cart, does not translate
Is there a way to change it manually?
here’s my site http://www.young-passion.deJune 17, 2012 at 9:27 am #78882
Abundance supports .po/.mo translation files. To use them please unzip the po file and open it with Poedit (http://www.poedit.net/download.php). Now translate all text strings. Save the translated text strings under following name “your-language-shortcut.po” . Assuming you come from Sweden save it under: sv_SE.po, if you’re from Germany de_DE.po
A list of language shortcodes can be found here: http://codex.wordpress.org/WordPress_in_Your_Language
At least you must save/upload/copy the generated .mo file in your theme main folder.
Attention: WordPress will only use the translation file if you set the right backend language: http://codex.wordpress.org/Installing_WordPress_in_Your_Language
Please upload your translated files (by using one click hosters like http://mediafire.com ) and post a link here. It will save other users a lot of time and maybe you’ll get some feedback (i.e. suggestions how to improve your translation, etc.).
Default, untouched english po file – use it to translate Abundance to your language. You can find them in the “lang” folder (wp-content/themes/abundance/lang is the default path).June 18, 2012 at 12:51 pm #78883
It seems like kriesi forgot to add “Cart” translation string to the .po/.mo files…because I can’t find “Cart” inside the .po file?
Look for line 393 in the config.php found under wp-content/themes/abundance/woocommerce-config/
$output .= "<a href='".$link."'>".__('Cart', 'avia_framework')."</a><span class='cart_subtotal'>".$cart_subtotal."</span>";
and change ‘Cart’ to ‘warenkorb’
Also the “search site” text in the search box doesn’t get translated with the .po file to change this look for line 4 in the searchform.php found under wp-content/themes/abundance/
<input type="text" id="s" name="s" value="search site"/>
and change “search site” to “suchen”
Hope this helps!
WarriorSanJune 20, 2012 at 5:26 pm #78884
The topic ‘change cart in header to Warenkorb’ is closed to new replies.