mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.9.3.1
This commit is contained in:
@@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package gplx.xowa; import gplx.*;
|
||||
public class Xol_lang_itm {
|
||||
public Xol_lang_itm(int id, byte[] key, byte[] canonical_name) {this.id = id; this.key = key; this.canonical_name = canonical_name; this.local_name = canonical_name;}
|
||||
public int Id() {return id;} private int id;
|
||||
public byte[] Key() {return key;} private byte[] key;
|
||||
public int Id() {return id;} private final int id;
|
||||
public byte[] Key() {return key;} private final byte[] key;
|
||||
public byte[] Canonical_name() {return canonical_name;} private byte[] canonical_name;
|
||||
public byte[] Local_name() {return local_name;} private byte[] local_name;
|
||||
public byte[] Local_grp() {return local_grp;} private byte[] local_grp = Bry_.Empty;
|
||||
|
||||
@@ -854,9 +854,9 @@ Regy_add(regy, Id_zu, "zu", "isiZulu");
|
||||
}
|
||||
return regy;
|
||||
}
|
||||
private static Hash_adp_bry regy; static Xol_lang_itm[] langs = new Xol_lang_itm[Id__max];
|
||||
private static Hash_adp_bry regy; private static Xol_lang_itm[] langs = new Xol_lang_itm[Id__max];
|
||||
private static void Regy_add(Hash_adp_bry regy, int id, String code_str, String canonical) {
|
||||
byte[] code = Bry_.new_utf8_(code_str);
|
||||
byte[] code = Bry_.new_ascii_(code_str); // ASCII:lang_code should always be ASCII
|
||||
Xol_lang_itm itm = new Xol_lang_itm(id, code, Bry_.new_utf8_(canonical));
|
||||
langs[id] = itm;
|
||||
regy.Add(code, itm);
|
||||
|
||||
Reference in New Issue
Block a user