Host: Add TranslatePluralToSmallString()

This commit is contained in:
Stenzek
2024-08-26 14:06:57 +10:00
parent 88e4bf6aad
commit c9f5cfc1bc
3 changed files with 31 additions and 1 deletions

View File

@ -193,6 +193,14 @@ std::string Host::TranslatePluralToString(const char* context, const char* msg,
return ret;
}
SmallString Host::TranslatePluralToSmallString(const char* context, const char* msg, const char* disambiguation,
int count)
{
SmallString ret(msg);
ret.replace("%n", TinyString::from_format("{}", count));
return ret;
}
void Host::LoadSettings(SettingsInterface& si, std::unique_lock<std::mutex>& lock)
{
}