Subversion Repositories SvarDOS

Rev

Rev 113 | Rev 119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 116
Line 232... Line 232...
232
  char *msg;
232
  char *msg;
233
  char *langlist[] = {
233
  char *langlist[] = {
234
    "English",
234
    "English",
235
    "French",
235
    "French",
236
    "Polish",
236
    "Polish",
-
 
237
    "Russian",
237
    "Turkish",
238
    "Turkish",
238
    NULL
239
    NULL
239
  };
240
  };
240
 
241
 
241
  newscreen(1);
242
  newscreen(1);
242
  msg = kittengets(1, 0, "Welcome to Svarog386");
243
  msg = kittengets(1, 0, "Welcome to Svarog386");
243
  x = 40 - (strlen(msg) >> 1);
244
  x = 40 - (strlen(msg) >> 1);
244
  video_putstring(4, x, COLOR_BODY[mono], msg, -1);
245
  video_putstring(4, x, COLOR_BODY[mono], msg, -1);
245
  video_putcharmulti(5, x, COLOR_BODY[mono], '=', strlen(msg), 1);
246
  video_putcharmulti(5, x, COLOR_BODY[mono], '=', strlen(msg), 1);
246
  putstringnls(8, -1, COLOR_BODY[mono], 1, 1, "Please select your language from the list below:");
247
  putstringnls(8, -1, COLOR_BODY[mono], 1, 1, "Please select your language from the list below:");
247
  choice = menuselect(11, -1, 6, langlist, -1);
248
  choice = menuselect(11, -1, 7, langlist, -1);
248
  if (choice < 0) return(MENUPREV);
249
  if (choice < 0) return(MENUPREV);
249
  /* populate locales with default values */
250
  /* populate locales with default values */
250
  memset(locales, 0, sizeof(struct slocales));
251
  memset(locales, 0, sizeof(struct slocales));
251
  switch (choice) {
252
  switch (choice) {
252
    case 1:
253
    case 1:
Line 258... Line 259...
258
      strcpy(locales->lang, "PL");
259
      strcpy(locales->lang, "PL");
259
      locales->keyboff = OFFLOC_PL;
260
      locales->keyboff = OFFLOC_PL;
260
      locales->keyblen = OFFLEN_PL;
261
      locales->keyblen = OFFLEN_PL;
261
      break;
262
      break;
262
    case 3:
263
    case 3:
-
 
264
      strcpy(locales->lang, "RU");
-
 
265
      locales->keyboff = OFFLOC_RU;
-
 
266
      locales->keyblen = OFFLEN_RU;
-
 
267
      break;
-
 
268
    case 4:
263
      strcpy(locales->lang, "TR");
269
      strcpy(locales->lang, "TR");
264
      locales->keyboff = OFFLOC_TR;
270
      locales->keyboff = OFFLOC_TR;
265
      locales->keyblen = OFFLEN_TR;
271
      locales->keyblen = OFFLEN_TR;
266
      break;
272
      break;
267
    default:
273
    default: