Commit 15f7b3cd authored by Daniel Dreibrodt's avatar Daniel Dreibrodt

language system fix

korean language update
parent 01ba03fd
......@@ -72,12 +72,12 @@ MENU_HELP_ABOUT|정보(A)
MENU_HELP_ABOUT_MN|A
#The toolbar
TOOLBAR_OPEN|열기...
TOOLBAR_SAVE|저장
TOOLBAR_OPEN|스킨 열기...
TOOLBAR_SAVE|스킨 변경 저장
TOOLBAR_UNDO|실행취소
TOOLBAR_REDO|실행복구
TOOLBAR_MOVE|Item moving tool
TOOLBAR_PATH|Slider editing tool
TOOLBAR_MOVE|항목 이동 도구
TOOLBAR_PATH|슬라이더 수정 도구
#Resource Window
WIN_RES_TITLE|자원
......
......@@ -41,7 +41,7 @@ public class Language {
File index = new File("lang/languages.txt");
FileInputStream fis = new FileInputStream(index);
String text = "";
byte[] chars = new byte[1024];
byte[] chars = new byte[(int)index.length()];
while(fis.read(chars)!=-1) text+=new String(chars, "UTF-8");
String[] lines = text.split("\\n");
......@@ -113,19 +113,21 @@ public class Language {
try {
FileInputStream fis = new FileInputStream(f);
String text = "";
byte[] chars = new byte[1024];
byte[] chars = new byte[(int)f.length()];
while(fis.read(chars)!=-1) text+=new String(chars, "UTF-8");
String[] lines = text.split("\\n");
for(String line:lines) {
line = line.trim();
//line = line.trim();
if(line.startsWith("@include")) {
String file = line.substring(9);
load(new File(f.getParent() + File.separator + file));
} else if(!line.startsWith("#")) {
System.out.println(line);
String[] fields = line.split("\\|");
if(fields.length == 2) {
System.out.println(fields[0]+"-->"+fields[1]);
strings.put(fields[0], fields[1].replaceAll("\\\\n", "\n"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment