2 * Acess Text Editor (ATE)
3 * - By John Hodge (thePowersGang)
6 * - String Localisation
17 const struct keyval_str gaDisplayStrings[] = {
21 {"BtnClose", "Close"},
26 {"BtnPaste", "Paste"},
27 {"BtnSearch", "Search"},
28 {"BtnReplace", "Replace"},
30 const int ciNumDisplayStrings = sizeof(gaDisplayStrings)/sizeof(gaDisplayStrings[0]);
31 const struct keyval_str gaImageStrings[] = {
32 {"BtnNew", "file:///Acess/Apps/AxWin/3.0/toolbar_new.sif"},
33 {"BtnOpen", "file:///Acess/Apps/AxWin/3.0/toolbar_open.sif"},
34 {"BtnSave", "file:///Acess/Apps/AxWin/3.0/toolbar_save.sif"}
36 const int ciNumImageStrings = sizeof(gaImageStrings)/sizeof(gaImageStrings[0]);
38 const char *getstr(const char *key)
41 for(i = 0; i < ciNumDisplayStrings; i ++)
43 if( strcmp(key, gaDisplayStrings[i].key) == 0 )
44 return gaDisplayStrings[i].val;
49 const char *getimg(const char *key)
52 for(i = 0; i < ciNumImageStrings; i ++)
54 if( strcmp(key, gaImageStrings[i].key) == 0 )
55 return gaImageStrings[i].val;