Changed project back to C++

This commit is contained in:
Piotr Krygier committed 2022-10-05 15:51:19 +02:00
1 parent ce0c399810
commit e7b9d4a32f
15 files changed
+1181 -412

No files matched your search

+6 -29
View File
@@ -1,5 +1,5 @@
/**
* @file localization.h
* @file localization.hpp
* @author Piotr Krygier (everyonencancode@gmail.com)
* @brief Simple localization header
* @version 0.1
@@ -9,14 +9,11 @@
*
*/
#ifndef LOCALIZATION_H
#define LOCALIZATION_H
#pragma once
#define SELECTED_LANGUAGE rse::locale::EN_US
#include <stdlib.h>
#define SELECTED_LANGUAGE EN_US
#define LOCALIZE(string) string.message[SELECTED_LANGUAGE]
namespace rse::locale
{
/**
* @brief Available languages
@@ -28,24 +25,4 @@ enum Languages_t
LAST_LANGUAGE
};
/**
* @brief
*
*/
struct MessageString_t
{
/**
* @brief Maximum message length. I.e. if French version is longer than English, use French length.
*
*/
size_t maxMessageLength;
/**
*
* @brief Array holding list of translations for specific message
*
*/
const char* const message[LAST_LANGUAGE];
};
#endif /* LOCALIZATION_H */
} // namespace rse::locale