mirror of
https://github.com/moudey/Shell.git
synced 2026-11-17 15:05:41 +08:00
Update the language loading logic in shell.ns
When there is a missing translation item, it will no longer be displayed as blank, but as English
This commit is contained in:
1 parent
893d6a088c
commit
79c7a20dad
1 file changed
+4
-3
+4
-3
@@ -10,9 +10,10 @@
|
||||
|
||||
// localization
|
||||
$loc_path='imports\lang\'
|
||||
import lang if(path.exists(loc_path + sys.lang + ".nss"),
|
||||
loc_path + sys.lang + ".nss",
|
||||
loc_path + "\\en.nss")
|
||||
import lang loc_path + "en.nss"
|
||||
import lang if(path.exists(loc_path + sys.lang + ".nss"),
|
||||
loc_path + sys.lang + ".nss",
|
||||
loc_path + "en.nss")
|
||||
|
||||
// or import lang 'imports/lang/en.nss'
|
||||
|
||||
|
||||
Reference in new issue
Block a user