16 #include "threads/SharedSection.h" 17 #include "utils/ILocalizer.h" 30 std::string strTranslated;
31 std::string strOriginal;
35 const std::string LANGUAGE_DEFAULT =
"resource.language.en_gb";
36 const std::string LANGUAGE_OLD_DEFAULT =
"English";
43 bool Load(
const std::string& strPathName,
const std::string& strLanguage);
44 bool LoadSkinStrings(
const std::string& path,
const std::string& language);
45 bool LoadAddonStrings(
const std::string& path,
const std::string& language,
const std::string& addonId);
46 void ClearSkinStrings();
47 const std::string& Get(uint32_t
code)
const;
48 std::string GetAddonString(
const std::string& addonId, uint32_t code);
52 std::string Localize(std::uint32_t code)
const override {
return Get(code); }
55 void Clear(uint32_t start, uint32_t end);
57 std::map<uint32_t, LocStr> m_strings;
58 std::map<std::string, std::map<uint32_t, LocStr>> m_addonStrings;
59 typedef std::map<uint32_t, LocStr>::const_iterator ciStrings;
60 typedef std::map<uint32_t, LocStr>::iterator iStrings;
Definition: LocalizeStrings.h:38
Definition: ILocalizer.h:14
Definition: LocalizeStrings.h:28
Definition: inftrees.h:24
A CSharedSection is a mutex that satisfies the Shared Lockable concept (see Lockables.h).
Definition: SharedSection.h:19