使用国际化

This commit is contained in:
许轲 2023-10-07 02:54:03 +08:00
parent 7d7e50c25d
commit 6053b23fce
6 changed files with 15 additions and 7 deletions

View File

@ -12,6 +12,9 @@ public class TextConstants {
public static final String SAVE = "SAVE";
public static final String FILE = "FILE";
public static final String BUILD = "BUILD";
public static final String TERMINAL = "TERMINAL";
public static final String RUN = "RUN";
public static final String DE_BUG = "DE_BUG";
public static final String NEW = "NEW";

View File

@ -2,10 +2,12 @@ package org.jcnc.jnotepad.component.module.vbox;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import org.jcnc.jnotepad.component.module.vbox.components.DebugBox;
import org.jcnc.jnotepad.component.module.vbox.components.CmdTerminalBox;
import org.jcnc.jnotepad.component.module.vbox.components.DebugBox;
import org.jcnc.jnotepad.component.module.vbox.components.RunBox;
import static org.jcnc.jnotepad.common.constants.TextConstants.*;
/**
* 底部Run,Debug,Cmd面板
*
@ -33,13 +35,13 @@ public class BuildPanel extends TabPane {
runBox = new RunBox();
debugBox = new DebugBox();
Tab runTab = new Tab("运行",runBox);
Tab runTab = new Tab(RUN,runBox);
runTab.setClosable(false);
Tab buildTab = new Tab("构建", debugBox);
Tab buildTab = new Tab(BUILD, debugBox);
buildTab.setClosable(false);
Tab cmdTab = new Tab("控制台",cmdTerminalBox);
Tab cmdTab = new Tab(TERMINAL,cmdTerminalBox);
cmdTab.setClosable(false);
this.getTabs().addAll(runTab,buildTab,cmdTab);
}

View File

@ -70,9 +70,6 @@ public class RunTopMenu extends AbstractTopMenu {
String code = centerTab.getLineNumberTextArea().getText();
// TextCodeArea的当前文本内容
System.out.println("TextCodeArea的当前文本内容" + code);
String fileName = centerTab.getText();
// 将C代码写入临时文件

View File

@ -10,6 +10,8 @@ CHINESE=中文
title=JNotepad
OPEN=打开
OPEN_DIRECTORY=打开文件夹
BUILD=构建
TERMINAL=控制台
ABOUT=关于
DEVELOPER=开发者
HELP=帮助

View File

@ -14,6 +14,8 @@ OPEN=Open
OPEN_DIRECTORY=Open Directory
HELP=Help
RUN=Run
BUILD=Build
TERMINAL=Terminal
DE_BUG=Debug
OPEN_CONFIGURATION_FILE=Open Configuration File
RENAME=Rename

View File

@ -13,6 +13,8 @@ OPEN_DIRECTORY=打开文件夹
HELP=帮助
RUN=运行
DE_BUG=调试
BUILD=构建
TERMINAL=控制台
ABOUT=关于
DEVELOPER=开发者
OPEN_CONFIGURATION_FILE=打开配置文件