Permalink
Browse files

Update plurals, add auto-gen warning.

  • Loading branch information...
rubenv committed Sep 18, 2013
1 parent 33557ea commit e60617d80eee88920344c515e2b3fe403c7fddc4
Showing with 5 additions and 1 deletion.
  1. +1 −0 dist/angular-gettext.js
  2. +1 −1 dist/angular-gettext.min.js
  3. +1 −0 genplurals.py
  4. +2 −0 src/plural.js
View
@@ -154,6 +154,7 @@ angular.module('gettext').factory('gettextPlurals', function () {
case 'mg':
case 'mi':
case 'oc':
+ case 'pt_BR':
case 'tg':
case 'ti':
case 'tr':

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -109,6 +109,7 @@ def handle_entityref(self, name):
rules = [rule for rule in parser.rules.items()]
rules.sort(key = lambda rule: (str(rule[1][0][2]) + rule[0]))
+print('// Do not edit this file, it is autogenerated using genplurals.py!');
print('angular.module("gettext").factory("gettextPlurals", function () {');
print(' return function (langCode, n) {')
print(' switch (langCode) {')
View
@@ -1,3 +1,4 @@
+// Do not edit this file, it is autogenerated using genplurals.py!
angular.module("gettext").factory("gettextPlurals", function () {
return function (langCode, n) {
switch (langCode) {
@@ -49,6 +50,7 @@ angular.module("gettext").factory("gettextPlurals", function () {
case "mg": // Malagasy
case "mi": // Maori
case "oc": // Occitan
+ case "pt_BR": // Brazilian Portuguese
case "tg": // Tajik
case "ti": // Tigrinya
case "tr": // Turkish

0 comments on commit e60617d

Please sign in to comment.