1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add server side translations capability (#9733)

* Add server side translations capability
This commit is contained in:
EvidenceB Kidscode 2020-04-25 07:20:00 +02:00 committed by GitHub
parent 914dbeaa0b
commit cee3c5e73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 126 additions and 18 deletions

View file

@ -334,7 +334,7 @@ public:
bool getClientConInfo(session_t peer_id, con::rtt_stat_type type, float *retval);
bool getClientInfo(session_t peer_id, ClientState *state, u32 *uptime,
u8* ser_vers, u16* prot_vers, u8* major, u8* minor, u8* patch,
std::string* vers_string);
std::string* vers_string, std::string* lang_code);
void printToConsoleOnly(const std::string &text);
@ -358,6 +358,9 @@ public:
// Send block to specific player only
bool SendBlock(session_t peer_id, const v3s16 &blockpos);
// Load translations for a language
void loadTranslationLanguage(const std::string &lang_code);
// Bind address
Address m_bind_addr;