indexing description: "[ Records the scope of a file. Eventually we want to support domains, and then this will be a bit more useful ]" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class I18N_FILE_SCOPE_INFORMATION create make_with_locale, make_with_language feature -- Initialization make_with_locale (a_locale: I18N_LOCALE_ID ) is -- require a_locale_not_void: a_locale /= Void do scope := 1 locale := a_locale end make_with_language (a_language: I18N_LANGUAGE_ID) is -- require language_not_void: a_language /= Void do scope := 2 language := a_language end feature -- Scope scope: INTEGER scope_locale_specific:INTEGER is 1 scope_language_specific: INTEGER is 2 --scope_domain_specific: INTEGER is 3 -- unused, poss. for future development. feature -- Retrieval get_locale:I18N_LOCALE_ID is -- require scope = scope_locale_specific do Result := locale end get_language: I18N_LANGUAGE_ID is -- require scope = scope_language_specific do Result := language end feature {NONE} -- Information locale: I18N_LOCALE_ID language: I18N_LANGUAGE_ID; indexing library: "Internationalization library" copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end