/**
 * This file sets the locale specific variables used in any js file.
 * Similar to the Java Resource Bundle concept.
 */

/**
 * This class sets the value of every locale aware property used from within any locale
 * aware javascript method.
 *
 * @param version value for versioning purposes.
 * @param numericDecimalCharacter defines the decimal separator character.
 * @param numericFormatCharacter defines the thousands separator character.
 * @param numericRegExpNumberFormat defines a valid number format in regular expression notation.
 * @param numericCurrencyFormat defines a valid currency format.
 * @param phoneFormatRegExp defines a valid phone number format in regular expression notation.
 * @param phoneFormatReplacementString defines a phone format with substitution elements.
 * @param streetAddressFormatRegExp defines a valid street address in regular expression notation.
 * @param postalCodeValidationRegExp defines a valid postal code in regular expression notation.
 */
var LocalizationUtils = {
    version : "1.0.0",
    numericDecimalCharacter : ".",
    numericFormatCharacter: ",",
    numericRegExpNumberFormat: new RegExp('(-?[0-9]+)([0-9]{3})'),
    numericCurrencyFormat: "&euro;${number}",
    phoneFormatRegExp: /^\d{3}(\-)\d{3}(\-)\d{4}$/,
    phoneFormatReplacementString: "$1-$2-$3",
    streetAddressFormatRegExp: /^(P(\.*)O(\.*) Box|Post Office Box)/i,
    postalCodeValidationRegExp: /(^[0-9]{5}$)|(^[0-9]{5}(\-)[0-9]{4}$)/
}
