class EL_LOCALE_CONSTANTS

(source code)

Client examples: CHECK_LOCALE_STRINGS_COMMANDEL_ROUTINE_LOCALE_STRING_PARSER

description

Localization constants

note
	description: "Localization constants"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-07-27 13:15:26 GMT (Saturday 27th July 2024)"
	revision: "10"

deferred class
	EL_LOCALE_CONSTANTS

inherit
	EL_ANY_SHARED

feature {NONE} -- Constants

	Decimal_point_key: ZSTRING
		once
			Result := "{decimal_point}"
		end

	Empty_substitutions: ARRAY [TUPLE [name: READABLE_STRING_8; value: READABLE_STRING_GENERAL]]
		once
			create Result.make_empty
		end

	Number_suffix: SPECIAL [STRING]
		once
			create Result.make_empty (3)
			Result.extend (":0") -- zero
			Result.extend (":1") -- singular
			Result.extend (":>1") -- plural
		end

	Quantifier_names: EL_STRING_8_LIST
		once
			Result := "zero, singular, plural"
		end

	Unknown_key_template: ZSTRING
		once
			Result := "+%S+"
		end

	Unknown_quantity_key_template: ZSTRING
		once
			Result := "+%S: %S+"
		end

	Var_quantity: STRING = "QUANTITY"

end