package com.lloydm.javakogengine_chess; class Translation //13mar2021 { public static String[] foreignnumbers; //13mar2021 public static int MAXNUM = 10001; public static String filename = ""; public static boolean languageready = false; public static String[] foreignwords; //13mar2021 public static String[] defaultwords; //13mar2021 public static String[] sortedforeignwords; //28mar2021 public static String[] sorteddefaultwords; //28mar2021 public static boolean sorted = false;//28mar2021 public static int sortmax = 0;//28mar2021 ///////////////////Method Definition/////////////// public static void init(String nfilename) { //initialise the translation class /* foreignnumbers = new String[MAXNUM]; for(int i=0;i0) { defaultwords = new String[data.length]; foreignwords = new String[data.length]; for(int i=0;i=MAXNUM) { return "" + n; } if(n>=0 && n=ZERO[0] && char.ToUpper(letters[i])<=ZZ[0]) { count--; } } if(count<=0) { return 1; } */ //return count; } ///////////////////Method Definition/////////////// public static boolean AllAscii(String text) //16mar2021 //another fix for Chinese Text.... { //used in drawtext ot make sure the scale of the text is right /* if(text==null) { return false; } int count = text.length(); if(count<=0) { return false; } */ /* char[] letters = text.ToCharArray(); char[] ZERO = " ".ToCharArray(); char[] ZZ = "~".ToCharArray(); for(int i=0;iZZ[0]) { return false; } } */ return true; } }