Skip to content

Commit 0979c30

Browse files
authored
Merge pull request #77 from brainstormforce/translations
Add support for translations from translate.wordpress.org
2 parents 70ea33f + 06effed commit 0979c30

File tree

5 files changed

+15
-96
lines changed

5 files changed

+15
-96
lines changed

Gruntfile.js

+3-23
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
module.exports = function( grunt ) {
2-
32
'use strict';
4-
var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
5-
// Project configuration
6-
grunt.initConfig( {
73

4+
grunt.initConfig( {
85
pkg: grunt.file.readJSON( 'package.json' ),
96

107
addtextdomain: {
@@ -24,30 +21,13 @@ module.exports = function( grunt ) {
2421
'README.md': 'readme.txt'
2522
}
2623
},
27-
},
28-
29-
makepot: {
30-
target: {
31-
options: {
32-
domainPath: '/languages',
33-
mainFile: 'unlist-posts.php',
34-
potFilename: 'unlist-posts.pot',
35-
potHeaders: {
36-
poedit: true,
37-
'x-poedit-keywordslist': true
38-
},
39-
type: 'wp-plugin',
40-
updateTimestamp: true
41-
}
42-
}
43-
},
24+
}
4425
} );
4526

4627
grunt.loadNpmTasks( 'grunt-wp-i18n' );
4728
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
48-
grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
29+
grunt.registerTask( 'i18n', ['addtextdomain'] );
4930
grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
5031

5132
grunt.util.linefeed = '\n';
52-
5333
};

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
**Contributors:** [brainstormforce](https://profiles.wordpress.org/brainstormforce), [Nikschavan](https://profiles.wordpress.org/Nikschavan)
33
**Donate link:** https://www.paypal.me/BrainstormForce
44
**Tags:** post, unlist posts, hide posts,
5-
**Requires at least:** 4.4
5+
**Requires at least:** 4.6
66
**Tested up to:** 5.8
7-
**Stable tag:** 1.1.6
7+
**Stable tag:** 1.1.7
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -37,6 +37,9 @@ Just select option "Unlist Post" in any post of any type and that post will be h
3737

3838
## Changelog ##
3939

40+
### 1.1.7 ###
41+
- Fix: Support translations on translate.wordpress.org.
42+
4043
### 1.1.6 ###
4144
- Fix: Unlisted post visible in preview/next post links.
4245

languages/unlist-posts.pot

-65
This file was deleted.

readme.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
Contributors: brainstormforce, Nikschavan
33
Donate link: https://www.paypal.me/BrainstormForce
44
Tags: post, unlist posts, hide posts,
5-
Requires at least: 4.6 or more
6-
Text Domain: unlist-posts
5+
Requires at least: 4.6
76
Tested up to: 5.8
8-
Stable tag: 1.1.6
7+
Stable tag: 1.1.7
98
License: GPLv2 or later
109
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1110

@@ -38,6 +37,9 @@ Just select option "Unlist Post" in any post of any type and that post will be h
3837

3938
== Changelog ==
4039

40+
= 1.1.7 =
41+
- Fix: Support translations on translate.wordpress.org.
42+
4143
= 1.1.6 =
4244
- Fix: Unlisted post visible in preview/next post links.
4345

unlist-posts.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* Author: Nikhil Chavan
77
* Author URI: https://www.nikhilchavan.com/
88
* Text Domain: unlist-posts
9-
* Domain Path: /languages
10-
* Version: 1.1.6
9+
* Version: 1.1.7
1110
*
1211
* @package Hide_Post
1312
*/
@@ -16,6 +15,6 @@
1615

1716
define( 'UNLIST_POSTS_DIR', plugin_dir_path( __FILE__ ) );
1817
define( 'UNLIST_POSTS_URI', plugins_url( '/', __FILE__ ) );
19-
define( 'UNLIST_POSTS_VER', '1.1.6' );
18+
define( 'UNLIST_POSTS_VER', '1.1.7' );
2019

2120
require_once UNLIST_POSTS_DIR . 'class-unlist-posts.php';

0 commit comments

Comments
 (0)