void Locale::RemoveLanguage( Language &lang ) { if ( this->lang && (this->lang->ID() == lang.ID()) ) this->lang = NULL; lib.erase( lang.ID() ); }
void Locale::AddLanguage( Language &lang ) { lib[lang.ID()] = lang; if ( this->lang == NULL ) this->lang = &lib[lang.ID()]; }