-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
module.exports = function(grunt) { | ||
|
||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
checktextdomain: { | ||
options:{ | ||
text_domain: 'convertkit-pmp', | ||
keywords: [ | ||
'__:1,2d', | ||
'_e:1,2d', | ||
'_x:1,2c,3d', | ||
'esc_html__:1,2d', | ||
'esc_html_e:1,2d', | ||
'esc_html_x:1,2c,3d', | ||
'esc_attr__:1,2d', | ||
'esc_attr_e:1,2d', | ||
'esc_attr_x:1,2c,3d', | ||
'_ex:1,2c,3d', | ||
'_n:1,2,4d', | ||
'_nx:1,2,4c,5d', | ||
'_n_noop:1,2,3d', | ||
'_nx_noop:1,2,3c,4d' | ||
] | ||
}, | ||
files: { | ||
src: [ | ||
'**/*.php', // Include all files | ||
'!node_modules/**', // Exclude node_modules/ | ||
'!tests/**', // Exclude tests/ | ||
'!vendor/**' // Exclude vendor libraries | ||
], | ||
expand: true | ||
} | ||
}, | ||
makepot: { | ||
options: { | ||
type: 'wp-plugin', | ||
domainPath: 'languages', | ||
mainFile: 'convertkit-pmp.php', | ||
potHeaders: { | ||
poedit: true, | ||
'report-msgid-bugs-to': 'https://github.com/ConvertKit/convertkit-paid-memberships-pro/issues', | ||
'language-team': 'ConvertKit <[email protected]>', | ||
'language': 'en_US' | ||
} | ||
}, | ||
frontend: { | ||
options: { | ||
potFilename: 'convertkit-pmp.pot', | ||
exclude: [ | ||
'tests/.*', | ||
'woo-includes/.*', | ||
'includes/libraries/.*', | ||
'node_modules', | ||
'tmp' | ||
] | ||
} | ||
} | ||
}, | ||
potomo: { | ||
dist: { | ||
options: { | ||
poDel: false | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'languages', | ||
src: ['*.po'], | ||
dest: 'languages', | ||
ext: '.mo', | ||
nonull: false | ||
}] | ||
} | ||
} | ||
}); | ||
|
||
// Set the default grunt command to run test cases | ||
grunt.registerTask('default', []); | ||
|
||
/** | ||
* Run i18n related tasks. This includes extracting translatable strings, uploading the master | ||
* pot file, downloading any and all 100% complete po files, converting those to mo files. | ||
* If this is part of a deploy process, it should come before zipping everything up | ||
*/ | ||
grunt.registerTask( 'i18n', [ | ||
'checktextdomain', | ||
'makepot' | ||
]); | ||
|
||
// Load checktextdomain | ||
grunt.loadNpmTasks( 'grunt-checktextdomain' ); | ||
// Load the i18n plugin to extract translatable strings | ||
grunt.loadNpmTasks( 'grunt-wp-i18n' ); | ||
// Load potomo plugin | ||
grunt.loadNpmTasks( 'grunt-potomo' ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ConvertKit i18n # | ||
|
||
To help translate, review, or improve a translation, join our Translations Community at | ||
https://translate.wordpress.org/projects/wp-plugins/convertkit | ||
|
||
More info at https://make.wordpress.org/polyglots/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Copyright (C) 2018 Daniel Espinoza | ||
# This file is distributed under the GPL-2.0+. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: ConvertKit Paid Memberships Pro Integration 1.0.2\n" | ||
"Report-Msgid-Bugs-To: " | ||
"https://github.com/ConvertKit/convertkit-paid-memberships-pro/issues\n" | ||
"POT-Creation-Date: 2018-10-10 20:23:59+00:00\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: ConvertKit <[email protected]>\n" | ||
"Language: en_US\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
"X-Poedit-Country: United States\n" | ||
"X-Poedit-SourceCharset: UTF-8\n" | ||
"X-Poedit-KeywordsList: " | ||
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" | ||
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" | ||
"X-Poedit-Basepath: ../\n" | ||
"X-Poedit-SearchPath-0: .\n" | ||
"X-Poedit-Bookmarks: \n" | ||
"X-Textdomain-Support: yes\n" | ||
"X-Generator: grunt-wp-i18n1.0.2\n" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:91 | ||
msgid "General" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:99 | ||
msgid "API Key" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:108 | ||
msgid "Assign Tags" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:125 | ||
#: admin/class-convertkit-pmp-admin.php:150 | ||
msgid "Mapping" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:169 | ||
msgid "ConvertKit PMP Settings" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:170 | ||
msgid "ConvertKit PMP" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:217 | ||
msgid "Add your API key below and then choose a default form to add subscribers to." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:229 | ||
msgid "" | ||
"Below is a list of the defined PMP Membership Levels. Assign a membership " | ||
"level to a ConvertKit tag that will be assigned to members of that level." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:242 | ||
msgid "Settings" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:258 | ||
msgid "Get your ConvertKit API Key" | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:272 | ||
msgid "No PMP Membership Levels have been added yet." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:273 | ||
msgid "You can add one <a href=\"%s\">here</a>." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:285 | ||
msgid "The PMPro plugin is not active." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:303 | ||
msgid "Enter API key to retrieve list of tags." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:305 | ||
msgid "No tags were returned from ConvertKit." | ||
msgstr "" | ||
|
||
#: admin/class-convertkit-pmp-admin.php:312 | ||
msgid "Select a tag" | ||
msgstr "" | ||
|
||
#: includes/class-convertkit-pmp-api.php:181 | ||
msgid "Could not parse response from ConvertKit" | ||
msgstr "" | ||
|
||
#. Plugin Name of the plugin/theme | ||
msgid "ConvertKit Paid Memberships Pro Integration" | ||
msgstr "" | ||
|
||
#. Plugin URI of the plugin/theme | ||
msgid "http://www.convertkit.com" | ||
msgstr "" | ||
|
||
#. Description of the plugin/theme | ||
msgid "This plugin integrates ConvertKit with Paid Memberships Pro." | ||
msgstr "" | ||
|
||
#. Author of the plugin/theme | ||
msgid "Daniel Espinoza" | ||
msgstr "" | ||
|
||
#. Author URI of the plugin/theme | ||
msgid "https://growdevelopment.com" | ||
msgstr "" |
Oops, something went wrong.