
/* gettext library */

var catalog = new Array();

function pluralidx(n) {
  var v=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;
  if (typeof(v) == 'boolean') {
    return v ? 1 : 0;
  } else {
    return v;
  }
}
catalog['Angel'] = 'Anio\u0142ek';
catalog['Blue'] = 'Niebieski';
catalog['Bold'] = 'Pogrubienie';
catalog['Colors'] = 'Kolory';
catalog['Confused'] = 'Zmieszany';
catalog['Cool'] = 'Cool';
catalog['Emoticons'] = 'Emotki';
catalog['Green'] = 'Zielony';
catalog['Grin'] = 'Szeroki u\u015bmiech';
catalog['Image'] = 'Obraz';
catalog['Italic'] = 'Kursywa';
catalog['Link'] = 'Odno\u015bnik';
catalog['List Item'] = 'Element listy';
catalog['Ordered List'] = 'Lista numerowana';
catalog['Quote'] = 'Cytat';
catalog['Red'] = 'Czerwony';
catalog['Sad'] = 'Smutny';
catalog['Smile'] = 'U\u015bmiech';
catalog['Tongue'] = 'J\u0119zor';
catalog['Underline'] = 'Podkre\u015blenie';
catalog['Unordered List'] = 'Lista - wypunktowanie';


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