|
@@ -0,0 +1,40 @@
|
|
|
+package ui.view;
|
|
|
+
|
|
|
+public class Languages {
|
|
|
+ /* 0 = English (default), 1 = Spanish, 2 = German, 3 = Czech, 4 = Chinese */
|
|
|
+ int languageVar = 0;
|
|
|
+ String[] array = new String[1000];
|
|
|
+
|
|
|
+ void Languages() {
|
|
|
+ setLang(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ void setLang(int i) {
|
|
|
+ languageVar = i;
|
|
|
+ }
|
|
|
+
|
|
|
+ void chooseLang(int lan) {
|
|
|
+ switch (lan) {
|
|
|
+ case 0:
|
|
|
+ array = new String[] { "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace",
|
|
|
+ "Edit showed Information", "Options", "Reset Categories", "View", "View Size", "Help", "About Us" };
|
|
|
+ case 1:
|
|
|
+ array = new String[] { "Archivo", "Nuevo", "Abrir", "Guardar", "Editar", "Deshacer", "Rehacer",
|
|
|
+ "Buscar/Reemplazar", "Editar Informacion a mostrar", "Opciones", "Resetear Categorias", "Vista",
|
|
|
+ "Tamano de Vista", "Ayuda", "Sobre Nosotros" };
|
|
|
+ case 2:
|
|
|
+ array = new String[] { "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace",
|
|
|
+ "Edit showed Information", "Options", "Reset Categories", "View", "View Size", "Help", "About Us" };
|
|
|
+ case 3:
|
|
|
+ array = new String[] { "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace",
|
|
|
+ "Edit showed Information", "Options", "Reset Categories", "View", "View Size", "Help", "About Us" };
|
|
|
+ case 4:
|
|
|
+ array = new String[] { "File", "New", "Open", "Save", "Edit", "Undo", "Redo", "Find/Replace",
|
|
|
+ "Edit showed Information", "Options", "Reset Categories", "View", "View Size", "Help", "About Us" };
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ String[] getLang() {
|
|
|
+ return array;
|
|
|
+ }
|
|
|
+}
|