1[
WorkbenchPluginAttribute(
"Check localisation in UI",
"Find non localised text in UI",
"ctrl+l",
"", {
"ResourceManager"})]
11 int idx =
src.VarIndex(
"text");
17 m_results.Insert(
"Text = \"" +
text +
"\" in Widget: " +
src.GetName());
20 FindTexts(
src.GetChildren());
21 FindTexts(
src.GetSibling());
43 if (m_results.Count())
46 foreach (
string file: m_results)
53 res =
"All texts are localised.";
void CheckTextIDs(string file)
void FindTexts(WidgetSource src)
proto native external bool SetOpenedResource(string filename)
proto native external BaseContainer GetContainer(int index=0)
static proto native void Dialog(string caption, string text)
static proto native WBModuleDef GetModule(string type)
static proto bool SearchResources(string filter, func callback)