Case Study: Adding new XML attributes and using them in the SDK

Where does the "%D1" type notation get defined? I can see that it draws the penalty/bonus and and prints it along with the appropriate of + or -, but I can seem to figure out where that is done in python or C++. Another .xml example from CIV4GameTextInfos:

Code:
    <TEXT>
        <Tag>INTERFACE_PANE_UNIT_NAME</Tag>
        <English>[COLOR_UNIT_TEXT]%s1[COLOR_REVERT]</English>
        <French>[COLOR_UNIT_TEXT]%s1[COLOR_REVERT]</French>
        <German>[COLOR_UNIT_TEXT]%s1[COLOR_REVERT]</German>
        <Italian>[COLOR_UNIT_TEXT]%s1[COLOR_REVERT]</Italian>
        <Spanish>[COLOR_UNIT_TEXT]%s1[COLOR_REVERT]</Spanish>
    </TEXT>
    <TEXT>
        <Tag>INTERFACE_PANE_UNIT_NAME_HOT_KEY</Tag>
        <English>[COLOR_UNIT_TEXT]#%d1 - %s2[COLOR_REVERT]</English>
        <French>[COLOR_UNIT_TEXT]#%d1 - %s2[COLOR_REVERT]</French>
        <German>[COLOR_UNIT_TEXT]#%d1 - %s2[COLOR_REVERT]</German>
        <Italian>[COLOR_UNIT_TEXT]#%d1 - %s2[COLOR_REVERT]</Italian>
        <Spanish>[COLOR_UNIT_TEXT]#%d1 - %s2[COLOR_REVERT]</Spanish>
    </TEXT>

I would like to be able to change that + or - to a x or ÷.
 
Top Bottom