Tools - Fixes to img2sif
[tpg/acess2.git] / Usermode / Applications / gui_ate_src / strings.c
index 5cfee5d..a699993 100644 (file)
@@ -5,6 +5,8 @@
  * strings.c
  * - String Localisation
  */
+#include "strings.h"
+#include <string.h>
 
 struct keyval_str
 {
@@ -16,6 +18,29 @@ const struct keyval_str      gaDisplayStrings[] = {
        {"BtnNew", "New"},
        {"BtnOpen", "Open"},
        {"BtnSave", "Save"},
-       {"BtnUndo", "Undo"}
+       {"BtnClose", "Close"},
+       {"BtnUndo", "Undo"},
+       {"BtnRedo", "Redo"},
+       {"BtnCut", "Cut"},
+       {"BtnCopy", "Copy"},
+       {"BtnPaste", "Paste"},
+       {"BtnSearch", "Search"},
+       {"BtnReplace", "Replace"},
        };
+const int      ciNumDisplayStrings = sizeof(gaDisplayStrings)/sizeof(gaDisplayStrings[0]);
 
+const char *getstr(const char *key)
+{
+        int    i;
+       for(i = 0; i < ciNumDisplayStrings; i ++)
+       {
+               if( strcmp(key, gaDisplayStrings[i].key) == 0 )
+                       return gaDisplayStrings[i].val;
+       }
+       return "-nostr-";
+}
+
+const char *getimg(const char *key)
+{
+       return "";
+}

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