Ok,
I am going to be adding a cache to the I18nManager. The look up of
images is much more expensive with localization since an entire Locale
set needs to be search not just one directory path. For example, if the
Locale set is ['fr_CA', 'fr'] the I18nManager would first look in in the
directory resource/images/fr_CA, then resources/images/fr, and finally
try to return the default in resources/images.
-Brian
Brian Kirsch - Email Framework Engineer
Open Source Applications Foundation
543 Howard St. 5th Floor
San Francisco, CA 94105
(415) 946-3056
http://www.osafoundation.org
John Anderson wrote:
These are probably situations where we look for an icon, and if it
exists we use it, otherwise we use an alternative icon. So this is the
correct behavior.
John
Brian Kirsch wrote:
Hello,
In migrating the CPIA GetImage code in Application.py, I noticed a
lot of calls to find image resources which do not exist.
On Chandler load, here is the list of images that CPIA requests but
are not found on the filesystem. Mousing Events such as rolling over
a collection in the sidebar generate even more attempts to load
images that do not exist.
Any thoughts?
no image: SidebarSharingIconTrash.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconOut.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconIn.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconAllCalendarEventMixin.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconTrash.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconOut.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconIn.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconAllCalendarEventMixin.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconTrash.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconOut.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconIn.png
no image: SidebarSharingIcon.png
no image: SidebarSharingIconAllCalendarEventMixin.png
no image: SidebarSharingIcon.png
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev