From 6f99f6a80507490daa71abf0997c81e7219525a8 Mon Sep 17 00:00:00 2001 From: James Koster Date: Thu, 2 Jul 2015 15:32:07 +0100 Subject: [PATCH] localization stuffs --- inc/functions/setup.php | 2 +- languages/README.md | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/inc/functions/setup.php b/inc/functions/setup.php index 9794bb83..3f2d10ef 100644 --- a/inc/functions/setup.php +++ b/inc/functions/setup.php @@ -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' ); /** diff --git a/languages/README.md b/languages/README.md index ebeee047..475df1b0 100644 --- a/languages/README.md +++ b/languages/README.md @@ -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/).