/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['I\'m sorry, but I cannot find an address at'] = 'Je suis d\u00e9sol\u00e9, mais je n\'ai pas trouv\u00e9 d\'adresse \u00e0';
catalog['I\'m sorry, but the information is not precise enough to find a postal code. Try entering a house number and a street name.'] = 'Je suis d\u00e9sol\u00e9, mais cette information n\'est pas assez pr\u00e9cise pour trouver un code postal. Essayez d\'entrer un num\u00e9ro de maison et un nom de voie.';
catalog['I\'m sorry, but there\'s been a technical problem. The webmaster has been informed and will be fixing it as soon as possible.'] = 'Je suis d\u00e9sol\u00e9, mais il y a eu un probl\u00e8me technique. Le webmaster a \u00e9t\u00e9 averti et s\'efforcera de le fixer le plus rapidement possible.';
catalog['Please check and try again.'] = 'Merci de v\u00e9rifier et de recommencer';
catalog['Please enter a street number and name - the name of the city is not enough on its own.'] = 'Merci d\'entrer un num\u00e9ro de maison et un nom de voie - le nom de la ville n\'est pas suffisant.';
catalog['Please try to be more precise.'] = 'Essayez d\'etre plus pr\u00e9cis.';
catalog['Please type something into the input box below.'] = 'Merci de saisir ci-dessous la premi\u00e8re ligne de l\'adresse.';
catalog['Postal code'] = 'Code postal';
catalog['in'] = '\u00e0';


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