1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

i18n: cut down terms and sync

port 1.5
This commit is contained in:
bbedward
2026-07-15 11:05:07 -04:00
parent b169fe0d77
commit bf408f8d00
9 changed files with 390 additions and 699 deletions
+11 -12
View File
@@ -103,19 +103,18 @@ var authValidateCmd = &cobra.Command{
}
var result sharedpam.LockscreenPamValidation
if path != "" {
if !filepath.IsAbs(path) {
result = sharedpam.LockscreenPamValidation{
Path: path,
MissingModules: []string{},
Warnings: []string{},
Errors: []string{"--path must be an absolute file path"},
}
} else {
result = sharedpam.ValidateLockscreenPamPath(path)
}
} else {
switch {
case service != "":
result = sharedpam.ValidateLockscreenPamService(service)
case !filepath.IsAbs(path):
result = sharedpam.LockscreenPamValidation{
Path: path,
MissingModules: []string{},
Warnings: []string{},
Errors: []string{"--path must be an absolute file path"},
}
default:
result = sharedpam.ValidateLockscreenPamPath(path)
}
if asJSON {