![]() |
Cluedo Solver v1.0
Cluedo game solver making deductions.
|
#include <LanguageStrings.hpp>
Classes | |
struct | Language |
A struct that contains the data of a language. More... | |
Public Member Functions | |
std::string_view | current_language_id () const |
void | set_language (std::string_view id) |
std::string_view | get_string (std::string_view key) const |
Static Public Member Functions | |
static LanguageStrings & | the () |
static std::vector< Language > const & | languages () |
The class that contains the strings of the application which can be translated.
|
inline |
Returns the ID of the current language.
std::string_view Cluedo::LanguageStrings::get_string | ( | std::string_view | key | ) | const |
Returns the string with the given key.
key | The key of the string. |
|
inlinestatic |
Returns the vector containing the available languages for the application.
void Cluedo::LanguageStrings::set_language | ( | std::string_view | id | ) |
Sets the language of the application to the one with the given ID.
id | The ID of the language to use. |
|
static |
Returns the instance of the class.