I added this feature in a custom portal. I wanted to merge it back up into the trunk.
Works by specifying a preference to a file resource, such as WEB-INF/somedir/test.html
Then by placing the resources in localized directories:
as well as enabling this non-default behavior in the portlet.xml: