
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['A Fave'] = 'Een Favoriet';
catalog['Add note text here...'] = 'Voeg de tekst van de notitie hier in...';
catalog['CANCEL'] = 'ANNULEREN';
catalog['Camera Information'] = 'Camera-informatie';
catalog['Cancel'] = 'Annuleer';
catalog['Click here to add...'] = 'Klik hier om toe te voegen...';
catalog['Delete'] = 'Wissen';
catalog['Event'] = 'Evenement';
catalog['Fave?'] = 'Favoriet?';
catalog['Geo'] = 'Geo';
catalog['Labels'] = 'Labels';
catalog['Marketplace'] = 'Markt';
catalog['Not Shared (Private)'] = 'Niet Gedeeld (Prive)';
catalog['People'] = 'Mensen';
catalog['Please enter your note before saving!'] = 'Schrijf eerst een notitie voor je bewaart!';
catalog['SAVE'] = 'BEWAREN';
catalog['Save'] = 'Bewaar';
catalog['Saving...'] = 'Bewaren...';
catalog['Shared with Family'] = 'Gedeeld met Familie';
catalog['Shared with Friends & Family'] = 'Gedeeld met Vrienden & Familie';
catalog['Shared with Friends'] = 'Gedeeld met Vrienden';
catalog['Sorry, the update failed.'] = 'Sorry, de update is mislukt.';
catalog['This photo is Public'] = 'Deze foto is Publiek';
catalog['Zooomr Photo Sharing'] = 'Zooomr Fotodelen';


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