
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['A Fave'] = 'Um Favorito';
catalog['Add note text here...'] = 'Adicione o texto da nota aqui...';
catalog['CANCEL'] = 'CANCELAR';
catalog['Camera Information'] = 'Informa\u00e7\u00f5es da C\u00e2mera';
catalog['Cancel'] = 'Cancelar';
catalog['Click here to add...'] = 'Clique aqui para adicionar...';
catalog['Delete'] = 'Remover';
catalog['Event'] = 'Evento';
catalog['Fave?'] = 'Favorito?';
catalog['Labels'] = 'R\u00f3tulos';
catalog['Not Shared (Private)'] = 'N\u00e3o Compartilhada (Privada)';
catalog['People'] = 'Pessoas';
catalog['Please enter your note before saving!'] = 'Por favor entre sua nota antes de salvar!';
catalog['SAVE'] = 'SALVAR';
catalog['Save'] = 'Salvar';
catalog['Saving...'] = 'Salvando...';
catalog['Shared with Family'] = 'Compartilhada com Fam\u00edlia';
catalog['Shared with Friends & Family'] = 'Compartilhada com Amigos & Fam\u00edlia';
catalog['Shared with Friends'] = 'Compartilhada com Amigos';
catalog['Sorry, the update failed.'] = 'Desculpe, a atualiza\u00e7\u00e3o falhou.';
catalog['This photo is Public'] = 'Essa foto \u00e9 P\u00fablica';


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