I made a new script, that reads from XML with xpath, either single or multiple nodes. Then I got the component script that is responsible for translating that has the key variable, on the gameobject I want to translate, and pulled value from xml and just passed it into that component and then refresh the language. Seems a bit dirty work to me though but it works...
Smart Localization has a component script with class LocalizedText, I'm wondering if I can inherit from it and extend it's functionality to accommodate XML. Seems like a cleaner way to do this?
namespace SmartLocalization.Editor {
class LocalizedText
{
}
}
So, maybe I can create a new file LocalizedTest_XML and do something like this
namespace SmartLocalization.Editor {
class LocalizedText_XML : LocalizedText
{
// new functionality here, and it will inherit all the old functionality automatically.
}
}
and then all I have to do is just attach the new script... I'm not sure if this would be okay with the plugin though