Hello,
I'm trying to implement an langauge system in my java app.
I have in the language pack 3 .java files:
- English
- Spanish
- Language
The language.java file makes the variables public static and the english or spanish.java file defines the variables. Only I can't get this working.
In the english.java and spanish.java netbeans says: "Local variable hides a field." How would you make the english.java file?Code:package com.blades.decoy.settings.language;
public interface Language {
String msg_welcome = "";
String msg_connect_info = "";
String msg_ip_info = "";
String msg_port_info = "";
String btn_connect = "";
public static String msg_login_info = "";
public static String msg_login_fault_password = "";
public static String msg_login_fault_username = "";
public static String msg_login_correct = "";
public static String btn_login = "";
}
Many thanks,
Night Fox
