Skip to content
Browse files

tools/ Add the default English plural forms for the POT…

… files generated.
  • Loading branch information...
knomepasi committed Dec 22, 2014
1 parent ed4a985 commit bf80c68755a7796b9c48cbc0797262804140616f
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools/
@@ -17,4 +17,5 @@ now=$(date +%Y)
sed -i "s/SOME DESCRIPTIVE TITLE./This is the translation template file for $plugin_name./g" languages/$plugin_slug.pot
sed -i "s/(C) YEAR/(C) $now/g" languages/$plugin_slug.pot
sed -i "s/the PACKAGE package./the plugin./g" languages/$plugin_slug.pot

# current plural forms for english
sed 's/^"Plural-Forms:.*/"Plural-Forms: nplurals=2; plural=(n != 1);\\n"/' $plugin_slug.pot > $plugin_slug.pot

0 comments on commit bf80c68

Please sign in to comment.
You can’t perform that action at this time.