

(function (globals) {

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

  
  django.pluralidx = function (count) { return (count == 1) ? 0 : 1; };
  

  
  /* gettext library */

  django.catalog = {
    "April": "duben", 
    "August": "srpen", 
    "Back": "Zp\u011bt", 
    "Changes of disclose flags are not saved. Save them or undo changes.": "Zm\u011bny v p\u0159ep\u00edna\u010d\u00edch zve\u0159ejn\u011bn\u00ed \u00fadaj\u016f nejsou ulo\u017eeny. Ulo\u017ete je nebo zm\u011bny zru\u0161te.", 
    "December": "prosinec", 
    "February": "\u00fanor", 
    "Fri": "p\u00e1", 
    "Friday": "p\u00e1tek", 
    "Image is loading.": "Obr\u00e1zek se na\u010d\u00edt\u00e1.", 
    "January": "leden", 
    "July": "\u010dervenec", 
    "June": "\u010derven", 
    "March": "b\u0159ezen", 
    "May": "kv\u011bten", 
    "Mon": "po", 
    "Monday": "pond\u011bl\u00ed", 
    "November": "listopad", 
    "October": "\u0159\u00edjen", 
    "Passwords must be between 6-16 characters long.": "Hesla mus\u00ed m\u00edt 6-16 znak\u016f.", 
    "Please wait...": "\u010cekejte pros\u00edm...", 
    "Sat": "so", 
    "Saturday": "sobota", 
    "September": "z\u00e1\u0159\u00ed", 
    "Sun": "ne", 
    "Sunday": "ned\u011ble", 
    "The two passwords didn't match.": "Hesla se neshoduj\u00ed.", 
    "This field is required.": "Toto pole je t\u0159eba vyplnit.", 
    "Thu": "\u010dt", 
    "Thursday": "\u010dtvrtek", 
    "Tue": "\u00fat", 
    "Tuesday": "\u00fater\u00fd", 
    "Wed": "st", 
    "Wednesday": "st\u0159eda", 
    "abbrev. month\u0004April": "Dub.", 
    "abbrev. month\u0004Aug.": "Srp.", 
    "abbrev. month\u0004Dec.": "Pro.", 
    "abbrev. month\u0004Feb.": "\u00dano.", 
    "abbrev. month\u0004Jan.": "Led.", 
    "abbrev. month\u0004July": "\u010cec.", 
    "abbrev. month\u0004June": "\u010cer.", 
    "abbrev. month\u0004March": "B\u0159e.", 
    "abbrev. month\u0004May": "Kv\u011b.", 
    "abbrev. month\u0004Nov.": "Lis.", 
    "abbrev. month\u0004Oct.": "\u0158\u00edj.", 
    "abbrev. month\u0004Sept.": "Z\u00e1\u0159.", 
    "alt. month\u0004April": "dubna", 
    "alt. month\u0004August": "srpna", 
    "alt. month\u0004December": "prosince", 
    "alt. month\u0004February": "\u00fanora", 
    "alt. month\u0004January": "ledna", 
    "alt. month\u0004July": "\u010dervence", 
    "alt. month\u0004June": "\u010dervna", 
    "alt. month\u0004March": "b\u0159ezna", 
    "alt. month\u0004May": "kv\u011btna", 
    "alt. month\u0004November": "listopadu", 
    "alt. month\u0004October": "\u0159\u00edjna", 
    "alt. month\u0004September": "z\u00e1\u0159\u00ed", 
    "month3\u0004apr": "dub", 
    "month3\u0004aug": "z\u00e1\u0159", 
    "month3\u0004feb": "\u00fano", 
    "month3\u0004jan": "led", 
    "month3\u0004jul": "\u010dec", 
    "month3\u0004jun": "\u010der", 
    "month3\u0004mar": "b\u0159e", 
    "month3\u0004may": "kv\u011b", 
    "month3\u0004nov": "pro", 
    "month3\u0004oct": "lis", 
    "month3\u0004sep": "\u0159\u00edj"
  };

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

