

(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": "Quantit\u00e9",
    "Datepicker month\u0004April": "Avril",
    "Datepicker month\u0004August": "Ao\u00fbt",
    "Datepicker month\u0004December": "D\u00e9cembre",
    "Datepicker month\u0004February": "F\u00e9vrier",
    "Datepicker month\u0004January": "Janvier",
    "Datepicker month\u0004July": "Juillet",
    "Datepicker month\u0004June": "Juin",
    "Datepicker month\u0004March": "Mars",
    "Datepicker month\u0004May": "Mai",
    "Datepicker month\u0004November": "Novembre",
    "Datepicker month\u0004October": "Octobre",
    "Datepicker month\u0004September": "Septembre",
    "Datepicker month shortcut\u0004Apr": "Avr",
    "Datepicker month shortcut\u0004Aug": "Ao\u00fb",
    "Datepicker month shortcut\u0004Dec": "D\u00e9c",
    "Datepicker month shortcut\u0004Feb": "F\u00e9v",
    "Datepicker month shortcut\u0004Jan": "Jan",
    "Datepicker month shortcut\u0004Jul": "Juil",
    "Datepicker month shortcut\u0004Jun": "Jui",
    "Datepicker month shortcut\u0004Mar": "Mar",
    "Datepicker month shortcut\u0004May": "Mai",
    "Datepicker month shortcut\u0004Nov": "Nov",
    "Datepicker month shortcut\u0004Oct": "Oct",
    "Datepicker month shortcut\u0004Sep": "Sep",
    "Datepicker option\u0004Clear": "Effacer",
    "Datepicker option\u0004Close": "Fermer",
    "Datepicker option\u0004Next month": "Mois suivant",
    "Datepicker option\u0004Previous month": "Mois pr\u00e9c\u00e9dent",
    "Datepicker option\u0004Select a month": "S\u00e9lectionner un mois",
    "Datepicker option\u0004Select a year": "S\u00e9lectionner une ann\u00e9e",
    "Datepicker option\u0004Today": "Aujourd'hui",
    "Datepicker weekday\u0004Friday": "Vendredi",
    "Datepicker weekday\u0004Monday": "Lundi",
    "Datepicker weekday\u0004Saturday": "Samedi",
    "Datepicker weekday\u0004Sunday": "Dimanche",
    "Datepicker weekday\u0004Thursday": "Jeudi",
    "Datepicker weekday\u0004Tuesday": "Mardi",
    "Datepicker weekday\u0004Wednesday": "Mercredi",
    "Datepicker weekday shortcut\u0004Fri": "Ven",
    "Datepicker weekday shortcut\u0004Mon": "Lun",
    "Datepicker weekday shortcut\u0004Sat": "Sam",
    "Datepicker weekday shortcut\u0004Sun": "Dim",
    "Datepicker weekday shortcut\u0004Thu": "Jeu",
    "Datepicker weekday shortcut\u0004Tue": "Mar",
    "Datepicker weekday shortcut\u0004Wed": "Mer",
    "Friday shortcut\u0004F": "V",
    "Missing source": "source manquante",
    "Monday shortcut\u0004M": "L",
    "Product details primary action\u0004Add to cart": "Ajouter au panier",
    "Rich text editor option\u0004Bold text": "Texte gras",
    "Rich text editor option\u0004Center align": "Centrer",
    "Rich text editor option\u0004Header": "Ent\u00eate",
    "Rich text editor option\u0004Image (converts selected text to an image tag)": "Image (convertit le texte s\u00e9lectionn\u00e9 en une balise image)",
    "Rich text editor option\u0004Italic text": "Texte italique",
    "Rich text editor option\u0004Justify": "Justifier",
    "Rich text editor option\u0004Left align": "Aligner \u00e0 gauche",
    "Rich text editor option\u0004Link": "Lien hypertexte",
    "Rich text editor option\u0004Quote": "Citation",
    "Rich text editor option\u0004Remove formatting": "Supprimer le formatage",
    "Rich text editor option\u0004Right align": "Aligner \u00e0 droite",
    "Rich text editor option\u0004Subheader": "Sous-titre",
    "Saturday shortcut\u0004S": "S",
    "Sunday shortcut\u0004S": "D",
    "Thursday shortcut\u0004T": "J",
    "Tuesday shortcut\u0004T": "M",
    "Wednesday shortcut\u0004W": "Me",
    "Your input fits between the recommended lengths": "Votre texte rentre dans la longueur optimale",
    "Your input might be a little too short, think of something more descriptive": "Votre texte peut \u00eatre un peu trop court, pensez \u00e0 quelque chose de plus descriptif",
    "item selected": [
      "Un \u00e9l\u00e9ment s\u00e9lectionn\u00e9",
      "\u00c9l\u00e9ments s\u00e9lectionn\u00e9s"
    ]
  };
  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": [
      "%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",
      "%Y-%m-%d %H:%M:%S",
      "%Y-%m-%d %H:%M:%S.%f",
      "%Y-%m-%d %H:%M",
      "%Y-%m-%d"
    ],
    "DATE_FORMAT": "j F 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": "j N Y H:i",
    "SHORT_DATE_FORMAT": "j N Y",
    "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));

