[Agendaware-dev-client] Language change
Status: Inactive
Brought to you by:
zacklink
|
From: Agyani <ag...@my...> - 2002-02-03 15:57:53
|
hi dev team,
as we are having language porting, i have some ideas
=20
Every class gets its resources from a standard place like =
Utils.res.getString(..)
Each class which wants to be notified that language has changed, =
implements LanguageListener
Interface LanguageListener has one method=20
public void languageChanged()
to be called when user changes the language option from =
Preferences and Utils has been able to
reload the relevant ResBundle.
Utils has a Vector containing references of LanguageListener.
Each class which implements LanguageListener does =
Utils.addLanguageListener(this)
i think the above design pattern will make language change more easy and =
code manageability will prevail.
suggestions on the above design are welcome
rahul
|