

(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 = {
    "Active Annual and Quarterly members": "Miembros activos anuales y trimestrales", 
    "Active members": "Socios activos", 
    "All-time Annual and Quarterly members": "Miembros anuales y trimestrales", 
    "All-time Occasional members": "Miembros ocasionales", 
    "Are you sure you wish to remove this station from your favorites?": "\u00bfSeguro que desea eliminar esta estaci\u00f3n de sus favoritas?", 
    "Closed": "Cerrada", 
    "Confirm Password": "Confirmar Contrase\u00f1a", 
    "Contacts": "Contactos", 
    "Discount Code is inactive": "C\u00f3digo de Descuento est\u00e1 inactivo", 
    "Discount Code is not found": "C\u00f3digo de Descuento no se encuentra", 
    "Email": "Correo electr\u00f3nico", 
    "Error trying to authenticate.": "Error al intentar autenticar.", 
    "Exceeded the maximum quantity of Passes": "Se ha superado la cantidad m\u00e1xima de pases", 
    "Expand map": "Ampliar el mapa", 
    "Favorites": "Favoritas", 
    "Fixed": "Fija", 
    "Input new password": "Insertar nueva contrase\u00f1a", 
    "Inserted Email does not exist": "Correo electr\u00f3nico insertado no existe", 
    "Invalid authentication information": "Informaci\u00f3n de autenticaci\u00f3n no v\u00e1lida", 
    "Invalid credentials.": "Credenciales no v\u00e1lidas.", 
    "Log in": "Iniciar sesi\u00f3n", 
    "Log out": "Cerrar sesi\u00f3n", 
    "My account": "Mi cuenta", 
    "Occasional members": "Miembros ocasionales", 
    "Password": "Contrase\u00f1a", 
    "Planned": "Prevista", 
    "Please check your e-mail inbox for your new password.": "Compruebe si en su bandeja de entrada le ha llegado la nueva contrase\u00f1a.", 
    "Privacy Policy": "Pol\u00edtica de privacidad", 
    "Privacy policy": "Pol\u00edtica de privacidad", 
    "Redirecting...": "Redireccionando...", 
    "Register": "Registrarse", 
    "Show only favorites": "Mostrar solo los favoritas", 
    "Stats": "Estad\u00edsticas", 
    "Success. Redirecting...": "Redireccionando...", 
    "Successful Registration. Check your e-mail inbox or spam folder for the activation link.": "Registro exitoso. Revise su bandeja de entrada o su carpeta de correo electr\u00f3nico no deseado por el enlace de activaci\u00f3n.", 
    "Temporary": "Temporal", 
    "Terms of Use": "Condiciones de Uso", 
    "The email already exists": "Ya existe el correo electr\u00f3nico", 
    "The old password is wrong": "La contrase\u00f1a antigua es incorrecta", 
    "The passwords does not match": "Tus contrase\u00f1as no coinciden", 
    "The server returned an unexpected error": "El servidor ha devuelto un error inesperado", 
    "There was an error trying to recover password.": "Se produjo un error al tratar de recuperar la contrase\u00f1a.", 
    "There was an error trying to reset password.": "Se produjo un error al tratar de restablecer la contrase\u00f1a.", 
    "Top check-out stations": "Principales estaciones de sacar", 
    "Top return stations": "Principales estaciones de devoluci\u00f3n", 
    "Total System Members": "Total de Socios del Sistema", 
    "Total distance": "Distancia total", 
    "Total trips": "Viajes totales", 
    "User is already registered": "Ya existe el correo electr\u00f3nico", 
    "User is not active. Please activate the account on the e-mail.": "El usuario no est\u00e1 activo. Confirme el cuento por correo electr\u00f3nico.", 
    "VAT Number already exists": "Ya existe el VAT Number", 
    "You must confirm that you read and agree to the conditions set forth in the User agreement.": "Debe confirmar que ha le\u00eddo y acepta las condiciones establecidas en el Acuerdo de usuario.", 
    "Your passwords do not match": "Tus contrase\u00f1as no coinciden"
  };

  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": "d-m-Y H:i:s", 
    "DATETIME_INPUT_FORMATS": [
      "%Y-%m-%d %H:%M:%S", 
      "%Y-%m-%d %H:%M:%S.%f", 
      "%Y-%m-%d %H:%M", 
      "%Y-%m-%d", 
      "%m/%d/%Y %H:%M:%S", 
      "%m/%d/%Y %H:%M:%S.%f", 
      "%m/%d/%Y %H:%M", 
      "%m/%d/%Y", 
      "%m/%d/%y %H:%M:%S", 
      "%m/%d/%y %H:%M:%S.%f", 
      "%m/%d/%y %H:%M", 
      "%m/%d/%y"
    ], 
    "DATE_FORMAT": "d-m-Y", 
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d", 
      "%m/%d/%Y", 
      "%m/%d/%y", 
      "%b %d %Y", 
      "%b %d, %Y", 
      "%d %b %Y", 
      "%d %b, %Y", 
      "%B %d %Y", 
      "%B %d, %Y", 
      "%d %B %Y", 
      "%d %B, %Y"
    ], 
    "DECIMAL_SEPARATOR": ".", 
    "FIRST_DAY_OF_WEEK": "0", 
    "MONTH_DAY_FORMAT": "F j", 
    "NUMBER_GROUPING": "0", 
    "SHORT_DATETIME_FORMAT": "m/d/Y P", 
    "SHORT_DATE_FORMAT": "m/d/Y", 
    "THOUSAND_SEPARATOR": ",", 
    "TIME_FORMAT": "H:i:s", 
    "TIME_INPUT_FORMATS": [
      "%H:%M:%S", 
      "%H:%M:%S.%f", 
      "%H:%M"
    ], 
    "YEAR_MONTH_FORMAT": "F 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));

