瀏覽代碼

Moved locate.html to info tab

AY 4 年之前
父節點
當前提交
cdc2320d26
共有 3 個文件被更改,包括 15 次插入21 次删除
  1. 15 7
      devices.go
  2. 0 14
      setting.advance.go
  3. 0 0
      web/SystemAO/info/locale.html

+ 15 - 7
devices.go

@@ -1,17 +1,13 @@
 package main
 
-import (
-
-)
-
 /*
 	Device Handler
-	
+
 	This script mainly handle the external devices like client devices reflect information
 	or IoT devices. If you want to handle storage devices mounting, use system.storage.go instead.
 */
 
-func DeviceServiceInit(){
+func DeviceServiceInit() {
 	//Register Device related settings. Compatible to ArOZ Online Beta
 	registerSetting(settingModule{
 		Name:     "Client Device",
@@ -37,5 +33,17 @@ func DeviceServiceInit(){
 		StartDir: "SystemAO/info/display.html",
 	})
 
+	/*
+		Locale / Display Language
 
-}
+		This method allows users to change their own language
+	*/
+	registerSetting(settingModule{
+		Name:         "Language",
+		Desc:         "Set the display language of the system",
+		IconPath:     "SystemAO/info/img/small_icon.png",
+		Group:        "Device",
+		StartDir:     "SystemAO/info/locale.html",
+		RequireAdmin: false,
+	})
+}

+ 0 - 14
setting.advance.go

@@ -64,18 +64,4 @@ func AdvanceSettingInit() {
 			RequireAdmin: true,
 		})
 	}
-
-	/*
-		Locale / Display Language
-
-		This method allows users to change their own language
-	*/
-	registerSetting(settingModule{
-		Name:         "Language",
-		Desc:         "Set the display language of the system",
-		IconPath:     "SystemAO/advance/img/small_icon.png",
-		Group:        "Advance",
-		StartDir:     "SystemAO/advance/locale.html",
-		RequireAdmin: false,
-	})
 }

+ 0 - 0
web/SystemAO/advance/locale.html → web/SystemAO/info/locale.html