forked from mirror/_s
_s: Make theme headers translatable. Props @grappler. Fixes #203.
This commit is contained in:
parent
4227e37e47
commit
1f15c20995
|
@ -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 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.
|
1. Search for `'_s'` (inside single quotations) to capture the text domain.
|
||||||
2. Search for `_s_` to capture all the function names.
|
2. Search for `_s_` to capture all the function names.
|
||||||
3. Search for <code> _s</code> (with a space before it) to capture DocBlocks.
|
3. Search for <code> _s</code> (with a space before it) to capture DocBlocks.
|
||||||
4. Search for `_s-` to capture prefixed handles.
|
4. Search for `_s-` to capture prefixed handles.
|
||||||
|
5. Search for `Text Domain: _s` in style.css.
|
||||||
|
|
||||||
OR
|
OR
|
||||||
|
|
||||||
|
@ -34,6 +35,7 @@ OR
|
||||||
* Search for: `_s_` and replace with: `megatherium_`
|
* Search for: `_s_` and replace with: `megatherium_`
|
||||||
* Search for: <code> _s</code> and replace with: <code> Megatherium</code>
|
* Search for: <code> _s</code> and replace with: <code> Megatherium</code>
|
||||||
* 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.
|
Then, update the stylesheet header in style.css and the links in footer.php with your own information. Next, update or delete this readme.
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ Description: Hi. I'm a starter theme called <code>_s</code>, or <em>underscores<
|
||||||
Version: 1.3-wpcom
|
Version: 1.3-wpcom
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
Text Domain: _s
|
||||||
Tags:
|
Tags:
|
||||||
|
|
||||||
This theme, like WordPress, is licensed under the GPL.
|
This theme, like WordPress, is licensed under the GPL.
|
||||||
|
|
Reference in New Issue