Skip to content

Commit

Permalink
add processPot and run it to update pot headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Nov 11, 2014
1 parent 47d6f8d commit 4b11948
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ module.exports = function(grunt) {
domainPath: 'languages/',
potComments: '',
potFilename: 'cmb2.pot',
type: 'wp-plugin',
updateTimestamp: true,
potHeaders: {
poedit: true,
'x-poedit-keywordslist': true
},
type: 'wp-plugin',
updateTimestamp: false
processPot: function( pot, options ) {
pot.headers['report-msgid-bugs-to'] = 'http://wordpress.org/support/plugin/cmb2';
pot.headers['last-translator'] = 'WebDevStudios [email protected]';
pot.headers['language-team'] = 'WebDevStudios [email protected]';
var today = new Date();
pot.headers['po-revision-date'] = today.getFullYear() +'-'+ ( today.getMonth() + 1 ) +'-'+ today.getDate() +' '+ today.getUTCHours() +':'+ today.getUTCMinutes() +'+'+ today.getTimezoneOffset();
return pot;
}
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions languages/cmb2.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
msgid ""
msgstr ""
"Project-Id-Version: CMB2 (beta) 2.0.0.1\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/init\n"
"POT-Creation-Date: 2014-09-16 14:59:56+00:00\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
"POT-Creation-Date: 2014-11-11 01:25:43+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"PO-Revision-Date: 2014-11-10 1:25+300\n"
"Last-Translator: WebDevStudios [email protected]\n"
"Language-Team: WebDevStudios [email protected]\n"
"X-Generator: grunt-wp-i18n 0.4.9\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_"
Expand Down

0 comments on commit 4b11948

Please sign in to comment.