From d81983e3c0ef90984d5a4645898049c8ea7ce334 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Thu, 6 Dec 2012 14:19:30 +0800 Subject: [PATCH] Usermode/ATE - Just fiddling --- Usermode/Applications/gui_ate_src/strings.c | 21 +++++++++++++++++++++ Usermode/Applications/gui_ate_src/strings.h | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Usermode/Applications/gui_ate_src/strings.c create mode 100644 Usermode/Applications/gui_ate_src/strings.h diff --git a/Usermode/Applications/gui_ate_src/strings.c b/Usermode/Applications/gui_ate_src/strings.c new file mode 100644 index 00000000..5cfee5dd --- /dev/null +++ b/Usermode/Applications/gui_ate_src/strings.c @@ -0,0 +1,21 @@ +/* + * Acess Text Editor (ATE) + * - By John Hodge (thePowersGang) + * + * strings.c + * - String Localisation + */ + +struct keyval_str +{ + const char *key; + const char *val; +}; + +const struct keyval_str gaDisplayStrings[] = { + {"BtnNew", "New"}, + {"BtnOpen", "Open"}, + {"BtnSave", "Save"}, + {"BtnUndo", "Undo"} + }; + diff --git a/Usermode/Applications/gui_ate_src/strings.h b/Usermode/Applications/gui_ate_src/strings.h new file mode 100644 index 00000000..07376fa2 --- /dev/null +++ b/Usermode/Applications/gui_ate_src/strings.h @@ -0,0 +1,15 @@ +/* + * Acess Text Editor (ATE) + * - By John Hodge (thePowersGang) + * + * strings.h + * - String Localisation + */ +#ifndef _STRINGS_H_ +#define _STRINGS_H_ + +extern const char *getstr(const char *key); +extern const char *getimg(const char *key); + +#endif + -- 2.20.1