

(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 = {
    "Add to cart form field label\u0004Quantity": "\u062a\u0639\u062f\u0627\u062f",
    "Datepicker month\u0004April": "\u0622\u0648\u0631\u06cc\u0644",
    "Datepicker month\u0004August": "\u0622\u06af\u0648\u0633\u062a",
    "Datepicker month\u0004December": "\u062f\u0633\u0627\u0645\u0628\u0631",
    "Datepicker month\u0004February": "\u0641\u0648\u0631\u06cc\u0647",
    "Datepicker month\u0004January": "\u0698\u0627\u0646\u0648\u06cc\u0647",
    "Datepicker month\u0004July": "\u062c\u0648\u0644\u0627\u06cc",
    "Datepicker month\u0004June": "\u0698\u0648\u0646",
    "Datepicker month\u0004March": "\u0645\u0627\u0631\u0633",
    "Datepicker month\u0004May": "\u0645\u06cc",
    "Datepicker month\u0004November": "\u0646\u0648\u0627\u0645\u0628\u0631",
    "Datepicker month\u0004October": "\u0627\u06a9\u062a\u0628\u0631",
    "Datepicker month\u0004September": "\u0633\u067e\u062a\u0627\u0645\u0628\u0631",
    "Datepicker month shortcut\u0004Apr": "\u0622\u0648\u0631",
    "Datepicker month shortcut\u0004Aug": "\u0622\u0648\u06af",
    "Datepicker month shortcut\u0004Dec": "\u062f\u0633\u0627",
    "Datepicker month shortcut\u0004Feb": "\u0641\u0648\u0631",
    "Datepicker month shortcut\u0004Jan": "\u0698\u0627\u0646",
    "Datepicker month shortcut\u0004Jul": "\u062c\u0648\u0644",
    "Datepicker month shortcut\u0004Jun": "\u0698\u0648\u0646",
    "Datepicker month shortcut\u0004Mar": "\u0645\u0627\u0631",
    "Datepicker month shortcut\u0004May": "\u0645\u06cc",
    "Datepicker month shortcut\u0004Nov": "\u0646\u0648\u0627",
    "Datepicker month shortcut\u0004Oct": "\u0627\u06a9\u062a",
    "Datepicker month shortcut\u0004Sep": "\u0633\u067e\u062a",
    "Datepicker option\u0004Clear": "\u067e\u0627\u06a9 \u06a9\u0646",
    "Datepicker option\u0004Close": "\u0628\u0628\u0646\u062f",
    "Datepicker option\u0004Next month": "\u0645\u0627\u0647 \u0628\u0639\u062f",
    "Datepicker option\u0004Previous month": "\u0645\u0627\u0647 \u0642\u0628\u0644",
    "Datepicker option\u0004Select a month": "\u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0627\u0647",
    "Datepicker option\u0004Select a year": "\u0627\u0646\u062a\u062e\u0627\u0628 \u0633\u0627\u0644",
    "Datepicker option\u0004Today": "\u0627\u0645\u0631\u0648\u0632",
    "Datepicker weekday\u0004Friday": "\u062c\u0645\u0639\u0647",
    "Datepicker weekday\u0004Monday": "\u062f\u0648\u0634\u0646\u0628\u0647",
    "Datepicker weekday\u0004Saturday": "\u0634\u0646\u0628\u0647",
    "Datepicker weekday\u0004Sunday": "\u06cc\u06a9\u0634\u0646\u0628\u0647",
    "Datepicker weekday\u0004Thursday": "\u067e\u0646\u062c \u0634\u0646\u0628\u0647",
    "Datepicker weekday\u0004Tuesday": "\u0633\u0647 \u0634\u0646\u0628\u0647",
    "Datepicker weekday\u0004Wednesday": "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647",
    "Datepicker weekday shortcut\u0004Fri": "\u062c\u0645\u0639",
    "Datepicker weekday shortcut\u0004Mon": "\u062f\u0648\u0634",
    "Datepicker weekday shortcut\u0004Sat": "\u0634\u0646\u0628",
    "Datepicker weekday shortcut\u0004Sun": "\u06cc\u06a9\u0634",
    "Datepicker weekday shortcut\u0004Thu": "\u067e\u0646\u062c \u0634",
    "Datepicker weekday shortcut\u0004Tue": "\u0633\u0647 \u0634",
    "Datepicker weekday shortcut\u0004Wed": "\u0686\u0647\u0627\u0631 \u0634",
    "Friday shortcut\u0004F": "\u062c",
    "Monday shortcut\u0004M": "\u062f",
    "Product details primary action\u0004Add to cart": "\u0628\u0647 \u0633\u0628\u062f \u062e\u0631\u06cc\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646",
    "Rich text editor option\u0004Bold text": "\u0645\u062a\u0646 \u0628\u0631\u062c\u0633\u062a\u0647",
    "Rich text editor option\u0004Center align": "\u062a\u0631\u0627\u0632 \u0648\u0633\u0637",
    "Rich text editor option\u0004Header": "\u0633\u0631 \u0635\u0641\u062d\u0647",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "\u062a\u0635\u0648\u06cc\u0631 (\u062a\u0628\u062f\u06cc\u0644 \u0645\u062a\u0646 \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647 \u0628\u0647 \u06cc\u06a9 \u0628\u0631\u0686\u0633\u0628 \u0639\u06a9\u0633 \u062a\u0635\u0648\u06cc\u0631)",
    "Rich text editor option\u0004Italic text": "\u0645\u062a\u0646 \u0627\u06cc\u062a\u0627\u0644\u06cc\u06a9",
    "Rich text editor option\u0004Left align": "\u062a\u0631\u0627\u0632 \u0627\u0632 \u0686\u067e",
    "Rich text editor option\u0004Link": "\u067e\u06cc\u0648\u0646\u062f",
    "Rich text editor option\u0004Quote": "\u0646\u0642\u0644 \u0642\u0648\u0644",
    "Rich text editor option\u0004Right align": "\u062a\u0631\u0627\u0632 \u0627\u0632 \u0631\u0627\u0633\u062a",
    "Rich text editor option\u0004Subheader": "\u0632\u06cc\u0631 \u0639\u0646\u0648\u0627\u0646",
    "Saturday shortcut\u0004S": "\u0634",
    "Sunday shortcut\u0004S": "\u0634",
    "Thursday shortcut\u0004T": "\u067e",
    "Tuesday shortcut\u0004T": "\u067e",
    "Wednesday shortcut\u0004W": "\u0686",
    "item selected": [
      "\u0628",
      "\u0645\u0648\u0631\u062f \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u062f\u0647"
    ]
  };
  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\u060c \u0633\u0627\u0639\u062a G: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",
      "%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": 6,
    "MONTH_DAY_FORMAT": "j F",
    "NUMBER_GROUPING": 0,
    "SHORT_DATETIME_FORMAT": "Y/n/j\u060c\u200f G:i",
    "SHORT_DATE_FORMAT": "Y/n/j",
    "THOUSAND_SEPARATOR": ",",
    "TIME_FORMAT": "G: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));

