Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Commit

Permalink
Update I18N for 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmann committed May 6, 2013
2 parents 37f46a6 + 16d698a commit 0fa3c97
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ You should only ever be modifying script files in the `/js/src` directory. Grun

### Images

The `/img/src` directory exists only to allow you to keep track of source files (like PSDs or separate images that have been merged into sprites). This helps keep source files under version control, and allows you to bundle them with the distribution of your new GPL plugin.
The `/images/src` directory exists only to allow you to keep track of source files (like PSDs or separate images that have been merged into sprites). This helps keep source files under version control, and allows you to bundle them with the distribution of your new GPL plugin.

## Release History

* 2013-05-06 v0.1.3 Several I18N updates (props @bradyvercher)
* 2013-04-29 v0.1.2 Folder restructuring and renaming.
* 2013-04-26 v0.1.1 Minor bug fixes.
* 2013-04-25 v0.1.0 Initial public release.
2 changes: 1 addition & 1 deletion root/assets/css/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Styles

Only CSS styles should exist in this folder. If you are using SASS, LESS, or some other pre-processor, please place your raw source folders in a subdirectory.
Only CSS styles should exist in this folder. If you are using SASS, LESS, or some other pre-processor, please place your raw source files in a subdirectory.
4 changes: 2 additions & 2 deletions root/assets/js/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* Licensed under the GPLv2+ license.
*/

( function( window, undefined ) {
( function( window, undefined ) {
'use strict';


} )( this );
} )( this );
2 changes: 1 addition & 1 deletion root/assets/js/vendor/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Vendor Scripts

Place each vender JS project in a separate subdirectory of this folder. Vendor scripts are not run through JSHint by Grunt, but *can* be dynamically concatenated with other project scripts by adding them to the `contact` section of `Gruntfile.js`.
Place each vendor JavaScript project in a separate subdirectory of this folder. Vendor scripts are not run through JSHint by Grunt, but *can* be dynamically concatenated with other project scripts by adding them to the `concat` section of `Gruntfile.js`.
2 changes: 1 addition & 1 deletion root/images/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Project Images

Only images in-use by the project should be placed in this folder. Wherever possible, combine multiple small images into sprites to be used by CSS. Original (non-sprite) images should be placed in the `/src` subdirectory.
Only images in use by the project should be placed in this folder. Wherever possible, combine multiple small images into sprites to be used by CSS. Original (non-sprite) images should be placed in the `/src` subdirectory.
4 changes: 3 additions & 1 deletion root/languages/plugin.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_x;_n\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
"_n_noop:1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"

16 changes: 10 additions & 6 deletions root/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,23 @@
* Author: {%= author_name %}
* Author URI: {%= author_url %}
* License: GPLv2+
* Text Domain: {%= prefix %}
* Domain Path: /languages
*/

/**
* Copyright {%= grunt.template.today('yyyy') %} {%= author_name %} (email : {%= author_email %})
*
/**
* Copyright (c) {%= grunt.template.today('yyyy') %} {%= author_name %} (email : {%= author_email %})
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2 or, at
* your discretion, any later version, as published by the Free
* Software Foundation.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Expand All @@ -37,7 +39,9 @@
* - Registers the default textdomain.
*/
function {%= prefix %}_init() {
load_plugin_textdomain( '{%= prefix %}', false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages' );
$locale = apply_filters( 'plugin_locale', get_locale(), '{%= prefix %}' );
load_textdomain( '{%= prefix %}', WP_LANG_DIR . '/{%= prefix %}/{%= prefix %}-' . $locale . '.mo' );
load_plugin_textdomain( '{%= prefix %}', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion root/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
= Manual Installation =

1. Upload the entire `/{%= name %}` directory to the `/wp-content/plugins/` directory.
1. Activate {%= title %} through the 'Plugins' menu in WordPress.
2. Activate {%= title %} through the 'Plugins' menu in WordPress.

== Frequently Asked Questions ==

Expand Down

0 comments on commit 0fa3c97

Please sign in to comment.