
/* gettext library */

var catalog = new Array();
function pluralidx(n) {
    return (n != 1);
}
catalog['A Fave'] = '\u5176\u4e2d\u4f60\u7684\u6700\u611b';
catalog['Add note text here...'] = '\u5728\u9019\u88e1\u5beb\u5c0f\u7b46\u8a18';
catalog['CANCEL'] = '\u53d6\u6d88';
catalog['Camera Information'] = '\u7167\u76f8\u6a5f\u8cc7\u8a0a';
catalog['Cancel'] = '\u53d6\u6d88';
catalog['Click here to add...'] = '\u9ede\u9019\u88e1\u4f86\u52a0...';
catalog['Delete'] = '\u522a\u9664';
catalog['Event'] = '\u4e8b\u4ef6';
catalog['Fave?'] = '\u52a0\u5165\u6700\u611b?';
catalog['Geo'] = '\u5730\u65b9';
catalog['Labels'] = '\u6a19\u7c64';
catalog['Marketplace'] = '\u5e02\u5834';
catalog['Not Shared (Private)'] = '\u4e0d\u5206\u4eab (\u96b1\u5bc6)';
catalog['People'] = '\u4eba';
catalog['Please enter your note before saving!'] = '\u5132\u5b58\u4e4b\u524d\u8acb\u8f38\u5165\u4f60\u7684\u5c0f\u7b46\u8a18!';
catalog['SAVE'] = '\u5132\u5b58';
catalog['Save'] = '\u5132\u5b58';
catalog['Saving...'] = '\u6b63\u5728\u5132\u5b58...';
catalog['Shared with Family'] = '\u5206\u4eab\u7d66\u5bb6\u4eba';
catalog['Shared with Friends & Family'] = '\u5206\u4eab\u7d66\u597d\u53cb\u548c\u5bb6\u4eba';
catalog['Shared with Friends'] = '\u5206\u4eab\u7d66\u597d\u53cb';
catalog['Sorry, the update failed.'] = '\u62b1\u6b49, \u66f4\u65b0\u5931\u6557';
catalog['This photo is Public'] = '\u9019\u5f35\u7167\u7247\u516c\u958b\u7d66\u5927\u5bb6\u770b';
catalog['Zooomr Photo Sharing'] = 'Zooomr \u7167\u7247\u5206\u4eab';


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