From 1f15c20995faa1d44526ddbbd0678591fdd89a9e Mon Sep 17 00:00:00 2001 From: obenland Date: Tue, 30 Jul 2013 11:58:13 -0700 Subject: [PATCH] _s: Make theme headers translatable. Props @grappler. Fixes #203. --- README.md | 4 +++- style.css | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cc8b2f2c4..aa076d6c62 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,13 @@ Getting Started If you want to keep it simple, head over to http://underscores.me and generate your `_s` based theme from there. You just input the name of the theme you want to create, click the "Generate" button, and you get your ready-to-awesomize starter theme. -If you want to set things up manually, download `_s` from github. The first thing you want to do is copy the `_s` directory and change the name to something else - Like, say, `megatherium` - then you'll need to do a three-step find and replace on the name in all the templates. +If you want to set things up manually, download `_s` from github. The first thing you want to do is copy the `_s` directory and change the name to something else - Like, say, `megatherium` - then you'll need to do a five-step find and replace on the name in all the templates. 1. Search for `'_s'` (inside single quotations) to capture the text domain. 2. Search for `_s_` to capture all the function names. 3. Search for  _s (with a space before it) to capture DocBlocks. 4. Search for `_s-` to capture prefixed handles. +5. Search for `Text Domain: _s` in style.css. OR @@ -34,6 +35,7 @@ OR * Search for: `_s_` and replace with: `megatherium_` * Search for:  _s and replace with:  Megatherium * Search for: `_s-` and replace with: `megatherium-` +* Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium` in style.css. Then, update the stylesheet header in style.css and the links in footer.php with your own information. Next, update or delete this readme. diff --git a/style.css b/style.css index e4a75664a0..50367bf5bb 100644 --- a/style.css +++ b/style.css @@ -7,6 +7,7 @@ Description: Hi. I'm a starter theme called _s, or underscores< Version: 1.3-wpcom License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html +Text Domain: _s Tags: This theme, like WordPress, is licensed under the GPL.