[interchange-cvs] CVS notice: activity by jon

interchange-cvs@lists.akopia.com interchange-cvs@lists.akopia.com
Sat Jun 9 02:26:03 2001


CVS activity by user 'jon':
interchange/dist/lib/UI/vars UI_STD_HEAD,1.31.4.22,1.31.4.23
Update of /var/cvs/interchange/dist/lib/UI/vars
In directory interchange.redhat.com:/tmp/cvs-serv8590/lib/UI/vars

Modified Files:
      Tag: DEV_4_7_0
	UI_STD_HEAD 
Log Message:
Major overhaul of the way UI images are handled.

Instead of the old @_UI_IMG_@admin/ or @_UI_IMG_@navigation/ now all
images are in a single directory, and ready to be localized (thanks for the
hint, Stefan :). Images will be in a directory like this:

share/interchange/en_US

and so on depending on locale. And UI_STD_HEAD now modifies ImageDir so
that the image rewriting in Interpolate.pm takes care of the location
for us.

However, this can't handle JavaScript rollovers, etc., nor UI image
access from the regular catalog, and $CGI::secure isn't available inside
Safe, so I've added the [image] usertag, for getting the image directory
(and eventually doing other handy things).

This also meant I had to move std.js inline into UI_STD_HEAD, under
Interchange's control, to deal with image locations.

This nice thing is that in the UI, images are just called with <img
src="imgname.gif"> instead of the complicated stuff from before.

It remains to be seen how many other things I messed up along the way. :)