lang.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * mkbootimg/lang.h
  3. *
  4. * Copyright (C) 2017 - 2021 bzt (bztsrc@gitlab)
  5. *
  6. * Permission is hereby granted, free of charge, to any person
  7. * obtaining a copy of this software and associated documentation
  8. * files (the "Software"), to deal in the Software without
  9. * restriction, including without limitation the rights to use, copy,
  10. * modify, merge, publish, distribute, sublicense, and/or sell copies
  11. * of the Software, and to permit persons to whom the Software is
  12. * furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be
  15. * included in all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  18. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  19. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  20. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  21. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  22. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  24. * DEALINGS IN THE SOFTWARE.
  25. *
  26. * This file is part of the BOOTBOOT Protocol package.
  27. * @brief Multilanguage support
  28. *
  29. */
  30. enum {
  31. ERR_MEM = 0,
  32. ERR_INITRDIMG,
  33. ERR_NOINITRD,
  34. ERR_NOINITRDTYPE,
  35. ERR_BADINITRDTYPE,
  36. ERR_INITRDTYPE,
  37. ERR_ACCEPTVALUES,
  38. ERR_NOCONF,
  39. ERR_BIGCONF,
  40. ERR_NOPART,
  41. ERR_NOPARTSIZE,
  42. ERR_BADARCH,
  43. ERR_MORESEG,
  44. ERR_BADENTRYP,
  45. ERR_INVALIDEXE,
  46. ERR_BADADDR,
  47. ERR_BADALIGN,
  48. ERR_PAGEALIGN,
  49. ERR_ADDRCOL,
  50. ERR_BADSIZE,
  51. ERR_BIGSEG,
  52. ERR_WRITE,
  53. ERR_LOCKRNL,
  54. ERR_KRNL,
  55. ERR_JSON,
  56. ERR_TYPE,
  57. ERR_GUIDFMT,
  58. ERR_NONAME,
  59. ERR_PARTIMG,
  60. ERR_ST2ALIGN,
  61. ERR_PARTSIZE,
  62. ERR_NOSIZE,
  63. ERR_TOOBIG,
  64. ERR_TOOMANY,
  65. STATADDR,
  66. DYNADDR,
  67. HELP1,
  68. HELP2,
  69. HELP3,
  70. HELP4,
  71. HELP5,
  72. HELP6,
  73. WRITING,
  74. SAVED,
  75. /* must be the last */
  76. NUMTEXTS
  77. };
  78. #define NUMLANGS 3
  79. extern char *dict[NUMLANGS][NUMTEXTS + 1], **lang;