Skip to content

Commit

Permalink
Update translation functions for grunt-pot
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed May 18, 2015
1 parent f6d7b15 commit 0f08a7d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 19 deletions.
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ module.exports = function(grunt) {
options:{
text_domain: 'code-snippets',
dest: 'languages/',
keywords: ['__','_e','esc_html__','esc_html_e','esc_attr__', 'esc_attr_e', 'esc_attr_x', 'esc_html_x', 'ngettext', '_n', '_ex', '_nx'],
keywords: [
'__:1', '_e:1', '_x:1,2c',
'esc_html__:1', 'esc_html_e:1', 'esc_html_x:1,2c',
'esc_attr__:1', 'esc_attr_e:1', 'esc_attr_x:1,2c',
'_ex:1,2c', '_n:1,2', '_nx:1,2,4c',
'_n_noop:1,2', '_nx_noop:1,2,3c'
],
},
files: {
src: [ 'code-snippets.php', 'includes/**/*.php' ],
Expand Down
57 changes: 39 additions & 18 deletions languages/code-snippets.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ msgid ""
msgstr ""
"Project-Id-Version: code-snippets 2.2.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-18 09:52+1000\n"
"POT-Creation-Date: 2015-05-18 20:53+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: includes/admin.php:81 includes/manage/admin.php:21
#: includes/manage/manage.php:22 includes/manage/manage.php:23
Expand Down Expand Up @@ -226,47 +227,51 @@ msgstr ""
msgid "Edit Snippet"
msgstr ""

#: includes/edit/admin.php:31 includes/edit/edit.php:35
#: includes/manage/admin.php:24
#: includes/edit/admin.php:29 includes/manage/admin.php:24
msgctxt "snippet"
msgid "Add New"
msgstr ""

#: includes/edit/admin.php:35 includes/edit/edit.php:34
#: includes/edit/admin.php:32 includes/edit/edit.php:34
msgid "Add New Snippet"
msgstr ""

#: includes/edit/admin.php:52 includes/edit/admin.php:53
#: includes/edit/admin.php:49 includes/edit/admin.php:50
msgid "Name (short title)"
msgstr ""

#: includes/edit/admin.php:58
#: includes/edit/admin.php:55
msgid "Code"
msgstr ""

#: includes/edit/admin.php:78 includes/edit/admin.php:92
#: includes/edit/admin.php:75 includes/edit/admin.php:89
msgid "Save Changes and Activate"
msgstr ""

#: includes/edit/admin.php:98
#: includes/edit/admin.php:95
msgid "Save Changes and Deactivate"
msgstr ""

#: includes/edit/admin.php:108 includes/manage/class-list-table.php:141
#: includes/edit/admin.php:105 includes/manage/class-list-table.php:141
#: includes/manage/class-list-table.php:266
msgid "Export"
msgstr ""

#: includes/edit/admin.php:115
#: includes/edit/admin.php:112
msgid ""
"You are about to permanently delete this snippet.\n"
"'Cancel' to stop, 'OK' to delete."
msgstr ""

#: includes/edit/admin.php:120 includes/manage/class-list-table.php:150
#: includes/edit/admin.php:117 includes/manage/class-list-table.php:150
#: includes/manage/class-list-table.php:267
msgid "Delete"
msgstr ""

#: includes/edit/edit.php:35
msgid "Add New"
msgstr ""

#: includes/edit/edit.php:83 includes/manage/manage.php:67
msgid "You are not authorized to access this page."
msgstr ""
Expand Down Expand Up @@ -339,7 +344,11 @@ msgstr ""
msgid ""
"Successfully imported <strong>%d</strong> snippet. <a href=\"%s\">Have fun!</"
"a>"
msgstr ""
msgid_plural ""
"Successfully imported <strong>%d</strong> snippets. <a href=\"%s\">Have fun!"
"</a>"
msgstr[0] ""
msgstr[1] ""

#: includes/import/admin-messages.php:30
msgid "An error occurred when processing the import file."
Expand Down Expand Up @@ -543,32 +552,44 @@ msgstr ""
#: includes/manage/class-list-table.php:305
#, php-format
msgid "All <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "All <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:308
#, php-format
msgid "Active <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "Active <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:311
#, php-format
msgid "Recently Active <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "Recently Active <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:314
#, php-format
msgid "Inactive <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:317
#, php-format
msgid "Admin <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "Admin <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:320
#, php-format
msgid "Front End <span class=\"count\">(%s)</span>"
msgstr ""
msgid_plural "Front End <span class=\"count\">(%s)</span>"
msgstr[0] ""
msgstr[1] ""

#: includes/manage/class-list-table.php:380
msgid "Show all tags"
Expand Down

0 comments on commit 0f08a7d

Please sign in to comment.