class EL_TRANSLATION_ITEMS_LIST

(source code)

Client examples: LOCALE_COMPILER_TEST_SET

description

Storable chain of translation items conforming to EL_TRANSLATION_ITEM

note
	description: "Storable chain of translation items conforming to ${EL_TRANSLATION_ITEM}"

	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 8:11:25 GMT (Saturday 27th July 2024)"
	revision: "11"

class
	EL_TRANSLATION_ITEMS_LIST

inherit
	ECD_STORABLE_CHAIN [EL_TRANSLATION_ITEM]
		rename
			make_chain_implementation as make_sized,
			software_version as format_version
		export
			{ANY} file_path
		end

	EL_ARRAYED_LIST [EL_TRANSLATION_ITEM]
		rename
			make as make_sized
		end

create
	make_from_file

feature -- Access

	format_version: NATURAL
			-- version 1.0.0 of data format
		do
			Result := 01_0_00
		end

	to_table (a_language: STRING): EL_TRANSLATION_TABLE
		do
			create Result.make_from_list (a_language, Current)
		end

feature {NONE} -- Event handler

	on_delete
		do
		end

end