Languages.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. package ui.view;
  2. public class Languages {
  3. static int languageVar = 0;
  4. static String[] arrayEN = {
  5. // ToolBar (0-16)
  6. "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace", "Edit showed Information", "Options",
  7. "Reset Categories", "View", "View Size", "Help", "About Us", "Edit Edges", "Language",
  8. // Tables (17-24)
  9. "Object", "Nr.", "Device", "Energy", "Quantity", "Activated", "Field", "Information",
  10. // Graph (25-26)
  11. "None ", "Reset",
  12. // Warning PopUps (27-30)
  13. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  14. "Please select a Category or an Object in order to delete something.",
  15. // Edit Edges Pop Up (31-34)
  16. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  17. // Search/Replace Pop Up (35-45)
  18. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  19. "Replace All", "Close",
  20. // Edit Edges Pop Up (46-55)
  21. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  22. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  23. "Please select one of the options",
  24. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  25. "(enter \"infinite\" for infinite Capacity)",
  26. // Add PopUp Tree (56-63)
  27. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  28. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  29. // Add PopUp Element (64-71)
  30. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  31. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  32. // Info for PropertyTable (72-82)
  33. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  34. "Current flow", "Max. Capacity", "Status",
  35. // Info SimulationMenu (83-87)
  36. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success" };
  37. static String[] arrayES = {
  38. // ToolBar (0-16)
  39. "Archivo", "Nuevo", "Abrir", "Guardar", "Editar", "Deshacer", "Rehacer", "Buscar/Reemplazar",
  40. "Editar Informacion a mostrar", "Opciones", "Resetear Categorias", "Vista", "Tamano de Vista", "Ayuda",
  41. "Sobre Nosotros", "Editar Conexiones", "Idiomas",
  42. // Tables (17-24)
  43. "Objeto", "Nr.", "Equipo", "Enegia", "Cantidad", "Activo", "Campo", "Informacion",
  44. // Graph (25-26)
  45. "Vacio ", "Resetear",
  46. // Warning PopUps(27-30)
  47. "Atencion", "Desea guardar su progreso?", "Esta seguro que quiere eliminar la categoria ",
  48. "Por favor seleccione una categoria o un objecto para poder proceder a eliminarlo.",
  49. // Edit Edges Pop Up (31-34)
  50. "Editar informacion a mostrar", "Mostrar energia total de los objetos",
  51. "Mostrar propiedades de las conexiones", "Cancelar",
  52. // Search/Replace Pop Up (35-45)
  53. "Buscar Objetos", "Buscar", "Reemplazar", "Direccion", "Adelante", "Atras", "Alcance", "Todo", "Uno",
  54. "Reemplazar Todo", "Cerrar",
  55. // Edit Edges Pop Up (46-55)
  56. "Editar Capacidad de las Conexiones", "Capacidad Max.:", "Cambiar para todas las conexiones existentes",
  57. "Cambiar solo para conexiones nuevas", "Cambiar para todas las conexiones existentes y nuevas", "Cancelar",
  58. "Por favor elija una de las opciones",
  59. "Por favor ingrese un valor mayor o igual a 0 en el campo de Capacidad Max.",
  60. "Editar capacidad de las conexiones", "(ingresar \"infinite\" para capacidad infinita)",
  61. // Add PopUp Tree (56-63)
  62. "Por favor ingrese el nombre de la categoria ", "Por favor elija una categoria antes de agregar ",
  63. "Menu para Agregar un Objeto", "Nombre:", "Buscar Imagen", "Agregar Elemento", "Eliminar Elemento",
  64. "Cancelar",
  65. // Add PopUp Element (64-71)
  66. "Agregar Elemento al Objecto", "Nombre del El.:", "Energia:", "Cantidad:",
  67. "Por favor ingrese valores en los campos de cantidad y energia", "Sin nombre", "Nombre en uso", "Cancelar",
  68. // Info for PropertyTable (72-82)
  69. "Nombre", "Energia Total", "Manual", "Activo", " esta conectado a ", " con ID: ", "Canto: ", " a ",
  70. "Corriente actual", "Capacidad Max.", "Estado",
  71. // Info SimulationMenu (83-87)
  72. "Simular", "Velocidad de Simulacion:", "Algoritmo:", "elija carpeta", "exito" };
  73. static String[] arrayDE = {
  74. // ToolBar (0-16)
  75. "Datei", "Neu", "Öffnen", "Speichern", "Bearbeiten", "Rückgängig", "Wiederherstellen", "Suchen/Ersetzen",
  76. "Gezeigte Informationen Ersetzen", "Optionen", "Kategorien Zurücksetzen", "Ansicht", "Ansichtsgröße",
  77. "Hilfe", "Über Uns", "Kanten Bearbeiten", "Sprache",
  78. // Tables (17-24)
  79. "Objekt", "Nr.", "Geräte", "Energie", "Quantität", "Aktiviert", "Feld", "Information",
  80. // Graph (25-26)
  81. "Nichts ", "Zurücksetzen",
  82. // Warning PopUps(27-30)
  83. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  84. "Please select a Category or an Object in order to delete something.",
  85. // Edit Edges Pop Up (31-34)
  86. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  87. // Search/Replace Pop Up (35-45)
  88. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  89. "Replace All", "Close",
  90. // Edit Edges Pop Up (46-55)
  91. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  92. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  93. "Please select one of the options",
  94. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  95. "(enter \"infinite\" for infinite Capacity)",
  96. // Add PopUp Tree (56-63)
  97. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  98. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  99. // Add PopUp Element (64-71)
  100. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  101. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  102. // Info for PropertyTable (72-82)
  103. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  104. "Current flow", "Max. Capacity", "Status",
  105. // Info SimulationMenu (83-87)
  106. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success" };
  107. static String[] arrayCZ = {
  108. // ToolBar (0-16)
  109. "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace", "Edit showed Information", "Options",
  110. "Reset Categories", "View", "View Size", "Help", "About Us", "Edit Edges", "Language",
  111. // Tables (17-24)
  112. "Object", "Nr.", "Device", "Energy", "Quantity", "Activated", "Field", "Information",
  113. // Graph (25-26)
  114. "None ", "Reset",
  115. // Warning PopUps(27-30)
  116. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  117. "Please select a Category or an Object in order to delete something.",
  118. // Edit Edges Pop Up (31-34)
  119. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  120. // Search/Replace Pop Up (35-45)
  121. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  122. "Replace All", "Close",
  123. // Edit Edges Pop Up (46-55)
  124. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  125. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  126. "Please select one of the options",
  127. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  128. "(enter \"infinite\" for infinite Capacity)",
  129. // Add PopUp Tree (56-63)
  130. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  131. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  132. // Add PopUp Element (64-71)
  133. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  134. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  135. // Info for PropertyTable (72-82)
  136. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  137. "Current flow", "Max. Capacity", "Status",
  138. // Info SimulationMenu (83-87)
  139. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success" };
  140. static String[] arrayZH = {
  141. // ToolBar (0-16)
  142. "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace", "Edit showed Information", "Options",
  143. "Reset Categories", "View", "View Size", "Help", "About Us", "Edit Edges", "Language",
  144. // Tables (17-24)
  145. "Object", "Nr.", "Device", "Energy", "Quantity", "Activated", "Field", "Information",
  146. // Graph (25-26)
  147. "None ", "Reset",
  148. // Warning PopUps(27-30)
  149. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  150. "Please select a Category or an Object in order to delete something.",
  151. // Edit Edges Pop Up (31-34)
  152. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  153. // Search/Replace Pop Up (35-45)
  154. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  155. "Replace All", "Close",
  156. // Edit Edges Pop Up (46-55)
  157. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  158. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  159. "Please select one of the options",
  160. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  161. "(enter \"infinite\" for infinite Capacity)",
  162. // Add PopUp Tree (56-63)
  163. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  164. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  165. // Add PopUp Element (64-71)
  166. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  167. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  168. // Info for PropertyTable (72-82)
  169. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  170. "Current flow", "Max. Capacity", "Status",
  171. // Info SimulationMenu (83-87)
  172. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success" };
  173. public static String[] getLanguage() {
  174. switch (languageVar) {
  175. case 0:
  176. return arrayEN;
  177. case 1:
  178. return arrayES;
  179. case 2:
  180. return arrayDE;
  181. case 3:
  182. return arrayCZ;
  183. case 4:
  184. return arrayZH;
  185. default:
  186. return arrayEN;
  187. }
  188. }
  189. public static void setLanguage(int i) {
  190. languageVar = i;
  191. }
  192. }