

(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 = {
    "\n": "\n",
    "Add to cart form field label\u0004Quantity": "Antal",
    "Datepicker month\u0004April": "April",
    "Datepicker month\u0004August": "Augusti",
    "Datepicker month\u0004December": "December",
    "Datepicker month\u0004February": "Februari",
    "Datepicker month\u0004January": "Januari",
    "Datepicker month\u0004July": "Juli",
    "Datepicker month\u0004June": "Juni",
    "Datepicker month\u0004March": "Mars",
    "Datepicker month\u0004May": "Maj",
    "Datepicker month\u0004November": "November",
    "Datepicker month\u0004October": "Oktober",
    "Datepicker month\u0004September": "September",
    "Datepicker month shortcut\u0004Apr": "Apr",
    "Datepicker month shortcut\u0004Aug": "Aug",
    "Datepicker month shortcut\u0004Dec": "Dec",
    "Datepicker month shortcut\u0004Feb": "Feb",
    "Datepicker month shortcut\u0004Jan": "Jan",
    "Datepicker month shortcut\u0004Jul": "Jul",
    "Datepicker month shortcut\u0004Jun": "Jun",
    "Datepicker month shortcut\u0004Mar": "Mar",
    "Datepicker month shortcut\u0004May": "Maj",
    "Datepicker month shortcut\u0004Nov": "Nov",
    "Datepicker month shortcut\u0004Oct": "Okt",
    "Datepicker month shortcut\u0004Sep": "Sep",
    "Datepicker option\u0004Clear": "Rensa",
    "Datepicker option\u0004Close": "St\u00e4ng",
    "Datepicker option\u0004Next month": "N\u00e4sta m\u00e5nad",
    "Datepicker option\u0004Previous month": "F\u00f6reg\u00e5ende m\u00e5nad",
    "Datepicker option\u0004Select a month": "V\u00e4lj m\u00e5nad",
    "Datepicker option\u0004Select a year": "V\u00e4lj \u00e5rt",
    "Datepicker option\u0004Today": "Idag",
    "Datepicker weekday\u0004Friday": "Fredag",
    "Datepicker weekday\u0004Monday": "M\u00e5ndag",
    "Datepicker weekday\u0004Saturday": "L\u00f6rdag",
    "Datepicker weekday\u0004Sunday": "S\u00f6ndag",
    "Datepicker weekday\u0004Thursday": "Torsdag",
    "Datepicker weekday\u0004Tuesday": "Tisdag",
    "Datepicker weekday\u0004Wednesday": "Onsdag",
    "Datepicker weekday shortcut\u0004Fri": "Fre",
    "Datepicker weekday shortcut\u0004Mon": "M\u00e5n",
    "Datepicker weekday shortcut\u0004Sat": "L\u00f6r",
    "Datepicker weekday shortcut\u0004Sun": "S\u00f6n",
    "Datepicker weekday shortcut\u0004Thu": "Tor",
    "Datepicker weekday shortcut\u0004Tue": "Tis",
    "Datepicker weekday shortcut\u0004Wed": "Ons",
    "Friday shortcut\u0004F": "F",
    "Missing source": "Saknar k\u00e4lla",
    "Monday shortcut\u0004M": "M",
    "Product details primary action\u0004Add to cart": "L\u00e4gg till i varukorg",
    "Rich text editor option\u0004Bold text": "Fet text",
    "Rich text editor option\u0004Center align": "Mitt justera",
    "Rich text editor option\u0004Header": "Rubrik",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "Bild (konvertera vald text till en bild tag)",
    "Rich text editor option\u0004Italic text": "Kursiv text",
    "Rich text editor option\u0004Justify": "Justera",
    "Rich text editor option\u0004Left align": "V\u00e4nsterjustera",
    "Rich text editor option\u0004Link": "L\u00e4nk",
    "Rich text editor option\u0004Quote": "Citat",
    "Rich text editor option\u0004Remove formatting": "ta bort formatering",
    "Rich text editor option\u0004Right align": "H\u00f6gerjustera",
    "Rich text editor option\u0004Subheader": "Underrubrik",
    "Saturday shortcut\u0004S": "L",
    "Sunday shortcut\u0004S": "S",
    "Thursday shortcut\u0004T": "T",
    "Tuesday shortcut\u0004T": "T",
    "Wednesday shortcut\u0004W": "O",
    "Your input fits between the recommended lengths": "Din inmatning \u00e4r av rekommenderad l\u00e4ngd",
    "Your input might be a little too short, think of something more descriptive": "Din inmatning kan vara lite f\u00f6r kort, f\u00f6rs\u00f6k vara lite mer beskrivande",
    "item selected": [
      "vald vara",
      "Valda varor"
    ]
  };
  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 F Y 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",
      "%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": "j F Y",
    "DATE_INPUT_FORMATS": [
      "%Y-%m-%d",
      "%m/%d/%Y",
      "%m/%d/%y"
    ],
    "DECIMAL_SEPARATOR": ",",
    "FIRST_DAY_OF_WEEK": 1,
    "MONTH_DAY_FORMAT": "j F",
    "NUMBER_GROUPING": 3,
    "SHORT_DATETIME_FORMAT": "Y-m-d H:i",
    "SHORT_DATE_FORMAT": "Y-m-d",
    "THOUSAND_SEPARATOR": "\u00a0",
    "TIME_FORMAT": "H:i",
    "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;

    django.jsi18n_initialized = true;
  }

}(this));

