Skip to content

Commit

Permalink
fix(91-english-version): stage
Browse files Browse the repository at this point in the history
stage
  • Loading branch information
snomiao committed Jan 12, 2024
1 parent 8d41af5 commit 36e8243
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions Core/CapsLockX-i18n.ahk
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
global CapsLockX_lang := "en"

; TODO: convert s
t(s){
CapsLockX_Config("lang-en", s, s, )
return s
}
1 change: 1 addition & 0 deletions Core/CapslockX-Core.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ if(T_XKeyAsRAlt)
SetWorkingDir, %A_ScriptDir%\..\

#Include Core\CapsLockX-i18n.ahk
; todo: move this generated file into user folder
#Include Core\CapsLockX-ModulesRunner.ahk
CapsLockX_Loaded()
#Include Core\CapsLockX-ModulesFunctions.ahk
Expand Down
33 changes: 17 additions & 16 deletions Modules/CLX-Settings.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,27 @@ ExitCapsLockX()
; 修改配置
#if CapsLockXMode

; ,:: 配置文件编辑()
,:: CapsLockX_ConfigWindow()
;, :: 配置文件编辑()
, :: CapsLockX_ConfigWindow()

CapsLockX_ConfigWindow(){
CapsLockX_ConfigWindow()
{
Gui, Destroy
; TODO update this to web view
Gui, Add, Text, , 你可以按 "CapsLockX + ," 打开此窗口
Gui, Add, Text, , 当前 CapsLockX_配置目录:%CapsLockX_配置目录%
Gui, Add, Text, , CLX脚本交流群: QQ群 100949388, https://t.me/capslockx
Gui, Add, Text, , 版本: CapsLockX %CapsLockX_VersionName%
Gui, Add, Text, , 作者: 雪星 ( Snowstar Miao <[email protected]> )
Gui, Add, Button, Default w80, 确认
Gui, Add, Button, w80, 打开BUG反馈与建议页面 ; warn : hard to translate as its variable name
Gui, Add, Button, w80, 打开官方文档
Gui, Add, Button, w80, 添加开机自动启动
Gui, Add, Button, w80, 配置文件编辑
Gui, Add, Button, w80, 重新載入
Gui, Add, Text, , % t("你可以按 'CapsLockX +, ' 打开此窗口")
Gui, Add, Text, , % t("当前 CapsLockX_配置目录:%CapsLockX_配置目录%")
Gui, Add, Text, , % t("CLX脚本交流群: QQ群 100949388, https://t.me/capslockx")
Gui, Add, Text, , % t("版本: CapsLockX %CapsLockX_VersionName%")
Gui, Add, Text, , % t("作者: 雪星 ( Snowstar Miao <[email protected]> )")
Gui, Add, Button, Default w80 gButton确认, 确认
Gui, Add, Button, w80 gButton打开BUG反馈与建议页面, % "打开BUG反馈与建议页面" ; warn : hard to translate as its variable name
Gui, Add, Button, w80 gButton打开官方文档, % "打开官方文档"
Gui, Add, Button, w80 gButton添加开机自动启动, % "添加开机自动启动"
Gui, Add, Button, w80 gButton配置文件编辑, % "配置文件编辑"
Gui, Add, Button, w80 gButton重新載入, % "重新載入"

global T_TomatoLife
if (T_TomatoLife) {
if (T_TomatoLife) {
Gui, Add, CheckBox, gCapsLockX_ConfigureUpdate vT_TomatoLife Checked, 启用番茄时钟,每25分钟休息5分钟·。
} else {
Gui, Add, CheckBox, gCapsLockX_ConfigureUpdate vT_TomatoLife, 启用番茄时钟,每25分钟休息5分钟·。
Expand Down Expand Up @@ -97,7 +98,7 @@ Button重新載入:
return
CapsLockX_ConfigureUpdate:
global T_TomatoLife
global T_XKeyAsCapsLock
global T_XKeyAsCapsLock
global T_XKeyAsSpace
global T_AskRunAsAdmin
global CLX_CONFIG_ONSTARTUP
Expand Down

0 comments on commit 36e8243

Please sign in to comment.