Tagged: translate text in php files
April 19, 2012 at 1:37 pm #11582
I know this isn’t directly related to this theme, but as many users will implement the WooCommerce plugin with flashlight, I thought it was relevant.
Some words doesn’t seem to be translated via the language files (with poedit), but are probably located in some .php files.
Words I’m thinking about is; cart, my account, logout, search…
I searched the “woocommerce_functions.php” file for the word “cart”, and found it listed several times.
I wonder if it is the times it looks like this between brackets and with quotation marks I’m able to translate it, or maybe it isn’t that straight forward?
Here is an excerpt from the php file:
$cart_totals = $_POST;
Could I then do this?
$cart_totals = $_POST;April 19, 2012 at 5:21 pm #72246
I discovered that WooCommerce has an additional set of language files found in the informal and formal folder under languages… I’ll dive into translating those.April 20, 2012 at 6:35 pm #72247
Let us know how it turns out. I know there is some discussion areas with woo commerce on translation as well so they will probably have some good resources available as well.
If you come upon any bits and pieces that are getting re-added in english via the theme files and are unsure how to edit them, post them here and we’ll do our best to help.
DevinApril 21, 2012 at 3:47 pm #72248
I started translating the german PO file found in the informal folder of languages into Norwegian. It is a BIG task with a lot of snippets of text to translate. After I had removed all german translations and replaced what I thought most necessary into norwegian, I copied it to the server to see if magic would happen… Some text did translate correctly, but I had to remove the PO file because some german text appeared here and there even though I thought I had deleted all… Maybe WooCommerce recognized the file as german even though I saved it as nb_NO?
(I have set WPLANG to “nb_NO” in the wp-config.php)
I’ve googled a little on WooCommerce translations, and it seems you have to be a paying member to get any support or access to support forums. So I’m a bit on hold with this…April 23, 2012 at 8:54 pm #72249
If you click the “Free Download” button on http://www.woothemes.com/woocommerce/ and complete the form you’ll be registered (without having to pay) for WooCommerce’s public forum. You won’t have access to the WooCommerce developers but you will have access to other users/members who may be able to help with your questions.
The topic ‘Translate some text in the woocommerce files’ is closed to new replies.