

(function (globals) {

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

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

  
  /* gettext library */

  django.catalog = {
    "Adults": "Erwachsene", 
    "Alternatives": "Einige Alternativen", 
    "Availability and Prices": "Verf\u00fcgbarkeit und Preise", 
    "Book now": "Jetzt buchen", 
    "Children": "Kinder", 
    "List price": "Originalpreis", 
    "Nights": "N\u00e4chte", 
    "No availability": "Keine Verf\u00fcgbarkeit", 
    "Number of Nights": "Anzahl N\u00e4chte", 
    "Offer": "Angebot", 
    "Period": "Zeitraum", 
    "Pets": "Haustier", 
    "Price": "Preis *", 
    "Price per night": "Preiso pro Nacht", 
    "Reservation": "Vorausbuchung", 
    "Select a departure date for availability and prices": "Geben Sie ein Abreisedatum zur Anzeige der Verf\u00fcgbarkeiten und Preise ein.", 
    "Stay period": "Aufenthaltsdauer", 
    "There are no available results for your search criteria. Please change you search criteria for this holiday park.": "Leider liegen uns f\u00fcr Ihre ausgew\u00e4hlten Suchkriterien keine Verf\u00fcgbarkeiten und Preise vor. Bitte \u00e4ndern Sie Ihre Suchkriterien.", 
    "Your Choice": "Ihre Auswahl", 
    "currency": "\u20ac", 
    "from": "von", 
    "from-date": "von", 
    "from-price": " von ", 
    "info-text": "Tipp: weitere Reiseangebote finden Sie, wenn Sie die Aufenthaltsdauer\nver\u00e4ndern oder alternative Reisetermine w\u00e4hlen", 
    "nights": "N\u00e4chte", 
    "or-check-alternatives": "Oder Alternativen anzeigen", 
    "pre-booking-matrix text": "Augenblicklich liegen noch keine Preise vor, Sie k\u00f6nnen aber gerne schon jetzt eine provisorische Buchung vornehmen. Dabei f\u00e4llt eine Anzahlung von 100.- \u20ac an, die mit dem endg\u00fcltigen Reisepreis verrechnet wird.. Sobald der endg\u00fcltige Preis bekannt ist, k\u00f6nnen Sie binnen 5 Werktagen Ihre Buchung kostenfrei \u00e4ndern oder stornieren.", 
    "price-information": "Preisinformation", 
    "prices-per-night-label": "Preiso pro Nacht", 
    "to-date": "bis", 
    "until": "bis", 
    "view-alternatives": "Alternativen anzeigen"
  };

  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. 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", 
      "%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", 
      "%Y-%m-%d"
    ], 
    "DECIMAL_SEPARATOR": ",", 
    "FIRST_DAY_OF_WEEK": "1", 
    "MONTH_DAY_FORMAT": "j. F", 
    "NUMBER_GROUPING": "3", 
    "SHORT_DATETIME_FORMAT": "d.m.Y H:i", 
    "SHORT_DATE_FORMAT": "d.m.Y", 
    "THOUSAND_SEPARATOR": ".", 
    "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;

}(this));

