Subversion Repositories SvarDOS

Rev

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

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