MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / GetTranslation

Method GetTranslation

loader/App.xaml.cs:68–81  ·  view source on GitHub ↗
(string key)

Source from the content-addressed store, hash-verified

66 }
67
68 public static string GetTranslation(string key)
69 {
70 try
71 {
72 var trans = Current.FindResource(key);
73 if (trans != null && trans is string)
74 return trans as string;
75 }
76 catch
77 {
78 }
79
80 return string.Format("%{0}", key);
81 }
82 }
83}

Callers 1

MainPageClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected