
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['Are you sure? You can add it again later, but you will need to enter all the information again.'] = 'M\u00f6chtest du diese Adresse wirklich l\u00f6schen?';
catalog['Currently Closed!'] = 'Derzeit geschlossen!';
catalog['Delete Address?'] = 'Adresse l\u00f6schen?';
catalog['Go back to list'] = 'Zur\u00fcck zur Liste';
catalog['Order now'] = 'Jetzt bestellen';
catalog['Preorder'] = 'Vorbestellen';
catalog['That Restaurant is closed until normal business hours resume. You can also preorder for later when the restaurant is open again.'] = 'Dieses Restaurant ist derzeit geschlossen. M\u00f6chtest du vorbestellen?';
catalog['That Restaurant is closed until normal business hours resume.'] = 'Dieses Restaurant ist derzeit geschlossen.';
catalog['collapse all'] = 'Alle zuklappen';
catalog['expand all'] = 'Alle aufklappen';


function gettext(msgid) {
  var value = catalog[msgid];
  if (typeof(value) == 'undefined') {
    return msgid;
  } else {
    return (typeof(value) == 'string') ? value : value[0];
  }
}

function ngettext(singular, plural, count) {
  value = catalog[singular];
  if (typeof(value) == 'undefined') {
    return (count == 1) ? singular : plural;
  } else {
    return value[pluralidx(count)];
  }
}

function gettext_noop(msgid) { return msgid; }

function interpolate(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())});
  }
}
