File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Plugins/Flow.Launcher.Plugin.WindowsSettings/Helper Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,30 @@ internal static IEnumerable<WindowsSetting> TranslateAllSettings(in IEnumerable<
29
29
var name = Resources . ResourceManager . GetString ( settings . Name ) ;
30
30
var type = Resources . ResourceManager . GetString ( settings . Type ) ;
31
31
32
+ if ( string . IsNullOrEmpty ( area ) )
33
+ {
34
+ Log . Warn ( $ "Resource string for [Area{ settings . Area } ] not found", typeof ( Main ) ) ;
35
+ }
36
+
37
+ if ( string . IsNullOrEmpty ( name ) )
38
+ {
39
+ Log . Warn ( $ "Resource string for [{ settings . Name } ] not found", typeof ( Main ) ) ;
40
+ }
41
+
42
+ if ( string . IsNullOrEmpty ( type ) )
43
+ {
44
+ Log . Warn ( $ "Resource string for [{ settings . Name } ] not found", typeof ( Main ) ) ;
45
+ }
46
+
47
+
32
48
33
49
if ( ! string . IsNullOrEmpty ( settings . Note ) )
34
50
{
35
51
var note = Resources . ResourceManager . GetString ( settings . Note ) ;
52
+ if ( string . IsNullOrEmpty ( note ) )
53
+ {
54
+ Log . Warn ( $ "Resource string for [{ settings . Note } ] not found", typeof ( Main ) ) ;
55
+ }
36
56
37
57
settings . Note = note ?? settings . Note ?? string . Empty ;
38
58
}
@@ -48,6 +68,11 @@ internal static IEnumerable<WindowsSetting> TranslateAllSettings(in IEnumerable<
48
68
}
49
69
50
70
var translatedAltName = Resources . ResourceManager . GetString ( altName ) ;
71
+ if ( string . IsNullOrEmpty ( translatedAltName ) )
72
+ {
73
+ Log . Warn ( $ "Resource string for [{ altName } ] not found", typeof ( Main ) ) ;
74
+ }
75
+
51
76
translatedAltNames . Add ( translatedAltName ?? altName ) ;
52
77
}
53
78
You can’t perform that action at this time.
0 commit comments