Usermode/axwin3 - Window destruction and client exit
[tpg/acess2.git] / Usermode / Applications / gui_ate_src / strings.c
1 /*
2  * Acess Text Editor (ATE)
3  * - By John Hodge (thePowersGang)
4  *
5  * strings.c
6  * - String Localisation
7  */
8 #include "strings.h"
9 #include <string.h>
10
11 struct keyval_str
12 {
13         const char      *key;
14         const char      *val;
15 };
16
17 const struct keyval_str gaDisplayStrings[] = {
18         {"BtnNew", "New"},
19         {"BtnOpen", "Open"},
20         {"BtnSave", "Save"},
21         {"BtnClose", "Close"},
22         {"BtnUndo", "Undo"},
23         {"BtnRedo", "Redo"},
24         {"BtnCut", "Cut"},
25         {"BtnCopy", "Copy"},
26         {"BtnPaste", "Paste"},
27         {"BtnSearch", "Search"},
28         {"BtnReplace", "Replace"},
29         };
30 const int       ciNumDisplayStrings = sizeof(gaDisplayStrings)/sizeof(gaDisplayStrings[0]);
31
32 const char *getstr(const char *key)
33 {
34          int    i;
35         for(i = 0; i < ciNumDisplayStrings; i ++)
36         {
37                 if( strcmp(key, gaDisplayStrings[i].key) == 0 )
38                         return gaDisplayStrings[i].val;
39         }
40         return "-nostr-";
41 }
42
43 const char *getimg(const char *key)
44 {
45         return "";
46 }

UCC git Repository :: git.ucc.asn.au