Tuesday 19 May 2015

how to change woocommerce language?

WooCommerce comes localization ready out of the box – all that’s needed is your translation, if the plugin does not come bundled with one for your language.
There are several methods to create a translation, most of which are outlined in the WordPress Codex. However, we find the easiest method is to use a plugin called Loco Translate. More advanced users can use PoEdit. Both methods are covered in this doc.

Before you begin 

WooCommerce includes a language file (.po or .pot file) which contains all of the English text. You can find this language file inside the plugin folder in woocommerce/i18n/languages/.

Set up WordPress

WordPress needs to be told which language it should run under.
  1. Go to: Dashboard > Settings > General and change the Site language.
Once this has been done, the shop will be displayed in your locale if the language file exists. Otherwise you need to create the language files (process explained below).

WooCommerce 2.2+ Language Packs 

From version 2.2, WooCommerce includes a language pack downloader. PO and MO files will no longer be bundled with the plugin – they will be downloadable from your dashboard if you have the WPLANG constant set, or from a git repository if you wish to grab them manually. A notice will be displayed within your administration:
Update WooCommerce 2.2+ Translation Packs
Update WooCommerce 2.2+ Translation Packs
If for some reason the translation packs install fails, you can force the download in WooCommerce > System Status > Tools > Force Translation Upgrade:
Force Translation Upgrade (WooCommerce > System Status > Tools)
Force Translation Upgrade (WooCommerce > System Status > Tools)
PO and MO files are copied in wp-content/languages/woocommerce/

3 comments:

  1. I am very happy to see your blog,

    good article and interesting,

    *reach your marketing lists or Sales

    Leads*

    Email Appending list is continuously

    updated with most accurate, quality

    and verified contacts.

    Ehealthcarelists can provide WOO COMMERCE Users

    Email
    complete marketing

    information such as

    · First Name, Last Name
    · Business Name
    · Practice Specialty, Specialty Code
    · Email, Postal Address and Zip Code
    · SIC /NAICS Code and NPI Numbers.
    · Phone Number and Fax Number
    · License Number
    · Web address

    Thanks for the information and

    Greetings

    ReplyDelete
  2. Woocommerce Theme Reviews / Comments



    Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it.

    I don't have a /comments.php file in my theme root but i'm trying to use this:

    comments_template( 'single-product/reviews.php' );

    I don't know why but it's showing the default code with the avatar images and that. I don't need this. Basically I just need their name and 5 stars (using font-awesome). I know I don't have much code to show as i'm getting stuck at the comments template. Even if I try comments_template( '' ); it displays the default wp template.

    This comments function is is called from content-single-product.php if that is anything. It might be important to note i'm building this ontop of underscores, that might.

    Would it be worth just coding the review section manually? I'm only listing the reviews and outputting the form right?

    ReplyDelete
  3. I think this article will fully complement you article. PLease continue publishing helpful topics like this. Regards, from Always Open Commerce

    ReplyDelete

Popular Articles