
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['Add note text here...'] = 'Dodaj notatk\u0119...';
catalog['CANCEL'] = 'ANULUJ';
catalog['Camera Information'] = 'Informacje o aparacie';
catalog['Cancel'] = 'Anuluj';
catalog['Click here to add...'] = 'Kliknij tutaj \u017ceby doda\u0107...';
catalog['Delete'] = 'Usu\u0144';
catalog['Event'] = 'Wydarzenie';
catalog['Geo'] = 'Geo';
catalog['Labels'] = 'Etykiety';
catalog['Marketplace'] = 'Targowisko';
catalog['Not Shared (Private)'] = 'Nie Udost\u0119pniane (Prywatne)';
catalog['People'] = 'Ludzie';
catalog['Please enter your note before saving!'] = 'Prosz\u0119 dodaj notatk\u0119 przed zapisaniem!';
catalog['SAVE'] = 'ZAPISZ';
catalog['Save'] = 'Zapisz';
catalog['Saving...'] = 'Zapisuj\u0119...';
catalog['Shared with Family'] = 'Udost\u0119pniane Rodzinie';
catalog['Shared with Friends & Family'] = 'Udost\u0119pniane Przyjacio\u0142om i Rodzinia';
catalog['Shared with Friends'] = 'Dzielona z Przyjaci\u00f3\u0142mi';
catalog['Sorry, the update failed.'] = 'Przepraszam, aktualizacja nie powiod\u0142a si\u0119.';
catalog['This photo is Public'] = 'Ta fotografia jest Publiczna';
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())});
  }
}
