Subversion Repositories SvarDOS

Rev

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

Rev 1125 Rev 1177
Line 1... Line 1...
1
/*
1
/*
2
 * SVARDOS INSTALL PROGRAM
2
 * SVARDOS INSTALL PROGRAM
3
 *
3
 *
4
 * PUBLISHED UNDER THE TERMS OF THE MIT LICENSE
4
 * PUBLISHED UNDER THE TERMS OF THE MIT LICENSE
5
 *
5
 *
6
 * COPYRIGHT (C) 2016-2022 MATEUSZ VISTE, ALL RIGHTS RESERVED.
6
 * COPYRIGHT (C) 2016-2023 MATEUSZ VISTE, ALL RIGHTS RESERVED.
7
 *
7
 *
8
 * Permission is hereby granted, free of charge, to any person obtaining a
8
 * Permission is hereby granted, free of charge, to any person obtaining a
9
 * copy of this software and associated documentation files (the "Software"),
9
 * copy of this software and associated documentation files (the "Software"),
10
 * to deal in the Software without restriction, including without limitation
10
 * to deal in the Software without restriction, including without limitation
11
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Line 264... Line 264...
264
static int selectlang(struct slocales *locales) {
264
static int selectlang(struct slocales *locales) {
265
  int choice, x;
265
  int choice, x;
266
  const char *msg;
266
  const char *msg;
267
  const char *langlist[] = {
267
  const char *langlist[] = {
268
    "English",
268
    "English",
-
 
269
    "Brazilian",
269
    "French",
270
    "French",
270
    "German",
271
    "German",
271
    "Italian",
272
    "Italian",
272
    "Polish",
273
    "Polish",
273
    "Russian",
274
    "Russian",
Line 292... Line 293...
292
      strcpy(locales->lang, "FR");
293
      strcpy(locales->lang, "FR");
293
      locales->keyboff = OFFLOC_FR;
294
      locales->keyboff = OFFLOC_FR;
294
      locales->keyblen = OFFLEN_FR;
295
      locales->keyblen = OFFLEN_FR;
295
      break;
296
      break;
296
    case 2:
297
    case 2:
-
 
298
      strcpy(locales->lang, "BR");
-
 
299
      locales->keyboff = OFFLOC_BR;
-
 
300
      locales->keyblen = OFFLEN_BR;
-
 
301
      break;
-
 
302
    case 3:
297
      strcpy(locales->lang, "DE");
303
      strcpy(locales->lang, "DE");
298
      locales->keyboff = OFFLOC_DE;
304
      locales->keyboff = OFFLOC_DE;
299
      locales->keyblen = OFFLEN_DE;
305
      locales->keyblen = OFFLEN_DE;
300
      break;
306
      break;
301
    case 3:
307
    case 4:
302
      strcpy(locales->lang, "IT");
308
      strcpy(locales->lang, "IT");
303
      locales->keyboff = OFFLOC_IT;
309
      locales->keyboff = OFFLOC_IT;
304
      locales->keyblen = OFFLEN_IT;
310
      locales->keyblen = OFFLEN_IT;
305
      break;
311
      break;
306
    case 4:
312
    case 5:
307
      strcpy(locales->lang, "PL");
313
      strcpy(locales->lang, "PL");
308
      locales->keyboff = OFFLOC_PL;
314
      locales->keyboff = OFFLOC_PL;
309
      locales->keyblen = OFFLEN_PL;
315
      locales->keyblen = OFFLEN_PL;
310
      break;
316
      break;
311
    case 5:
317
    case 6:
312
      strcpy(locales->lang, "RU");
318
      strcpy(locales->lang, "RU");
313
      locales->keyboff = OFFLOC_RU;
319
      locales->keyboff = OFFLOC_RU;
314
      locales->keyblen = OFFLEN_RU;
320
      locales->keyblen = OFFLEN_RU;
315
      break;
321
      break;
316
    case 6:
322
    case 7:
317
      strcpy(locales->lang, "SI");
323
      strcpy(locales->lang, "SI");
318
      locales->keyboff = OFFLOC_SI;
324
      locales->keyboff = OFFLOC_SI;
319
      locales->keyblen = OFFLEN_SI;
325
      locales->keyblen = OFFLEN_SI;
320
      break;
326
      break;
321
    case 7:
327
    case 8:
322
      strcpy(locales->lang, "SV");
328
      strcpy(locales->lang, "SV");
323
      locales->keyboff = OFFLOC_SV;
329
      locales->keyboff = OFFLOC_SV;
324
      locales->keyblen = OFFLEN_SV;
330
      locales->keyblen = OFFLEN_SV;
325
      break;
331
      break;
326
    case 8:
332
    case 9:
327
      strcpy(locales->lang, "TR");
333
      strcpy(locales->lang, "TR");
328
      locales->keyboff = OFFLOC_TR;
334
      locales->keyboff = OFFLOC_TR;
329
      locales->keyblen = OFFLEN_TR;
335
      locales->keyblen = OFFLEN_TR;
330
      break;
336
      break;
331
    default:
337
    default: