

(function(globals) {

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

  
  django.pluralidx = function(n) {
    var v=0;
    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": "Jumlah",
    "Datepicker month\u0004April": "April",
    "Datepicker month\u0004August": "Agustus",
    "Datepicker month\u0004December": "Desember",
    "Datepicker month\u0004February": "Februari",
    "Datepicker month\u0004January": "Januari",
    "Datepicker month\u0004July": "Juli",
    "Datepicker month\u0004June": "Juni",
    "Datepicker month\u0004March": "Maret",
    "Datepicker month\u0004May": "Mei",
    "Datepicker month\u0004November": "November",
    "Datepicker month\u0004October": "Oktober",
    "Datepicker month\u0004September": "September",
    "Datepicker month shortcut\u0004Apr": "Apr",
    "Datepicker month shortcut\u0004Aug": "Ags",
    "Datepicker month shortcut\u0004Dec": "Des",
    "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": "Mei",
    "Datepicker month shortcut\u0004Nov": "Nov",
    "Datepicker month shortcut\u0004Oct": "Okt",
    "Datepicker month shortcut\u0004Sep": "Sep",
    "Datepicker option\u0004Clear": "Bersihkan",
    "Datepicker option\u0004Close": "Tutup",
    "Datepicker option\u0004Next month": "Bulan berikutnya",
    "Datepicker option\u0004Previous month": "Bulan sebelumnya",
    "Datepicker option\u0004Select a month": "Pilih bulan",
    "Datepicker option\u0004Select a year": "Pilih tahun",
    "Datepicker option\u0004Today": "Hari ini",
    "Datepicker weekday\u0004Friday": "Jumat",
    "Datepicker weekday\u0004Monday": "Senin",
    "Datepicker weekday\u0004Saturday": "Sabtu",
    "Datepicker weekday\u0004Sunday": "Minggu",
    "Datepicker weekday\u0004Thursday": "Kamis",
    "Datepicker weekday\u0004Tuesday": "Selasa",
    "Datepicker weekday\u0004Wednesday": "Rabu",
    "Datepicker weekday shortcut\u0004Fri": "Jum",
    "Datepicker weekday shortcut\u0004Mon": "Sen",
    "Datepicker weekday shortcut\u0004Sat": "Sab",
    "Datepicker weekday shortcut\u0004Sun": "Min",
    "Datepicker weekday shortcut\u0004Thu": "Kam",
    "Datepicker weekday shortcut\u0004Tue": "Sel",
    "Datepicker weekday shortcut\u0004Wed": "Rab",
    "Friday shortcut\u0004F": "J",
    "Missing source": "Tidak ada rujukan",
    "Monday shortcut\u0004M": "S",
    "Product details primary action\u0004Add to cart": "Masukkan ke keranjang",
    "Rich text editor option\u0004Bold text": "Teks tebal",
    "Rich text editor option\u0004Center align": "Tengah",
    "Rich text editor option\u0004Header": "Bagian atas",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "Gambar (mengonversi teks yang dipilih menjadi tag gambar)",
    "Rich text editor option\u0004Italic text": "Teks miring",
    "Rich text editor option\u0004Justify": "Sesuaikan",
    "Rich text editor option\u0004Left align": "Rata kiri",
    "Rich text editor option\u0004Link": "Tautan",
    "Rich text editor option\u0004Quote": "Kutipan",
    "Rich text editor option\u0004Remove formatting": "Hapus pemformatan",
    "Rich text editor option\u0004Right align": "Rata kanan",
    "Rich text editor option\u0004Subheader": "Subjudul",
    "Saturday shortcut\u0004S": "Sa",
    "Sunday shortcut\u0004S": "M",
    "Thursday shortcut\u0004T": "K",
    "Tuesday shortcut\u0004T": "Sl",
    "Wednesday shortcut\u0004W": "R",
    "Your input fits between the recommended lengths": "Masukan Anda sesuai dengan panjang yang disarankan",
    "Your input might be a little too short, think of something more descriptive": "Masukan Anda mungkin agak terlalu pendek, pikirkan sesuatu yang lebih deskriptif",
    "item selected": [
      "item yang dipilih"
    ]
  };
  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 N 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",
      "%d-%m-%y %H.%M.%S",
      "%d-%m-%y %H.%M.%S.%f",
      "%d-%m-%y %H.%M",
      "%d-%m-%y",
      "%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",
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "j N Y",
    "DATE_INPUT_FORMATS": [
      "%d-%m-%y",
      "%d/%m/%y",
      "%d-%m-%Y",
      "%d/%m/%Y",
      "%d %b %Y",
      "%d %B %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": ".",
    "TIME_FORMAT": "G.i",
    "TIME_INPUT_FORMATS": [
      "%H.%M.%S",
      "%H.%M",
      "%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));

