
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog[' and '] = ' ja ';
catalog['%s ago'] = '%s sitten';
catalog['Are you sure you want to cancel this invitation ?'] = 'Oletko varma ett\u00e4 haluat peruuttaa t\u00e4m\u00e4n kutsun?';
catalog['Are you sure you want to promote %s to administrator of this group?'] = 'Oletko varma ett\u00e4 haluat lis\u00e4t\u00e4 %s:n t\u00e4m\u00e4n ryhm\u00e4n administraattoriksi?';
catalog['Are you sure you want to remove the admin rights of %s for the group?'] = 'Oletko varma ett\u00e4 haluat poistaa k\u00e4ytt\u00e4j\u00e4n %s admin-oikeudet ryhm\u00e4st\u00e4?';
catalog['Are you sure you want to remove the user %s from this group?'] = 'Oletko varma ett\u00e4 haluat poistaa k\u00e4ytt\u00e4j\u00e4n %s ryhm\u00e4st\u00e4?';
catalog['ERROR'] = 'VIRHE';
catalog['There was an error previewing your post.'] = 'Viestin esikatselu aiheutti virheen.';
catalog['This message has been revised'] = 'T\u00e4t\u00e4 viesti\u00e4 on muokattu';
catalog['What is the URL of the image?'] = 'Mik\u00e4 on kuvan URL?';
catalog['What is the URL of the link?'] = 'Mik\u00e4 on linkin URL?';
catalog['What is the title of the image?'] = 'Mik\u00e4 on kuvan otsikko?';
catalog['What is the title of the link?'] = 'Mik\u00e4 on linkin otsikko?';
catalog['day'] = 'p\u00e4iv\u00e4';
catalog['days'] = 'p\u00e4iv\u00e4\u00e4';
catalog['hour'] = 'tunti';
catalog['hours'] = 'tuntia';
catalog['just now'] = 'juuri nyt';
catalog['minute'] = 'minuutti';
catalog['minutes'] = 'minuuttia';
catalog['month'] = 'kuukausi';
catalog['months'] = 'kuukautta';
catalog['next'] = 'seuraava';
catalog['previous'] = 'edellinen';
catalog['week'] = 'viikko';
catalog['weeks'] = 'viikkoa';
catalog['year'] = 'vuosi';
catalog['years'] = 'vuotta';


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/g, function(match){return String(obj[match.slice(2,-2)])});
  } else {
    return fmt.replace(/%s/g, function(match){return String(obj.shift())});
  }
}

