Browse Source

Moved locate.html to info tab

AY 4 years ago
parent
commit
cdc2320d26
3 changed files with 15 additions and 21 deletions
  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
 package main
 
 
-import (
-
-)
-
 /*
 /*
 	Device Handler
 	Device Handler
-	
+
 	This script mainly handle the external devices like client devices reflect information
 	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.
 	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
 	//Register Device related settings. Compatible to ArOZ Online Beta
 	registerSetting(settingModule{
 	registerSetting(settingModule{
 		Name:     "Client Device",
 		Name:     "Client Device",
@@ -37,5 +33,17 @@ func DeviceServiceInit(){
 		StartDir: "SystemAO/info/display.html",
 		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,
 			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