Changed language file loading to Android resource format
This commit is contained in:
1 parent
662d953dce
commit
8ea3b63499
2 files changed
+33
-6
No files matched your search
@@ -232,6 +232,33 @@ namespace Vocaluxe.Menu
|
||||
return values;
|
||||
}
|
||||
|
||||
public static List<string> GetAttributesFromXML(string Cast, XPathNavigator Navigator, string attribute)
|
||||
{
|
||||
List<string> values = new List<string>();
|
||||
|
||||
try
|
||||
{
|
||||
Navigator.MoveToRoot();
|
||||
Navigator.MoveToFirstChild();
|
||||
|
||||
while (Navigator.Name != Cast)
|
||||
Navigator.MoveToNext();
|
||||
|
||||
Navigator.MoveToFirstChild();
|
||||
|
||||
values.Add(Navigator.LocalName);
|
||||
while (Navigator.MoveToNext())
|
||||
values.Add(Navigator.GetAttribute(attribute, ""));
|
||||
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return values;
|
||||
}
|
||||
|
||||
public static bool GetInnerValuesFromXML(string Cast, XPathNavigator Navigator, ref List<string> Values)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user