- Localized Dates.
This commit is contained in:
Paul Beckingham 2014-07-05 11:39:22 -04:00
parent 4996576d64
commit 57e63dfeb2
6 changed files with 32 additions and 2 deletions

View file

@ -480,10 +480,10 @@ bool namedDates (const std::string& name, Variant& value)
}
}
else
throw std::string ("Error: number and ordinal don't match.");
throw std::string (STRING_DATES_ORD_MISMATCH);
}
else
throw std::string ("Error: no month has more than 31 days.");
throw std::string (STRING_DATES_MONTH_31);
}
else if (name == "easter" ||

View file

@ -181,6 +181,12 @@
#define STRING_LEX_IMMEDIATE_UNK "Lexer start failure, unknown characters found immediately."
#define STRING_LEX_TYPE_UNK "Lexer cannot process and unknown token type."
// Dates
//
// These are errors generated when parsing date values.
#define STRING_DATES_MONTH_31 "Error: no month has more than 31 days."
#define STRING_DATES_ORD_MISMATCH "Error: number and ordinal don't match (ie '1st', not '1nd')."
// Color
#define STRING_COLOR_UNRECOGNIZED "The color '{1}' is not recognized."

View file

@ -181,6 +181,12 @@
#define STRING_LEX_IMMEDIATE_UNK "Lexer start failure, unknown characters found immediately."
#define STRING_LEX_TYPE_UNK "Lexer cannot process and unknown token type."
// Dates
//
// These are errors generated when parsing date values.
#define STRING_DATES_MONTH_31 "Error: no month has more than 31 days."
#define STRING_DATES_ORD_MISMATCH "Error: number and ordinal don't match (ie '1st', not '1nd')."
// Color
#define STRING_COLOR_UNRECOGNIZED "El color '{1}' no se reconoce."

View file

@ -181,6 +181,12 @@
#define STRING_LEX_IMMEDIATE_UNK "Lexer start failure, unknown characters found immediately."
#define STRING_LEX_TYPE_UNK "Lexer cannot process and unknown token type."
// Dates
//
// These are errors generated when parsing date values.
#define STRING_DATES_MONTH_31 "Error: no month has more than 31 days."
#define STRING_DATES_ORD_MISMATCH "Error: number and ordinal don't match (ie '1st', not '1nd')."
// Color
#define STRING_COLOR_UNRECOGNIZED "La couleur '{1}' n'est pas reconnue."

View file

@ -182,6 +182,12 @@
#define STRING_LEX_IMMEDIATE_UNK "Lexer start failure, unknown characters found immediately."
#define STRING_LEX_TYPE_UNK "Lexer cannot process and unknown token type."
// Dates
//
// These are errors generated when parsing date values.
#define STRING_DATES_MONTH_31 "Error: no month has more than 31 days."
#define STRING_DATES_ORD_MISMATCH "Error: number and ordinal don't match (ie '1st', not '1nd')."
// Color
#define STRING_COLOR_UNRECOGNIZED "Il colore '{1}' non è riconosciuto."

View file

@ -181,6 +181,12 @@
#define STRING_LEX_IMMEDIATE_UNK "Lexer start failure, unknown characters found immediately."
#define STRING_LEX_TYPE_UNK "Lexer cannot process and unknown token type."
// Dates
//
// These are errors generated when parsing date values.
#define STRING_DATES_MONTH_31 "Error: no month has more than 31 days."
#define STRING_DATES_ORD_MISMATCH "Error: number and ordinal don't match (ie '1st', not '1nd')."
// Color
#define STRING_COLOR_UNRECOGNIZED "A cor '{1}' não é reconhecida."