
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['A Fave'] = '\u5df2\u6536\u85cf';
catalog['Add note text here...'] = '\u6dfb\u52a0\u6587\u5b57\u6ce8\u91ca...';
catalog['CANCEL'] = '\u53d6\u6d88';
catalog['Camera Information'] = '\u76f8\u673a\u4fe1\u606f';
catalog['Cancel'] = '\u53d6\u6d88';
catalog['Click here to add...'] = '\u70b9\u51fb\u8fd9\u91cc\u6dfb\u52a0...';
catalog['Delete'] = '\u5220\u9664';
catalog['Event'] = '\u4e8b\u4ef6';
catalog['Fave?'] = '\u52a0\u5165\u6536\u85cf\uff1f';
catalog['Geo'] = '\u62cd\u6444\u5730\u70b9';
catalog['Labels'] = '\u6807\u7b7e';
catalog['Marketplace'] = '\u5546\u57ce';
catalog['Not Shared (Private)'] = '\u79c1\u6709\u7167\u7247(\u4e0d\u516c\u5f00)';
catalog['People'] = '\u4eba\u7269';
catalog['Please enter your note before saving!'] = '\u8bf7\u5148\u8f93\u5165\u6587\u5b57\u540e\u518d\u4fdd\u5b58\uff01';
catalog['SAVE'] = '\u4fdd\u5b58';
catalog['Save'] = '\u4fdd\u5b58';
catalog['Saving...'] = '\u4fdd\u5b58\u4e2d...';
catalog['Shared with Family'] = '\u548c\u5bb6\u4eba\u5206\u4eab';
catalog['Shared with Friends & Family'] = '\u548c\u4eb2\u53cb\u5206\u4eab';
catalog['Shared with Friends'] = '\u548c\u670b\u53cb\u5206\u4eab';
catalog['Sorry, the update failed.'] = '\u5bf9\u4e0d\u8d77\uff0c\u66f4\u65b0\u5931\u8d25\u3002';
catalog['This photo is Public'] = '\u516c\u5f00\u663e\u793a\u7167\u7247';
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())});
  }
}
