xbmc
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CLocalizeStrings Class Reference
Inheritance diagram for CLocalizeStrings:
Inheritance graph
[legend]
Collaboration diagram for CLocalizeStrings:
Collaboration graph
[legend]

Public Member Functions

bool Load (const std::string &strPathName, const std::string &strLanguage)
 
bool LoadSkinStrings (const std::string &path, const std::string &language)
 
bool LoadAddonStrings (const std::string &path, const std::string &language, const std::string &addonId)
 
void ClearSkinStrings ()
 
const std::string & Get (uint32_t code) const
 
std::string GetAddonString (const std::string &addonId, uint32_t code)
 
void Clear ()
 
std::string Localize (std::uint32_t code) const override
 

Protected Types

typedef std::map< uint32_t, LocStr >::const_iterator ciStrings
 
typedef std::map< uint32_t, LocStr >::iterator iStrings
 

Protected Member Functions

void Clear (uint32_t start, uint32_t end)
 

Protected Attributes

std::map< uint32_t, LocStrm_strings
 
std::map< std::string, std::map< uint32_t, LocStr > > m_addonStrings
 
CSharedSection m_stringsMutex
 
CSharedSection m_addonStringsMutex
 

Member Function Documentation

◆ LoadSkinStrings()

bool CLocalizeStrings::LoadSkinStrings ( const std::string &  path,
const std::string &  language 
)
Todo:
shouldn't hold lock while loading file

The documentation for this class was generated from the following files: