Skip to content

Commit 29e6920

Browse files
committed
support Chinese
1 parent 846c04c commit 29e6920

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

src/main/kotlin/com/github/oldmegit/goframehelper/ui/AppSettingsComponent.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.oldmegit.goframehelper.ui
22

3+
import com.github.oldmegit.goframehelper.data.Bundle
34
import com.intellij.ui.components.JBCheckBox
45
import com.intellij.ui.components.JBLabel
56
import com.intellij.ui.components.JBTextField
@@ -10,13 +11,13 @@ class AppSettingsComponent {
1011
val panel: JPanel
1112
private val apiDir = JBTextField()
1213
private val logicDir = JBTextField()
13-
private val enableApiWatch = JBCheckBox("Enable Api watch, it will auto exec `gf gen ctrl`")
14-
private val enableLogicWatch = JBCheckBox("Enable Service watch, it will auto exec `gf gen service`")
14+
private val enableApiWatch = JBCheckBox(Bundle.getMessage("setting.api.watch"))
15+
private val enableLogicWatch = JBCheckBox(Bundle.getMessage("setting.service.watch"))
1516

1617
init {
1718
panel = FormBuilder.createFormBuilder()
18-
.addLabeledComponent(JBLabel("Api src folder: "), apiDir, 1, false)
19-
.addLabeledComponent(JBLabel("Logic src folder: "), logicDir, 1, false)
19+
.addLabeledComponent(JBLabel(Bundle.getMessage("setting.api.src")), apiDir, 1, false)
20+
.addLabeledComponent(JBLabel(Bundle.getMessage("setting.logic.src")), logicDir, 1, false)
2021
.addComponent(enableApiWatch)
2122
.addComponent(enableLogicWatch)
2223
.addComponentFillVertically(JPanel(), 0)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
name=GoFrame Helper
22
init=Init GoFrame Helper
3+
4+
# setting window
5+
setting.api.src=Api src folder:
6+
setting.logic.src=Logic src folder:
7+
setting.api.watch=Enable Api watch, it will auto exec `gf gen ctrl`
8+
setting.service.watch=Enable Service watch, it will auto exec `gf gen service`
9+
310
gfExecErrNotify=Please check if gf-cli is available.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=GoFrame Helper
2+
init=\u521d\u59cb\u5316 GoFrame Helper
3+
4+
# setting window
5+
setting.api.src=Api \u76ee\u5f55:
6+
setting.logic.src=Logic \u76ee\u5f55:
7+
setting.api.watch=\u542f\u7528 Api watch, \u5b83\u4f1a\u81ea\u52a8\u6267\u884c `gf gen ctrl`
8+
setting.service.watch=\u542f\u7528 Service watch, \u5b83\u4f1a\u81ea\u52a8\u6267\u884c `gf gen service`
9+
10+
gfExecErrNotify=\u8bf7\u68c0\u67e5 gf-cli \u5de5\u5177\u662f\u5426\u53ef\u7528

0 commit comments

Comments
 (0)