add PseudoLocalize

phase out SubscriptionManager for SubscriptionHandler to fix ThemeManager assert
This commit is contained in:
Chris Danford
2006-01-06 20:18:15 +00:00
parent f8379c8db7
commit d55ae24611
8 changed files with 51 additions and 50 deletions
+4 -4
View File
@@ -17,11 +17,11 @@ void LocalizedString::RegisterLocalizer( RString (*pfnLocalizer)(const RString&,
#include "SubscriptionManager.h"
template<>
set<LocalizedString*>* SubscriptionManager<LocalizedString>::s_pSubscribers = NULL;
SubscriptionHandler<LocalizedString> g_Subscribers;
void LocalizedString::RefreshLocalizedStrings()
{
FOREACHS( LocalizedString*, *SubscriptionManager<LocalizedString>::s_pSubscribers, p )
FOREACHS( LocalizedString*, *g_Subscribers.m_pSubscribers, p )
(*p)->Refresh();
}
@@ -36,7 +36,7 @@ LocalizedString::LocalizedString( const RString &sSection, const RString &sName
m_sName = sName;
m_sValue = sName;
SubscriptionManager<LocalizedString>::Subscribe( this );
g_Subscribers.Subscribe( this );
Refresh();
}
@@ -44,7 +44,7 @@ LocalizedString::LocalizedString( const RString &sSection, const RString &sName
LocalizedString::~LocalizedString()
{
SubscriptionManager<LocalizedString>::Unsubscribe( this );
g_Subscribers.Unsubscribe( this );
}