class EL_LANGUAGE_SET_READER
Client examples: I18N_LOCALIZATION_TEST_SET
Compiles a set of language codes from a Pyxis translation source
note
description: "Compiles a set of language codes from a Pyxis translation source"
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-09-13 19:08:13 GMT (Friday 13th September 2024)"
revision: "4"
class
EL_LANGUAGE_SET_READER
inherit
EL_CREATEABLE_FROM_XPATH_MATCH_EVENTS
export
{NONE} all
end
EL_PYXIS_PARSE_EVENT_TYPE
EL_SHARED_KEY_LANGUAGE
create
make_from_file
feature {NONE} -- Initialization
make_default
--
do
create language_set.make_equal (11)
language_set.put (Key_language)
end
feature -- Access
language_set: EL_HASH_SET [STRING]
feature {NONE} -- Implementation
on_language_id
do
language_set.put_copy (last_node.adjusted_8 (False))
end
xpath_match_events: ARRAY [EL_XPATH_TO_AGENT_MAP]
--
do
Result := <<
[on_open, "/translations/item/translation/@lang", agent on_language_id]
>>
end
end