ruff_hi
Live 4ever! Or die trying
I'm stuck. I have this code ...
... which is trying to read data from an XML file.
... but all I get on screen is the 'TXT_KEY_BUGOPTIONS_ALERT_REMINDERS_TEXT' text. I guess I am doing something wrong but I cannot see it. The XML log reports that the file loads ok. HELP!
Code:
from BugOptions import OptionsFacade, Option, OptionList
from CvPythonExtensions import *
localText = CyTranslator()
class BugAlertsOptions(OptionsFacade):
def __init__(self):
OptionsFacade.__init__(self)
zs_Text = localText.getText("TXT_KEY_BUGOPTIONS_ALERT_REMINDERS_TEXT", ())
zsHover = localText.getText("TXT_KEY_BUGOPTIONS_ALERT_REMINDERS_HOVER", ())
... which is trying to read data from an XML file.
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
Copyright (c) 2007, BUG Mod.
This file is part of Civilization IV BUG Mod.
-->
<Civ4GameText xmlns="http://www.firaxis.com">
<!-- BUG Option Screen Text -->
<TEXT>
<Tag>TXT_KEY_BUGOPTIONS_ALERT_REMINDERS_TEXT</Tag>
<English>Enable Reminders (Alt-M)</English>
<French>Enable Reminders (Alt-M)</French>
<German>Enable Reminders (Alt-M)</German>
<Italian>Enable Reminders (Alt-M)</Italian>
<Spanish>Enable Reminders (Alt-M)</Spanish>
</TEXT>
...
</TEXT>
</Civ4GameText>
... but all I get on screen is the 'TXT_KEY_BUGOPTIONS_ALERT_REMINDERS_TEXT' text. I guess I am doing something wrong but I cannot see it. The XML log reports that the file loads ok. HELP!