1.修复IDEA中无法加载resources文件夹的Bug;2.修改多语言Demo
This commit is contained in:
@@ -936,7 +936,7 @@ When an FXController needs to be internationalized and localized, you need to ad
|
||||
|
||||
```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() {
|
||||
@@ -952,7 +952,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() {
|
||||
@@ -1024,7 +1024,7 @@ register.email=\u90ae\u7bb1
|
||||
|
||||
#### Example
|
||||
|
||||
The sample code is in `cn.edu.scau.biubiusuisui.example.languageDemo`, the running result as follows:
|
||||
The sample code is in `cn.edu.scau.biubiusuisui.example.langDemo`, the running result as follows:
|
||||
|
||||

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