

(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 = {
    "All": "Todos", 
    "All except": "Todos, exceto", 
    "Cancel": "Cancelar", 
    "Comment have been successfully published at ": "Coment\u00e1rio publicado com sucesso em", 
    "Commodity": "Commodities", 
    "Days": "Dias", 
    "E-mail is not valid.": "Endere\u00e7o de E-mail inv\u00e1lido.", 
    "Error. Sorry for inconvenience. Please try later.": "Erro. Pedimos desculpa pela inconveni\u00eancia.", 
    "Failed to subscribe.": "Inscri\u00e7\u00e3o falhada.", 
    "Forex": "Forex", 
    "Hours": "Horas", 
    "Image size must be": "O tamanho da imagem deve corresponder a", 
    "Index": "\u00cdndices", 
    "Invest": "Investir", 
    "Minutes": "Minutos", 
    "Ok": "Ok", 
    "Password reset confirmation email was sent. Please check your mailbox.": "Foi enfiado um email com a confirma\u00e7\u00e3o da sua redefini\u00e7\u00e3o de senha. Por favor, verifique o seu correio.", 
    "Please log in to validate your email": "Para validar o seu endere\u00e7o de email por favor inicie a sess\u00e3o", 
    "Please upload your logo.": "Submeta o seu log\u00f3tipo.", 
    "Remove": "Remover", 
    "Seconds": "Segundos", 
    "Stock": "A\u00e7\u00f5es", 
    "Thank you for your attentiveness! Typo has been sent to our editors.": "Obrigado pela sua aten\u00e7\u00e3o! O erro de datilografia acaba de ser enviado aos nossos editores.", 
    "Thank you for your subscription. Invitation has been sent to the specified email.": "Obrigado pela sua inscri\u00e7\u00e3o. O convite foi enviado para o endere\u00e7o de E-mail indicado.", 
    "The file size should not exceed 1MB.": "A dimens\u00e3o do ficheiro n\u00e3o deve exceder 1MB.", 
    "Today": "Hoje", 
    "Unable to publish comment.": "N\u00e3o foi poss\u00edvel publicar o coment\u00e1rio.", 
    "Unable to send typo.": "Imposs\u00edvel enviar erro de datilografia.", 
    "Valid formats: JPG, GIF, PNG.": "Formatos v\u00e1lidos: JPG, GIF, PNG.", 
    "Validation email was sent. Please check your mailbox.": "Foi enfiado um email de valida\u00e7\u00e3o. Por favor verifique o seu correio.", 
    "Would you like to post this comment on our facebook page?": "Gostaria de publicar este coment\u00e1rio na nossa p\u00e1gina do facebook?", 
    "You are already subscribed.": "J\u00e1 est\u00e1 inscrito.", 
    "Your application was successfully sent, we will contact you after reviewing it.": "O seu pedido foi submetido com sucesso. Ser\u00e1 contatado ap\u00f3s revis\u00e3o do mesmo.", 
    "Your email has been validated.": "O seu endere\u00e7o de email foi validado.", 
    "except": "exceto"
  };

  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[django.pluralidx(count)];
    }
  };

  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": "G:i j E Y", 
    "DATETIME_INPUT_FORMATS": [
      "%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", 
      "%Y-%m-%d %H:%M:%S", 
      "%Y-%m-%d %H:%M:%S.%f", 
      "%Y-%m-%d %H:%M", 
      "%Y-%m-%d"
    ], 
    "DATE_FORMAT": "j \\d\\e F \\d\\e Y", 
    "DATE_INPUT_FORMATS": [
      "%d/%m/%Y", 
      "%d/%m/%y", 
      "%Y-%m-%d"
    ], 
    "DECIMAL_SEPARATOR": ",", 
    "FIRST_DAY_OF_WEEK": "0", 
    "MONTH_DAY_FORMAT": "j E", 
    "NUMBER_GROUPING": "3", 
    "SHORT_DATETIME_FORMAT": "d/m/Y H:i", 
    "SHORT_DATE_FORMAT": "j b y", 
    "THOUSAND_SEPARATOR": ".", 
    "TIME_FORMAT": "G: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;

}(this));

