[Y-devel] comment: XML interface description
Rupert Mazzucco maz at ap.univie.ac.at
Wed Feb 25 18:23:11 GMT 2004
While I understand that the XML fragment on p. 51 serves
only as illustration, I want to point out a flaw with the
design of this piece:
In the light of possible internationalisation, text should
probably never be hardcoded into the widget description, but
always via a message catalog that can then be changed according
to the desired language. (Same goes for attached sound bits.)
Maybe like
<y:interface>
<y:gobjects>
...
<y:label id="2" message="1" />
...
</y:gobjects>
<y:message_catalog lang="C">
<y:message id="1" text="Testing" />
...
</y:message_catalog>
</y:interface>
or something like that. If the appliation is notified of a
locale change, it could send another message catalog, and the
server would then change everything accordingly.
Regards,
Rupert
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved