
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['Centre to left flange'] = 'centre au flasque gauche';
catalog['Centre to right flange'] = 'centre au flasque droit';
catalog['ERD'] = 'diam\u00e8tre effectif de la jante';
catalog['Left flange \u00f8'] = 'diam\u00e8tre du flasque gauche';
catalog['OSB'] = 'd\u00e9calage des trous de rayon';
catalog['Right flange \u00f8'] = 'diam\u00e8tre du flasque droit';
catalog['Size'] = 'taille';
catalog['Spoke hole \u00f8'] = 'diametre du cercle des trous';
catalog['Your search terms returned no results'] = 'pas de r\u00e9sultat ';
catalog['close list'] = 'fermer la liste';
catalog['front'] = 'avant';
catalog['rear'] = 'arri\u00e8re';


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