lang.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /*
  2. * sfnedit/lang.h
  3. *
  4. * Copyright (C) 2020 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. * @brief Multilanguage definitions
  27. *
  28. */
  29. enum {
  30. /* error messages */
  31. ERR_MEM = 0,
  32. ERR_DISPLAY,
  33. ERR_LOAD,
  34. ERR_SAVE,
  35. ERR_SIZE,
  36. /* status bar */
  37. STAT_MEASURE,
  38. STAT_OUTLINE,
  39. STAT_GETKERN,
  40. STAT_QUANT,
  41. STAT_RDFILE,
  42. STAT_BITMAP,
  43. STAT_SQRPIX,
  44. STAT_TALLPIX,
  45. STAT_WIDEPIX,
  46. STAT_GENFRAG,
  47. STAT_COMPFRAG,
  48. STAT_SERFRAG,
  49. STAT_WRTCHARS,
  50. STAT_WRTFILE,
  51. STAT_RASTERIZE,
  52. STAT_VECTORIZE,
  53. STAT_LINES,
  54. STAT_COPY,
  55. /* copyright text */
  56. HELP,
  57. HELPSTR,
  58. CPYRGT_0,
  59. CPYRGT_1,
  60. CPYRGT_2,
  61. CPYRGT_3,
  62. CPYRGT_4,
  63. CPYRGT_5,
  64. CPYRGT_6,
  65. CPYRGT_7,
  66. CPYRGT_8,
  67. CPYRGT_9,
  68. /* tools */
  69. MTOOL_ABOUT,
  70. MTOOL_LOAD,
  71. MTOOL_SAVE,
  72. MTOOL_PROPS,
  73. MTOOL_RANGES,
  74. MTOOL_GLYPHS,
  75. MTOOL_TEST,
  76. GTOOL_MEASURES,
  77. GTOOL_LAYERS,
  78. GTOOL_KERN,
  79. GTOOL_COLOR,
  80. /* file operations */
  81. FILEOP_NAME,
  82. FILEOP_SIZE,
  83. FILEOP_TIME,
  84. FILEOP_RANGE,
  85. FILEOP_REPLACE,
  86. FILEOP_GDIM,
  87. FILEOP_IMPORT,
  88. FILEOP_SAVE,
  89. FILEOP_DOSAVE,
  90. FILEOP_NEW,
  91. FILEOP_NO,
  92. FILEOP_YES,
  93. FILEOP_WDAY0, FILEOP_WDAY1, FILEOP_WDAY2, FILEOP_WDAY3, FILEOP_WDAY4, FILEOP_WDAY5, FILEOP_WDAY6,
  94. FILEOP_YESTERDAY,
  95. FILEOP_NOW,
  96. FILEOP_MSAGO,
  97. FILEOP_HSAGO,
  98. FILEOP_HAGO,
  99. /* properties */
  100. PROP_TYPE,
  101. PROP_NAME,
  102. PROP_FAMILY,
  103. PROP_SUBFAM,
  104. PROP_REVISION,
  105. PROP_MANUFACTURER,
  106. PROP_LICENSE,
  107. PROP_SERIF,
  108. PROP_SANS,
  109. PROP_DECOR,
  110. PROP_MONO,
  111. PROP_HAND,
  112. PROP_BOLD,
  113. PROP_ITALIC,
  114. PROP_USRDEF1,
  115. PROP_USRDEF2,
  116. /* ranges */
  117. RANGES_SHOWALL,
  118. RANGES_COVERAGE,
  119. RANGES_NAME,
  120. /* glyphs */
  121. GLYPHS_VECTORIZE,
  122. GLYPHS_NOVECTORIZE,
  123. GLYPHS_RASTERIZE,
  124. GLYPHS_TOLINES,
  125. GLYPHS_ZOOMOUT,
  126. GLYPHS_ZOOMIN,
  127. GLYPHS_CUT,
  128. GLYPHS_COPY,
  129. GLYPHS_PASTE,
  130. GLYPHS_DELETE,
  131. GLYPHS_RESULTS,
  132. GLYPHS_UNDEF,
  133. GLYPHS_LIGATURE,
  134. GLYPHS_SELECT,
  135. /* coords */
  136. COORDS_CLIPBRD,
  137. COORDS_WIDTH,
  138. COORDS_HEIGHT,
  139. COORDS_BASELINE,
  140. COORDS_UNDERLINE,
  141. COORDS_OVERLAP,
  142. COORDS_HADV,
  143. COORDS_VADV,
  144. COORDS_RTL,
  145. COORDS_UTD,
  146. COORDS_LTR,
  147. COORDS_REPOS,
  148. COORDS_ITALIC,
  149. COORDS_UNITALIC,
  150. COORDS_HFLIP,
  151. COORDS_VFLIP,
  152. COORDS_RECALC,
  153. COORDS_DELETE,
  154. /* layers */
  155. LAYERS_ZOOMOUT,
  156. LAYERS_ZOOMIN,
  157. LAYERS_CUT,
  158. LAYERS_COPY,
  159. LAYERS_PASTE,
  160. LAYERS_VECTOR,
  161. LAYERS_BITMAP,
  162. LAYERS_PIXMAP,
  163. LAYERS_FOREGROUND,
  164. LAYERS_PICKER,
  165. LAYERS_DELETE,
  166. /* kerning */
  167. KERN_DELETE,
  168. /* colors */
  169. COLORS_SET,
  170. /* help strings */
  171. WHELP_MWIN,
  172. WHELP_GWIN,
  173. MHELP_ABOUT,
  174. MHELP_LOAD,
  175. MHELP_SAVE,
  176. MHELP_PROPS,
  177. MHELP_RANGES,
  178. MHELP_GLYPHS,
  179. MHELP_TEST,
  180. GHELP_MEASURES,
  181. GHELP_LAYERS,
  182. GHELP_KERN,
  183. GHELP_COLOR,
  184. /* must be the last */
  185. NUMTEXTS
  186. };
  187. #define NUMLANGS 2
  188. extern char *dict[NUMLANGS][NUMTEXTS + 1], **lang;