

(function(globals) {

  var django = globals.django || (globals.django = {});

  
  django.pluralidx = function(n) {
    var v=(n != 1);
    if (typeof(v) == 'boolean') {
      return v ? 1 : 0;
    } else {
      return v;
    }
  };
  

  /* gettext library */

  django.catalog = django.catalog || {};
  
  var newcatalog = {
    "Add to cart form field label\u0004Quantity": "Quantidade",
    "Datepicker month\u0004April": "Abril",
    "Datepicker month\u0004August": "Agosto",
    "Datepicker month\u0004December": "Dezembro",
    "Datepicker month\u0004February": "Fevereiro",
    "Datepicker month\u0004January": "Janeiro",
    "Datepicker month\u0004July": "Julho",
    "Datepicker month\u0004June": "Junho",
    "Datepicker month\u0004March": "Mar\u00e7o",
    "Datepicker month\u0004May": "Maio",
    "Datepicker month\u0004November": "Novembro",
    "Datepicker month\u0004October": "Outubro",
    "Datepicker month\u0004September": "Setembro",
    "Datepicker month shortcut\u0004Apr": "Abr",
    "Datepicker month shortcut\u0004Aug": "Ago",
    "Datepicker month shortcut\u0004Dec": "Dez",
    "Datepicker month shortcut\u0004Feb": "Fev",
    "Datepicker month shortcut\u0004Jan": "Jan",
    "Datepicker month shortcut\u0004Jul": "Jul",
    "Datepicker month shortcut\u0004Jun": "Jun",
    "Datepicker month shortcut\u0004Mar": "Mar",
    "Datepicker month shortcut\u0004May": "Maio",
    "Datepicker month shortcut\u0004Nov": "Nov",
    "Datepicker month shortcut\u0004Oct": "Out",
    "Datepicker month shortcut\u0004Sep": "Set",
    "Datepicker option\u0004Clear": "Limpar",
    "Datepicker option\u0004Close": "Fechar",
    "Datepicker option\u0004Next month": "Pr\u00f3ximo m\u00eas",
    "Datepicker option\u0004Previous month": "M\u00eas anterior",
    "Datepicker option\u0004Select a month": "Selecione um m\u00eas",
    "Datepicker option\u0004Select a year": "Selecione um ano",
    "Datepicker option\u0004Today": "Hoje",
    "Datepicker weekday\u0004Friday": "Sexta",
    "Datepicker weekday\u0004Monday": "Segunda",
    "Datepicker weekday\u0004Saturday": "S\u00e1bado",
    "Datepicker weekday\u0004Sunday": "Domingo",
    "Datepicker weekday\u0004Thursday": "Quinta",
    "Datepicker weekday\u0004Tuesday": "Ter\u00e7a",
    "Datepicker weekday\u0004Wednesday": "Quarta",
    "Datepicker weekday shortcut\u0004Fri": "Sex",
    "Datepicker weekday shortcut\u0004Mon": "Seg",
    "Datepicker weekday shortcut\u0004Sat": "S\u00e1b",
    "Datepicker weekday shortcut\u0004Sun": "Dom",
    "Datepicker weekday shortcut\u0004Thu": "Qui",
    "Datepicker weekday shortcut\u0004Tue": "Ter",
    "Datepicker weekday shortcut\u0004Wed": "Qua",
    "Friday shortcut\u0004F": "S",
    "Missing source": "Fonte n\u00e3o encontrada",
    "Monday shortcut\u0004M": "S",
    "Product details primary action\u0004Add to cart": "Adicionar ao carrinho",
    "Rich text editor option\u0004Bold text": "Negrito",
    "Rich text editor option\u0004Center align": "Centralizar",
    "Rich text editor option\u0004Header": "T\u00edtulo",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "Imagem (converta texto selecionado em um r\u00f3tulo de imagem)",
    "Rich text editor option\u0004Italic text": "It\u00e1lico",
    "Rich text editor option\u0004Justify": "Justificar",
    "Rich text editor option\u0004Left align": "Alinhar \u00e0 esquerda",
    "Rich text editor option\u0004Link": "Link",
    "Rich text editor option\u0004Quote": "Cita\u00e7\u00e3o",
    "Rich text editor option\u0004Remove formatting": "Remover formata\u00e7\u00e3o",
    "Rich text editor option\u0004Right align": "Alinhar \u00e0 direita",
    "Rich text editor option\u0004Subheader": "Subt\u00edtulo",
    "Saturday shortcut\u0004S": "S",
    "Sunday shortcut\u0004S": "S",
    "Thursday shortcut\u0004T": "Q",
    "Tuesday shortcut\u0004T": "Q",
    "Wednesday shortcut\u0004W": "Q",
    "Your input fits between the recommended lengths": "A sua entrada encaixa-se no tamanho recomendado",
    "Your input might be a little too short, think of something more descriptive": "A sua entrada \u00e9 muito pequena, pense em algo com maior descri\u00e7\u00e3o",
    "item selected": [
      "item selecionado",
      "itens selecionados"
    ]
  };
  for (var key in newcatalog) {
    django.catalog[key] = newcatalog[key];
  }
  

  if (!django.jsi18n_initialized) {
    django.gettext = function(msgid) {
      var value = django.catalog[msgid];
      if (typeof(value) == 'undefined') {
        return msgid;
      } else {
        return (typeof(value) == 'string') ? value : value[0];
      }
    };

    django.ngettext = function(singular, plural, count) {
      var value = django.catalog[singular];
      if (typeof(value) == 'undefined') {
        return (count == 1) ? singular : plural;
      } else {
        return value.constructor === Array ? value[django.pluralidx(count)] : value;
      }
    };

    django.gettext_noop = function(msgid) { return msgid; };

    django.pgettext = function(context, msgid) {
      var value = django.gettext(context + '\x04' + msgid);
      if (value.indexOf('\x04') != -1) {
        value = msgid;
      }
      return value;
    };

    django.npgettext = function(context, singular, plural, count) {
      var value = django.ngettext(context + '\x04' + singular, context + '\x04' + plural, count);
      if (value.indexOf('\x04') != -1) {
        value = django.ngettext(singular, plural, count);
      }
      return value;
    };

    django.interpolate = function(fmt, obj, named) {
      if (named) {
        return fmt.replace(/%\(\w+\)s/g, function(match){return String(obj[match.slice(2,-2)])});
      } else {
        return fmt.replace(/%s/g, function(match){return String(obj.shift())});
      }
    };


    /* formatting library */

    django.formats = {
    "DATETIME_FORMAT": "j \\d\\e F \\d\\e Y \u00e0\\s H:i",
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d",
      "%d/%m/%Y %H:%M:%S",
      "%d/%m/%Y %H:%M:%S.%f",
      "%d/%m/%Y %H:%M",
      "%d/%m/%Y",
      "%d/%m/%y %H:%M:%S",
      "%d/%m/%y %H:%M:%S.%f",
      "%d/%m/%y %H:%M",
      "%d/%m/%y"
    ],
    "DATE_FORMAT": "j \\d\\e F \\d\\e Y",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%d/%m/%Y",
      "%d/%m/%y"
    ],
    "DECIMAL_SEPARATOR": ",",
    "FIRST_DAY_OF_WEEK": 0,
    "MONTH_DAY_FORMAT": "j \\d\\e F",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "d/m/Y H:i",
    "SHORT_DATE_FORMAT": "d/m/Y",
    "THOUSAND_SEPARATOR": ".",
    "TIME_FORMAT": "H:i",
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S",
      "%H:%M:%S.%f",
      "%H:%M"
    ],
    "YEAR_MONTH_FORMAT": "F \\d\\e Y"
  };

    django.get_format = function(format_type) {
      var value = django.formats[format_type];
      if (typeof(value) == 'undefined') {
        return format_type;
      } else {
        return value;
      }
    };

    /* add to global namespace */
    globals.pluralidx = django.pluralidx;
    globals.gettext = django.gettext;
    globals.ngettext = django.ngettext;
    globals.gettext_noop = django.gettext_noop;
    globals.pgettext = django.pgettext;
    globals.npgettext = django.npgettext;
    globals.interpolate = django.interpolate;
    globals.get_format = django.get_format;

    django.jsi18n_initialized = true;
  }

}(this));

