[WIP] Refactor project
There are many problems with the way the current version is provided and maintained. This commit or series of commits will fix this.
This commit is contained in:
1 parent
f5ab5f3f27
commit
173a82b9d1
63 files changed
+2663
-2239
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file localization.h
|
||||
* @author Piotr Krygier (everyonencancode@gmail.com)
|
||||
* @brief Simple localization header
|
||||
* @brief Simple localization header. Gettext is used for localization
|
||||
* @version 0.1
|
||||
* @date 2022-02-15
|
||||
*
|
||||
@@ -9,20 +9,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RSE_LOCALIZATION_H
|
||||
#define RSE_LOCALIZATION_H
|
||||
#ifndef LOCALIZATION_H
|
||||
#define LOCALIZATION_H
|
||||
|
||||
#define SELECTED_LANGUAGE EN_US
|
||||
#define MAX_MESSAGE_LENGHT 128
|
||||
#include <libintl.h>
|
||||
|
||||
/**
|
||||
* @brief Available languages
|
||||
*
|
||||
*/
|
||||
enum languages_t
|
||||
{
|
||||
EN_US = 0,
|
||||
LAST_LANGUAGE
|
||||
};
|
||||
/* Enable localization */
|
||||
#define _(STRING) gettext(STRING)
|
||||
|
||||
#endif /* RSE_LOCALIZATION_H */
|
||||
#endif /* LOCALIZATION_H */
|
||||
Reference in new issue
Block a user