localization stuffs

This commit is contained in:
James Koster 2015-07-02 15:32:07 +01:00
parent 29f9deac68
commit 6f99f6a805
2 changed files with 6 additions and 7 deletions

View file

@ -40,7 +40,7 @@ if ( ! function_exists( 'storefront_setup' ) ) :
// wp-content/themes/child-theme-name/languages/it_IT.mo
load_theme_textdomain( 'storefront', get_stylesheet_directory() . '/languages' );

// wp-content/themes/theme-name/languages/it_IT.mo
// wp-content/themes/storefront/languages/it_IT.mo
load_theme_textdomain( 'storefront', get_template_directory() . '/languages' );

/**

View file

@ -1,11 +1,10 @@
# WARNING! Do not place your translation files here.
# Notice! Do not place your custom translation files here.

Any translation files placed here will be deleted when you update Storefront.

## Translating Storefront
Put any custom Storefront translation files in your WordPress language directory: `/wp-content/languages/themes/storefront-it_IT.mo`.
Storefront will look in this directory for translations as a fallback. If you're using one of the bundled translations without any edits this is fine. However, if you make any customisations they will be overwritten during updates. Instead, use the global WordPress language directory and install your translations like so: `/wp-content/languages/themes/storefront-it_IT.mo`.

Alternatively you can put translations in your child theme: `/wp-content/themes/your-child-theme/languages/it_IT.mo`.

You can read more about installing Storefront in your language [here](http://docs.woothemes.com/document/installing-storefront-in-your-language/).

## Contributing your translations back to Storefront
If you would like to help out translating Storefront, please contribute on our translation page at [Transifex](https://www.transifex.com/projects/p/storefront-1/)
If you would like to help out translating Storefront, please contribute on our translation page at [Transifex](https://www.transifex.com/projects/p/storefront-1/). Read more about that [here](http://docs.woothemes.com/document/translating-storefront/).