1.修复IDEA中无法加载resources文件夹的Bug;2.修改多语言Demo
This commit is contained in:
@@ -962,7 +962,7 @@ public enum FXPlusLocale {
|
||||
|
||||
```java
|
||||
@FXWindow(mainStage = true, title = "languageDemo")
|
||||
@FXController(path = "fxml/languageDemo/languageDemo.fxml", locale = FXPlusLocale.SIMPLIFIED_CHINESE)
|
||||
@FXController(path = "fxml/langDemo/langDemo.fxml", locale = FXPlusLocale.SIMPLIFIED_CHINESE)
|
||||
public class ChineseController extends FXBaseController {
|
||||
@FXML
|
||||
public void clickToOtherLanguage() {
|
||||
@@ -978,7 +978,7 @@ public class ChineseController extends FXBaseController {
|
||||
|
||||
```java
|
||||
@FXWindow(mainStage = false, title = "languageDemo")
|
||||
@FXController(path = "fxml/languageDemo/languageDemo.fxml", locale = FXPlusLocale.ENGLISH)
|
||||
@FXController(path = "fxml/langDemo/langDemo.fxml", locale = FXPlusLocale.ENGLISH)
|
||||
public class EnglishController extends FXBaseController {
|
||||
@FXML
|
||||
public void clickToOtherLanguage() {
|
||||
@@ -1050,7 +1050,7 @@ register.email=\u90ae\u7bb1
|
||||
|
||||
#### 示例演示
|
||||
|
||||
示例代码在`cn.edu.scau.biubiusuisui.example.languageDemo`中,运行可得:
|
||||
示例代码在`cn.edu.scau.biubiusuisui.example.langDemo`中,运行可得:
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user