
/* 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\u00e3o da c\u00e2mara';
catalog['Cancel'] = 'Cancelar';
catalog['Click here to add...'] = 'Clique aqui para adicionar...';
catalog['Delete'] = 'Eliminar';
catalog['Event'] = 'Evento';
catalog['Fave?'] = 'Favorito?';
catalog['Geo'] = 'Geo';
catalog['Labels'] = 'Etiquetas';
catalog['Marketplace'] = 'Marketplace';
catalog['Not Shared (Private)'] = 'N\u00e3o partilhado (Privado)';
catalog['People'] = 'Pessoas';
catalog['Please enter your note before saving!'] = 'Por favor introduza a sua nota antes de guardar!';
catalog['SAVE'] = 'GUARDAR';
catalog['Save'] = 'Guardar';
catalog['Saving...'] = 'A guardar...';
catalog['Shared with Family'] = 'Partilhado com Fam\u00edlia';
catalog['Shared with Friends & Family'] = 'Partilhado com Amigos & Fam\u00edlia';
catalog['Shared with Friends'] = 'Partilhado com Amigos';
catalog['Sorry, the update failed.'] = 'Desculpe, a actualiza\u00e7\u00e3o falhou.';
catalog['This photo is Public'] = 'Esta foto \u00e9 P\u00fablica';
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())});
  }
}
