
/* gettext library */

var catalog = new Array();
function pluralidx(n) {
    return (n != 1);
}
catalog['A Fave'] = 'Ein Favorit';
catalog['Add note text here...'] = 'Notiz hinzuf\u00fcgen...';
catalog['CANCEL'] = 'ABBRECHEN';
catalog['Camera Information'] = 'Kamera Details';
catalog['Cancel'] = 'Abbrechen';
catalog['Click here to add...'] = 'Zum hinzuf\u00fcgen, hier klicken...';
catalog['Delete'] = 'L\u00f6schen';
catalog['Event'] = 'Veranstaltung';
catalog['Fave?'] = 'Als Favorit kennzeichnen?';
catalog['Geo'] = 'Geo';
catalog['Labels'] = 'Labels';
catalog['Marketplace'] = 'Marktplatz';
catalog['Not Shared (Private)'] = 'Unsichtbar (Privat)';
catalog['People'] = 'Leute';
catalog['Please enter your note before saving!'] = 'Notiz vor dem Speichern eingeben!';
catalog['SAVE'] = 'SPEICHERN';
catalog['Save'] = 'Speichern';
catalog['Saving...'] = 'Speichern...';
catalog['Shared with Family'] = 'Sichtbar f\u00fcr Familie';
catalog['Shared with Friends & Family'] = 'Sichtbar f\u00fcr Freunde und Familie';
catalog['Shared with Friends'] = 'Sichtbar f\u00fcr Freunde';
catalog['Sorry, the update failed.'] = 'Aktualisierung leider fehlgeschlagen.';
catalog['This photo is Public'] = 'Dieses Foto ist \u00f6ffentlich';
catalog['Zooomr Photo Sharing'] = 'Zooomr Photo Sharing';


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/, function(match){return String(obj[match.slice(2,-2)])});
  } else {
    return fmt.replace(/%s/, function(match){return String(obj.shift())});
  }
}
