
/* gettext library ABP: custom */

var catalog = new Array();

function pluralidx(count) { return (count == 1) ? 0 : 1; }
catalog['A directions request could not be successfully parsed.\n Error code: '] = 'A directions request could not be successfully parsed.\n Error code: ';
catalog['A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: '] = 'A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: ';
catalog['Add a stage'] = 'Add a stage';
catalog['Add alert activated.'] = 'Add alert activated.';
catalog['Add to your travel guide.'] = 'Add to your travel guide.';
catalog['Address not found.'] = 'Address not found.';
catalog['Adds a new stage by clicking on the map.'] = 'Adds a new stage by clicking on the map.';
catalog['Alert added'] = 'Alert added';
catalog['Alert submission failed'] = 'Alert submission failed';
catalog['Alert'] = 'Alert';
catalog['All layers'] = 'All layers';
catalog['An unknown error occurred.\n Error code: '] = 'An unknown error occurred.\n Error code: ';
catalog['Authentication required'] = 'Authentication required';
catalog['Authentication server is unreachable : '] = 'Authentication server is unreachable : ';
catalog['Base layers'] = 'Base layers';
catalog['Calculate route'] = 'Calculate route';
catalog['Cancel'] = 'Cancel';
catalog['Category'] = 'Category';
catalog['Choose route type:'] = 'Choose route type:';
catalog['Choose your preferred route type.'] = 'Choose your preferred route type.';
catalog['Click for the virtual guide.'] = 'Click for the virtual guide.';
catalog['Click here to calculate a new route.'] = 'Click here to calculate a new route.';
catalog['Click here to print you route with full details and driving directions.'] = 'Click here to print you route with full details and driving directions.';
catalog['Click here to store your route on your profile and share it with your friends. Please note that only routes entirely laid on our internal track networks can be stored.'] = 'Click here to store your route on your profile and share it with your friends. Please note that only routes entirely laid on our internal track networks can be stored.';
catalog['Click on the map to add an alert.'] = 'Click on the map to add an alert.';
catalog['Click to center the map on this element. Drag and drop to change order. Click on the red cross to remove.'] = 'Click to center the map on this element. Drag and drop to change order. Click on the red cross to remove.';
catalog['Click to center the map on this element.'] = 'Click to center the map on this element.';
catalog['Confirm removal'] = 'Confirm removal';
catalog['Coordinates'] = 'Coordinates';
catalog['Description'] = 'Description';
catalog['Error adding item to the guide'] = 'Error adding item to the guide';
catalog['Error adding item to the guide.'] = 'Error adding item to the guide.';
catalog['Error adding point'] = 'Error adding point';
catalog['Error deleting virtual guide item, could not communicate with the server. Please retry later.'] = 'Error deleting virtual guide item, could not communicate with the server. Please retry later.';
catalog['Error'] = 'Error';
catalog['Errormsg'] = 'Errormsg';
catalog['Feature not found!'] = 'Feature not found!';
catalog['Go'] = 'Go';
catalog['Help'] = 'Help';
catalog['Hybrid (foot or bike, avoid highways)'] = 'Hybrid (foot or bike, avoid highways)';
catalog['Info'] = 'Info';
catalog['Information'] = 'Information';
catalog['Layer Tree'] = 'Layer Tree';
catalog['Layer not found!'] = 'Layer not found!';
catalog['Loading...'] = 'Loading...';
catalog['Log in'] = 'Log in';
catalog['Login Failed!'] = 'Login Failed!';
catalog['Login Successful!'] = 'Login Successful!';
catalog['Login'] = 'Login';
catalog['Max extent'] = 'Max extent';
catalog['Menu'] = 'Menu';
catalog['Navigation'] = 'Navigation';
catalog['Next zoom in history'] = 'Next zoom in history';
catalog['Next zoom'] = 'Next zoom';
catalog['No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: '] = 'No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: ';
catalog['No items matching the query.'] = 'No items matching the query.';
catalog['Normal map navigation and resource selection'] = 'Normal map navigation and resource selection';
catalog['Operations'] = 'Operations';
catalog['Password'] = 'Password';
catalog['Photo'] = 'Photo';
catalog['Please enter a search string.'] = 'Please enter a search string.';
catalog['Previous zoom in history'] = 'Previous zoom in history';
catalog['Previous zoom'] = 'Previous zoom';
catalog['Print route details'] = 'Print route details';
catalog['Read full article.'] = 'Read full article.';
catalog['Really remove all items from your your virtual guide?'] = 'Really remove all items from your your virtual guide?';
catalog['Register'] = 'Register';
catalog['Remove all items from your virtual guide.'] = 'Remove all items from your virtual guide.';
catalog['Remove all'] = 'Remove all';
catalog['Remove this item from your virtual guide?'] = 'Remove this item from your virtual guide?';
catalog['Removes all items form your virtual guide.'] = 'Removes all items form your virtual guide.';
catalog['Road (avoid highways)'] = 'Road (avoid highways)';
catalog['Road'] = 'Road';
catalog['Route'] = 'Route';
catalog['Save your route'] = 'Save your route';
catalog['Save'] = 'Save';
catalog['Search for'] = 'Search for';
catalog['Search results'] = 'Search results';
catalog['Search results:'] = 'Search results:';
catalog['Search'] = 'Search';
catalog['Searched for feature with slug:'] = 'Searched for feature with slug:';
catalog['Searched for layer with orig_id:'] = 'Searched for layer with orig_id:';
catalog['Sorry: you need to login to use your virtual guide! Login or register for free.'] = 'Sorry: you need to login to use your virtual guide! Login or register for free.';
catalog['Sorry: your route cannot be saved because it is not entirely on our internal track networks. Due to licencing issues we cannot save tracks with informations coming from external routing services. Please remove from your route all steps which are not on our internal networks and try again.'] = 'Sorry: your route cannot be saved because it is not entirely on our internal track networks. Due to licencing issues we cannot save tracks with informations coming from external routing services. Please remove from your route all steps which are not on our internal networks and try again.';
catalog['Status'] = 'Status';
catalog['The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: '] = 'The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: ';
catalog['The function parameters were wrong.'] = 'The function parameters were wrong.';
catalog['The given key is either invalid or does not match the domain for which it was given. \n Error code: '] = 'The given key is either invalid or does not match the domain for which it was given. \n Error code: ';
catalog['There was an error submitting your track, please check that a track with the same name does not exists. Server response was:'] = 'There was an error submitting your track, please check that a track with the same name does not exists. Server response was:';
catalog['Title'] = 'Title';
catalog['Track informations'] = 'Track informations';
catalog['Track node'] = 'Track node';
catalog['User Name'] = 'User Name';
catalog['User defined point'] = 'User defined point';
catalog['Virtual guide'] = 'Virtual guide';
catalog['Warning!'] = 'Warning!';
catalog['Warning'] = 'Warning';
catalog['You must be registered to use the virtual guide function, please login or register an account.'] = 'You must be registered to use the virtual guide function, please login or register an account.';
catalog['Your alert was successfully added and will be reviewed from our staff members.'] = 'Your alert was successfully added and will be reviewed from our staff members.';
catalog['Your track was successfully submitted.'] = 'Your track was successfully submitted.';
catalog['Your virtual guide is empty.'] = 'Your virtual guide is empty.';
catalog['Zoom box'] = 'Zoom box';
catalog['Zoom in a rectangle that you can draw with your mouse'] = 'Zoom in a rectangle that you can draw with your mouse';
catalog['Zoom in'] = 'Zoom in';
catalog['Zoom out'] = 'Zoom out';
catalog['Zoom to max extent'] = 'Zoom to max extent';
catalog['has been added to your virtual guide'] = 'has been added to your virtual guide';
catalog['in'] = 'in';
catalog['places or addresses'] = 'places or addresses';
catalog['this website'] = 'this website';


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'] = 'N j, Y';
formats['DECIMAL_SEPARATOR'] = '.';
formats['MONTH_DAY_FORMAT'] = 'F j';
formats['NUMBER_GROUPING'] = '0';
formats['TIME_FORMAT'] = 'P';
formats['FIRST_DAY_OF_WEEK'] = '0';
formats['TIME_INPUT_FORMATS'] = ['%H:%M:%S', '%H:%M'];
formats['THOUSAND_SEPARATOR'] = ',';
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'] = 'm/d/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;
    }
}
