Working YellowNotes on Windows.

This commit is contained in:
2025-11-20 16:59:14 +01:00
parent 36aba3a381
commit ea3f447af1
16 changed files with 1607 additions and 123 deletions

31
tr.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef TR_H
#define TR_H
#include <string>
#include <unordered_map>
typedef std::unordered_map<std::string, std::string> Translations_t;
class tr
{
private:
std::unordered_map<std::string, Translations_t *> _translations;
std::string _lang;
private:
void add(const char *sentence, ...);
public:
const char *translate(const char *str);
public:
void setLang(const std::string &l);
public:
tr();
};
const char *_(const char *str);
void setLang(const std::string &lang);
#endif // TR_H