Languages.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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 Energy", "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:", "non selected", "success",
  37. // Exit Pop Up (88)
  38. "Are you sure you want to exit?",
  39. // Simulation ToolTip (89-93)
  40. "Play", "Reset", "Forward", "Backward", "Time Slider",
  41. // Image Size Slider (94)
  42. "Image Size" };
  43. static String[] arrayES = {
  44. // ToolBar (0-16)
  45. "Archivo", "Nuevo", "Abrir", "Guardar", "Editar", "Deshacer", "Rehacer", "Buscar/Reemplazar",
  46. "Editar Información a mostrar", "Opciones", "Resetear Categorias", "Vista", "Tamaño de Vista", "Ayuda",
  47. "Sobre Nosotros", "Editar Conexiones", "Idiomas",
  48. // Tables (17-24)
  49. "Objeto", "Nr.", "Equipo", "Enegia", "Cantidad", "Activo", "Campo", "Información",
  50. // Graph (25-26)
  51. "Vacio ", "Resetear",
  52. // Warning PopUps(27-30)
  53. "Atención", "Desea guardar su progreso?", "Esta seguro que quiere eliminar la categoría ",
  54. "Por favor, seleccione una categoria o un objecto para poder proceder a eliminarlo.",
  55. // Edit Edges Pop Up (31-34)
  56. "Editar información a mostrar", "Mostrar energia total de los objetos",
  57. "Mostrar propiedades de las conexiones", "Cancelar",
  58. // Search/Replace Pop Up (35-45)
  59. "Buscar Objetos", "Buscar", "Reemplazar", "Dirección", "Adelante", "Atrás", "Alcance", "Todo", "Uno",
  60. "Reemplazar Todo", "Cerrar",
  61. // Edit Edges Pop Up (46-55)
  62. "Editar Capacidad de las Conexiones", "Capacidad Max.:", "Cambiar para todas las conexiones existentes",
  63. "Cambiar solo para conexiones nuevas", "Cambiar para todas las conexiones existentes y nuevas", "Cancelar",
  64. "Por favor, elija una de las opciones",
  65. "Por favor, ingrese un valor mayor o igual a 0 en el campo de Capacidad Max.",
  66. "Editar capacidad de las conexiones", "(ingresar \"infinite\" para capacidad infinita)",
  67. // Add PopUp Tree (56-63)
  68. "Por favor, ingrese el nombre de la categoria ", "Por favor, elija una categoria antes de agregar ",
  69. "Menu para Agregar un Objeto", "Nombre:", "Buscar Imagen", "Agregar Elemento", "Eliminar Elemento",
  70. "Cancelar",
  71. // Add PopUp Element (64-71)
  72. "Agregar Elemento al Objecto", "Nombre del El.:", "Energía:", "Cantidad:",
  73. "Por favor, ingrese valores en los campos de cantidad y energía", "Sin nombre", "Nombre en uso", "Cancelar",
  74. // Info for PropertyTable (72-82)
  75. "Nombre", "Energia Total", "Manual", "Activo", " esta conectado a ", " con ID: ", "Canto: ", " a ",
  76. "Corriente actual", "Capacidad Max.", "Estado",
  77. // Info SimulationMenu (83-87)
  78. "Simular", "Velocidad de Simulación:", "Algoritmo:", "nada seleccionado", "exito",
  79. // Exit Pop Up (88)
  80. "Esta seguro que quiere cerrar el programa?",
  81. // Simulation ToolTip (89-93)
  82. "Iniciar", "Resetear", "Adelante", "Atrás", "Linea de Tiempo",
  83. // Image Size Slider (94)
  84. "Tamaño de la Imagen" };
  85. static String[] arrayDE = {
  86. // ToolBar (0-16)
  87. "Datei", "Neu", "Öffnen", "Speichern", "Bearbeiten", "Rückgängig", "Wiederherstellen", "Suchen/Ersetzen",
  88. "Gezeigte Informationen Ersetzen", "Optionen", "Kategorien Zurücksetzen", "Ansicht", "Ansichtsgröße",
  89. "Hilfe", "Über Uns", "Kanten Bearbeiten", "Sprache",
  90. // Tables (17-24)
  91. "Objekt", "Nr.", "Geräte", "Energie", "Quantität", "Aktiviert", "Feld", "Information",
  92. // Graph (25-26)
  93. "Nichts ", "Zurücksetzen",
  94. // Warning PopUps(27-30)
  95. "Warnung", "Möchten Sie ihre aktuellen Daten speichern?", "Möchten Sie wirklich die Kategorie löschen ",
  96. "Bitte wählen Sie eine Kategorie oder ein Objekt um etwas löschen zu können.",
  97. // Edit Edges Pop Up (31-34)
  98. "Gezeigte Informationen Ersetzen", "Gesamtenergie von Objekten zeigen", "Verbindungseigenschaften zeigen",
  99. "Abbrechen",
  100. // Search/Replace Pop Up (35-45)
  101. "Objekte suchen", "Suchen", "Ersetzen", "Richtung", "Vorwärts", "Rückwerts", "Scope", "Alle", "Einzeln",
  102. "Alle Ersetzen", "Schließen",
  103. // Edit Edges Pop Up (46-55)
  104. "Kapazitäten von Kanten bearbeiten", "Max. Kapazität:", "Nur für alle existierenden Kanten ändern",
  105. "Nur für neu erstellte Kanten ändern", "Für alle existierenden und neuen Kanten ändern", "Abbrechen",
  106. "Bitte wählen Sie eine der Optionen",
  107. "Bitte geben Sie eine Zahl größer-gleich 0 im Feld für Maximale Kapazität ein",
  108. "Kapazitäten von Kanten bearbeiten", "(geben Sie \"infinite\" für unbeschränkte Kapazitäten ein)",
  109. // Add PopUp Tree (56-63)
  110. "Bitte geben Sie einen Namen für die Kategorie ein ", "Bitte wählen Sie eine Kategorie vor dem hinzufügen ",
  111. "Objekt Hinzufügen Menü", "Name:", "Bilder durchsuchen", "Element hinzufügen", "Element löschen",
  112. "Abbrechen",
  113. // Add PopUp Element (64-71)
  114. "Element zu Objekt hinzufügen", "Element Name:", "Bereitgestellte Energie:", "Menge:",
  115. "Bitte geben Sie Nummern in den Feldern für Menge und Energie ein", "Kein Name", "Name bereits vergeben",
  116. "Abbrechen",
  117. // Info for PropertyTable (72-82)
  118. "Name", "Gesamte Energie", "Manuell", "Aktive", " ist verbunden mit", " mit ID: ", "Kante: ", " nach ",
  119. "aktueller Fluss", "Max. Kapazität", "Status",
  120. // Info SimulationMenu (83-87)
  121. "Simulieren", "Simulationsgeschwindigkeit:", "Algorithmus:", "nichts ausgewählt", "Erfolg",
  122. // Exit Pop Up (88)
  123. "Sind Sie sich sicher, dass Sie das Programm beenden wollen?",
  124. // Simulation ToolTip (89-93)
  125. "Play", "Reset", "Forward", "Backward", "Time Slider",
  126. // Image Size Slider (94)
  127. "Image Size" };
  128. static String[] arrayCZ = {
  129. // ToolBar (0-16)
  130. "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace", "Edit showed Information", "Options",
  131. "Reset Categories", "View", "View Size", "Help", "About Us", "Edit Edges", "Language",
  132. // Tables (17-24)
  133. "Object", "Nr.", "Device", "Energy", "Quantity", "Activated", "Field", "Information",
  134. // Graph (25-26)
  135. "None ", "Reset",
  136. // Warning PopUps(27-30)
  137. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  138. "Please select a Category or an Object in order to delete something.",
  139. // Edit Edges Pop Up (31-34)
  140. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  141. // Search/Replace Pop Up (35-45)
  142. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  143. "Replace All", "Close",
  144. // Edit Edges Pop Up (46-55)
  145. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  146. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  147. "Please select one of the options",
  148. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  149. "(enter \"infinite\" for infinite Capacity)",
  150. // Add PopUp Tree (56-63)
  151. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  152. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  153. // Add PopUp Element (64-71)
  154. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  155. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  156. // Info for PropertyTable (72-82)
  157. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  158. "Current flow", "Max. Capacity", "Status",
  159. // Info SimulationMenu (83-87)
  160. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success",
  161. // Exit Pop Up (88)
  162. "Are you sure you want to exit?",
  163. // Simulation ToolTip (89-93)
  164. "Play", "Reset", "Forward", "Backward", "Time Slider",
  165. // Image Size Slider (94)
  166. "Image Size" };
  167. static String[] arrayZH = {
  168. // ToolBar (0-16)
  169. "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace", "Edit showed Information", "Options",
  170. "Reset Categories", "View", "View Size", "Help", "About Us", "Edit Edges", "Language",
  171. // Tables (17-24)
  172. "Object", "Nr.", "Device", "Energy", "Quantity", "Activated", "Field", "Information",
  173. // Graph (25-26)
  174. "None ", "Reset",
  175. // Warning PopUps(27-30)
  176. "Warning", "Do you want to save your current data?", "Do you really want to delete the Category ",
  177. "Please select a Category or an Object in order to delete something.",
  178. // Edit Edges Pop Up (31-34)
  179. "Edit Showed Informations", "Show Total Energy of Objects", "Show Connection Properties", "Cancel",
  180. // Search/Replace Pop Up (35-45)
  181. "Search for Objects", "Find", "Replace", "Direction", "Forward", "Backward", "Scope", "All", "Single",
  182. "Replace All", "Close",
  183. // Edit Edges Pop Up (46-55)
  184. "Edit Capacities of Edges", "Maximum Capacity:", "Change for all existing Edges only",
  185. "Change for new created Edges only", "Change for all existing and new created Edges", "Cancel",
  186. "Please select one of the options",
  187. "Please enter a number greater or equal 0 in the Field for Maximum Capacity", "Edit Edge Capacities",
  188. "(enter \"infinite\" for infinite Capacity)",
  189. // Add PopUp Tree (56-63)
  190. "Please enter a Name for Category ", "Please select a Category first before adding ", "Add Object Menu",
  191. "Name:", "Browse Image", "Add Element", "Delete Element", "Cancel",
  192. // Add PopUp Element (64-71)
  193. "Add Element to Object", "Element Name:", "Provided Energy:", "Amount:",
  194. "Please enter numbers in the Fields amount and providedEnergy", "No name", "Name already given", "Cancel",
  195. // Info for PropertyTable (72-82)
  196. "Name", "Total Energy", "Manual", "Active", " is connected to", " with ID: ", "Edge: ", " to ",
  197. "Current flow", "Max. Capacity", "Status",
  198. // Info SimulationMenu (83-87)
  199. "Simulate", "Simulation Speed:", "Algorithm:", "choose folder", "success",
  200. // Exit Pop Up (88)
  201. "Are you sure you want to exit?",
  202. // Simulation ToolTip (89-93)
  203. "Play", "Reset", "Forward", "Backward", "Time Slider",
  204. // Image Size Slider (94)
  205. "Image Size" };
  206. public static String[] getLanguage() {
  207. switch (languageVar) {
  208. case 0:
  209. return arrayEN;
  210. case 1:
  211. return arrayES;
  212. case 2:
  213. return arrayDE;
  214. case 3:
  215. return arrayCZ;
  216. case 4:
  217. return arrayZH;
  218. default:
  219. return arrayEN;
  220. }
  221. }
  222. public static void setLanguage(int i) {
  223. languageVar = i;
  224. }
  225. }