Permalink
Browse files

tools/create-pot.sh: Add the default English plural forms for the POT…

… files generated.
  • Loading branch information...
1 parent ed4a985 commit bf80c68755a7796b9c48cbc0797262804140616f @knomepasi committed Dec 22, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools/create-pot.sh
View
@@ -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.