1 ##rem $Id: strings_c.sd,v 1.3 2002/08/20 09:48:04 jrzeuski Exp $
4 /****************************************************************
6 This file was created automatically by `%fv'
11 ****************************************************************/
16 Original GPL release version 4.12
17 Copyright 1993-2000 Jonathan Potter
19 This program is free software; you can redistribute it and/or
20 modify it under the terms of the GNU General Public License
21 as published by the Free Software Foundation; either version 2
22 of the License, or (at your option) any later version.
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
29 You should have received a copy of the GNU General Public License
30 along with this program; if not, write to the Free Software
31 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 All users of Directory Opus 4 (including versions distributed
34 under the GPL) are entitled to upgrade to the latest version of
35 Directory Opus version 5 at a reduced price. Please see
36 http://www.gpsoft.com.au for more information.
38 The release of Directory Opus 4 under the GPL in NO WAY affects
39 the existing commercial status of Directory Opus 5.
47 static const struct DefaultString
50 {STR_STRING_COUNT,NULL}};
52 char str_okaystring[30];
53 char str_cancelstring[30];
55 void readstrings(file)
59 stringdata.default_table=default_strings;
60 stringdata.string_count=STR_STRING_COUNT;
61 stringdata.min_version=%v;
62 //D(bug("readstrings(\%%%s)\\n",file);Delay(50);)
64 //D(bug("STR_STRING_COUNT=\%%%ld\\n",STR_STRING_COUNT));
65 //D(for(a=0;a<STR_STRING_COUNT;a++) bug("\%%%ld\\t\%%%s\\n",default_strings[a].string_id,default_strings[a].string));
66 if (!(ReadStringFile(&stringdata,file))) quit();
67 globstring=stringdata.string_table;
70 date_months[a]=globstring[STR_MONTH_JANUARY+a];
71 date_shortmonths[a]=globstring[STR_MONTH_JAN+a];
73 date_weekdays[0]=globstring[STR_DAY_SUNDAY];
74 date_shortweekdays[0]=globstring[STR_DAY_SUN];
76 date_weekdays[a]=globstring[(STR_DAY_MONDAY-1)+a];
77 date_shortweekdays[a]=globstring[(STR_DAY_MON-1)+a];
79 for (a=0;a<4;a++) date_special[a]=globstring[STR_DAY_YESTERDAY+a];
81 strcpy(str_okaystring,globstring[STR_OKAY]);
82 strcpy(str_cancelstring,globstring[STR_CANCEL]);
85 int getkeyshortcut(const char *str)
89 if ((c = strchr(str,'_'))) return ToLower(c[1]);