Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Also see Localization Tools project pages

(On BaseOpenmrsMetadata)
String getName() - loose match on current user's locale -- calls getLocalizedNames().getString(Context.getLocale(), false); 
void setName(String) -- calls getLocalizedNames().setString with Context.getLocale()
LocalizedString getLocalizedNames() - 

(On LocalizedString object)
String getValue(Locale) - strict match on Context.getLocale() -- calls getString(locale, true);
void setValue(String, Locale)
Map<Locale, String> getLocalizedValues()
void setLocalizedValues(Map<Locale, String>)

(Not discussed)
Hibernate*DAO.getXXXByName(String) -

Week 2

Allow for a name that is nonlocalized

setName(String) sets the nonlocalized name

getName() looks in current users locale, then current users language, then the nonlocalized name

  • No labels