

(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 = {
    "<div>": "<div>", 
    "<iframe frameborder='0' width='0' height='0'/>": "<iframe frameborder='0' width='0' height='0'/>", 
    "<script>": "<script>", 
    "About this Map": "Acerca de este Mapa", 
    "Abstract": "Resumen", 
    "Abstract:": "Resumen:", 
    "Add Layers": "Agregar capas", 
    "All": "Todos los", 
    "Area": "\u00c1rea", 
    "Available Layers": "Capas disponibles", 
    "Background": "Fondo", 
    "CADRG-Global Navigation Chart": "CADRG-Global Navigation Chart", 
    "CADRG-Jet Navigation Chart": "CADRG-Jet Navigation Chart", 
    "CADRG-Joint Operations Graphic": "CADRG-Joint Operations Graphic", 
    "CADRG-Operational Navigation Chart": "CADRG-Operational Navigation Chart", 
    "CADRG-Tactical Pilotage Chart": "CADRG-Tactical Pilotage Chart", 
    "CADRG-Topographic Line Map 100K": "CADRG-Topographic Line Map 100K", 
    "CADRG-Topographic Line Map 50K": "CADRG-Topographic Line Map 50K", 
    "Cancel": "Cancelar", 
    "Change layer format and style": "Cambiar el formato y el estilo de la capa", 
    "Clear All": "Borrar todos", 
    "Clear Selected": "Borrar seleccionados", 
    "Comma Separated Value": "Comma Separated Value", 
    "Connection Error": "Error de conexi\u00f3n", 
    "Contact": "Contacto", 
    "Controlled Image Base-1 Meter": "Controlled Image Base-1 Meter", 
    "Controlled Image Base-10 Meter": "Controlled Image Base-10 Meter", 
    "Controlled Image Base-5 Meter": "Controlled Image Base-5 Meter", 
    "Create Map": "Crear Mapa", 
    "Creating PDF...": "Creando PDF ...", 
    "Data": "Datos", 
    "Details...": "Detalles...", 
    "Done": "Hecho", 
    "Download:": "Descargar:", 
    "Downloading...": "Descargando...", 
    "ERDAS Imagine": "ERDAS Imagine", 
    "ESRI Shapefile": "ESRI Shapefile", 
    "Edit Metadata": "Editar Metadatos", 
    "Edit Styles": "Editar Estilos", 
    "Edit layer styles": "Editar estilos de capa", 
    "Enter comments here.": "Escriba aqu\u00ed sus comentarios.", 
    "Enter map title here.": "Introduzca el t\u00edtulo del mapa aqu\u00ed.", 
    "Enter your region here ...": "Escriba su region aqui ...", 
    "Enter your text here ...": "Ingrese su texto aqui....", 
    "Error While Saving": "Error al guardar", 
    "Error contacting server.\n Please check the url and try again.": "Error al conectarse con el servidor.\nPor favor, compruebe la URL y vuelva a intentarlo.", 
    "Export Map": "Exportar Mapa ", 
    "GeoJSON": "GeoJSON", 
    "GeoTIFF": "GeoTIFF", 
    "Get Feature Info": "Obtener informaci\u00f3n del objeto", 
    "Google Earth KML": "Google Earth KML", 
    "Height": "Altura", 
    "Include legend?": "Incluir la leyenda?", 
    "JPEG2000": "JPEG2000", 
    "Keywords:": "Palabras clave:", 
    "Large": "Grande", 
    "Last Modified": "\u00daltima Modificaci\u00f3n", 
    "Layer Info": "Informaci\u00f3n de Capas", 
    "Layer Properties": "Propiedades de las capas", 
    "Layer files uploaded, configuring in GeoServer": "Archivo de capas cargado, configurando en GeoServer", 
    "Layers": "Capas", 
    "Legend": "Leyenda", 
    "Length": "Longitud", 
    "Loading": "Cargando", 
    "Loading Map...": "Cargando Mapa ...", 
    "Loading...": "Cargando...", 
    "Manage Styles": "Administrar Estilos", 
    "Map": "Mapa", 
    "Map Layers": "Capas del mapa", 
    "Map Size": "Tama\u00f1o del mapa", 
    "Measure": "Medida", 
    "Metadata Links:": "Links de Metadatos:", 
    "Mini": "Mini", 
    "Missing a %s file, which is required": "Falta un archivo %s, el cual es requerido", 
    "MrSID-Multi-resolution Seamless Image Database": "MrSID-Multi-resolution Seamless Image Database", 
    "Name": "Nombre", 
    "National Imagery Transmission Format": "National Imagery Transmission Format", 
    "Next": "Siguiente", 
    "No Layers Selected": "No hay capas seleccionadas", 
    "No abstract is provided for this layer.": "No hay resumen para esta capa.", 
    "No attribution information is provided for this layer.": "No hay informaci\u00f3n de atributos para esta capa.", 
    "No background": "Sin fondo", 
    "No download URLs are definied for this layer.": "No hay URLs de descarga para esta capa.", 
    "No keywords are listed for this layer.": "No hay palabras clave para esta capa.", 
    "No layers are currently selected.": "Actualmente no hay capas seleccionadas.", 
    "No metadata URLs are defined for this layer.": "No hay URLs de metadato definidas para esta capa.", 
    "None": "Ninguno", 
    "Open Map": "Abrir Mapa", 
    "Operation Failed": "Error en la operaci\u00f3n", 
    "Pan Map": "Paneo del Mapa", 
    "Paper size:": "Tama\u00f1o de papel:", 
    "Performing Final GeoServer Config Step": "Realizando Paso Final en la Configuraci\u00f3n del GeoServer", 
    "Performing GeoServer Config Step": "Realizando Configuraci\u00f3n del GeoServer", 
    "Permalink": "Enlace permanente", 
    "Please wait": "Por favor, espere", 
    "Premium": "Premium", 
    "Prev": "Anterior", 
    "Print": "Imprimir", 
    "Print Map": "Imprimir Mapa", 
    "Print Preview": "Vista previa de Impresi\u00f3n", 
    "Properties": "Propiedades", 
    "Provided by:": "Proporcionado por:", 
    "Publish Map": "Publicar Mapa", 
    "Queryable": "Consultable", 
    "Remove": "Remover", 
    "Remove Layer": "Remover Capa", 
    "Resolution:": "Resoluci\u00f3n:", 
    "Save": "Guardar", 
    "Save Map": "Guardar Mapa", 
    "Save as Copy": "Guardar copia", 
    "Search": "B\u00fasqueda", 
    "Search Maps": "Mapa de B\u00fasqueda", 
    "Select": "Selecciona", 
    "Select or create a Geogig repository.": "Selecciona o crea un repositorio Geogig .", 
    "Select:": "Selecciona:", 
    "Selected Layers": "Capas seleccionadas", 
    "Showing": "Listado", 
    "Small": "Peque\u00f1as", 
    "Sorry, your map could not be saved.": "Lo sentimos, el mapa no se pudo guardar.", 
    "Switch to Google Earth 3D Viewer": "Cambiar a Google Earth Viewer 3D", 
    "The column %1 was renamed to %2 <br/>": "La columna %1 se ha renombrado como %2 <br/>", 
    "The file %s is an unsupported file type, please select another file.": "El archivo %s no es un tipo de archivo soportado, por favor selecciona otro archivo.", 
    "The map that you are trying to load does not exist.  Creating a new map instead.": "El mapa que est\u00e1 intentando cargar no existe. Se crear\u00e1 un mapa.", 
    "The server returned an error": "El servidor ha devuelto un error", 
    "This data is stored on a remote server": "Estos datos est\u00e1n almacenados en un servidor remoto", 
    "This map has not yet been saved.": "Este mapa no se ha guardado todav\u00eda.", 
    "Title": "T\u00edtulo", 
    "Unexpected Error": "Error Inesperado", 
    "Unknown Map": "Mapa Desconocido", 
    "View available data from:": "Ver datos disponibles en:", 
    "View this Map": "Ver este Mapa", 
    "Width": "Ancho", 
    "You are trying to upload an incomplete set of files or not all mandatory options have been validated.\n\nPlease check for errors in the form!": "Est\u00e1 tratando de subir un conjunto incompleto de archivos o no todas las opciones obligatorias han sido validadas.\n\nPor favor, comprobar si hay errores en el formulario!", 
    "You can continue configuring your layer.": "Puedes continuar configurando tu capa.", 
    "You do not have permission to view this data": "No tienes permiso para ver estos datos", 
    "You must be logged in to save this map.": "Debes iniciar una sesi\u00f3n para guardar este mapa.", 
    "You need to specify more information in order to complete your upload": "Usted necesita especificar mas informaci\u00f3n para poder completar la carga", 
    "You need to specify more information in order to complete your upload.": "Usted necesita especificar mas informaci\u00f3n para poder completar la carga.", 
    "Your layer was successfully uploaded": "Su capa fue cargada exitosamente", 
    "Your map is ready to be published to the web!  Simply copy the following HTML to embed the map in your website:": "El mapa est\u00e1 listo para ser publicado en la web! Simplemente copia el siguiente c\u00f3digo HTML para incrustar el mapa en tu p\u00e1gina web:", 
    "Your search did not match any items.": "Tu b\u00fasqueda no produjo ning\u00fan resultado.", 
    "Zip Archive": "Zip Archive", 
    "Zoom In": "Acercar", 
    "Zoom Level": "Nivel de Acercamiento", 
    "Zoom Level {zoom}": "Nivel de zoom {zoom}", 
    "Zoom Out": "Alejar", 
    "Zoom level": "Nivel de acercamiento", 
    "Zoom to Layer Extent": "Zoom a la Extensi\u00f3n de la Capa", 
    "Zoom to Next Extent": "Acercamiento a la Extensi\u00f3n Siguiente", 
    "Zoom to Previous Extent": "Acercamiento a la Extensi\u00f3n Anterior", 
    "Zoom to Visible Extent": "Zoom a la Extensi\u00f3n Visible", 
    "of": "de", 
    "or add a new server.": "o agregar un nuevo servidor.", 
    "permalink": "Enlace permanente"
  };

  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": "j \\d\\e F \\d\\e Y \\a \\l\\a\\s H:i", 
    "DATETIME_INPUT_FORMATS": [
      "%d/%m/%Y %H:%M:%S", 
      "%d/%m/%Y %H:%M:%S.%f", 
      "%d/%m/%Y %H:%M", 
      "%d/%m/%y %H:%M:%S", 
      "%d/%m/%y %H:%M:%S.%f", 
      "%d/%m/%y %H:%M", 
      "%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": "1", 
    "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;

}(this));

