
/* gettext library */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['Admin buttons'] = 'Hallintanapit';
catalog['Big'] = 'Iso';
catalog['Browser FX'] = 'Selaintehosteet';
catalog['FILL THE ADDITIONAL DETAILS FROM MENU HERE'] = 'T\u00c4YDENN\u00c4 MENU KOHDAN LIS\u00c4TIEDOT T\u00c4H\u00c4N';
catalog['Fill the field appropriately'] = 'T\u00e4ydenn\u00e4 t\u00e4t\u00e4 kentt\u00e4\u00e4';
catalog['Invalid time format, must be HH:MM'] = 'Virheellinen aikamuoto, t\u00e4ytyy olla TT:MM';
catalog['Kids'] = 'Lasten';
catalog['Minimizes or maximizes the toolbar'] = 'Pienenn\u00e4 tai suurenna ty\u00f6kalupalkki';
catalog['Minimum price for home delivery is __1 eur.'] = 'Minimihinta kotiinkuljetuksille on __1 \u20ac.';
catalog['New order row...'] = 'Uusi tilausrivi...';
catalog['Normal'] = 'Normaali';
catalog['Please complete this mandatory field.'] = 'T\u00e4m\u00e4 kentt\u00e4 vaaditaan.';
catalog['Please correct this value'] = 'Korjaa t\u00e4t\u00e4 arvoa';
catalog['Please enter a numeric value.'] = 'Sy\u00f6t\u00e4 numeerinen arvo.';
catalog['Please enter a valid URL'] = 'Sy\u00f6t\u00e4 oikea URL-osoite';
catalog['Please enter a valid email address'] = 'Sy\u00f6t\u00e4 toimiva E-mail osoite';
catalog['Please enter a value larger than __1'] = 'Sy\u00f6t\u00e4 arvo joka on suurempi kuin __1';
catalog['Please enter a value smaller than __1'] = 'Sy\u00f6t\u00e4 arvo joka on pienempi kuin __1';
catalog['Toggle between icons view'] = 'Kytke pelk\u00e4t ikonit n\u00e4kym\u00e4 p\u00e4\u00e4lle/pois';
catalog['Toggle the admin button visibility'] = 'Kytke hallintanapit p\u00e4\u00e4lle/pois';
catalog['Toggle the browser effects'] = 'Kytke selaimen tehosteet p\u00e4\u00e4lle/pois';
catalog['Total: '] = 'Yhteens\u00e4: ';


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

/* formatting library */

var formats = new Array();

formats['DATETIME_FORMAT'] = 'N j, Y, P';
formats['DATE_FORMAT'] = 'j. F Y';
formats['DECIMAL_SEPARATOR'] = ',';
formats['MONTH_DAY_FORMAT'] = 'j. F';
formats['NUMBER_GROUPING'] = '0';
formats['TIME_FORMAT'] = 'G.i.s';
formats['FIRST_DAY_OF_WEEK'] = '0';
formats['TIME_INPUT_FORMATS'] = ['%H:%M:%S', '%H:%M'];
formats['THOUSAND_SEPARATOR'] = '\u00a0';
formats['DATE_INPUT_FORMATS'] = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'];
formats['YEAR_MONTH_FORMAT'] = 'F Y';
formats['SHORT_DATE_FORMAT'] = 'j.n.Y';
formats['SHORT_DATETIME_FORMAT'] = 'm/d/Y P';
formats['DATETIME_INPUT_FORMATS'] = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y'];

function get_format(format_type) {
    var value = formats[format_type];
    if (typeof(value) == 'undefined') {
      return msgid;
    } else {
      return value;
    }
}

