Mercurial > projects > dwt-mac
diff dwt/dwthelper/ResourceBundle.d @ 134:623ff6db5f1d
Updated to Tango 0.99.8
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 24 May 2009 22:21:00 +0200 |
parents | 38807a925e24 |
children | 476f8d5c0b07 |
line wrap: on
line diff
--- a/dwt/dwthelper/ResourceBundle.d Tue Mar 24 20:55:08 2009 +0100 +++ b/dwt/dwthelper/ResourceBundle.d Sun May 24 22:21:00 2009 +0200 @@ -8,7 +8,7 @@ import dwt.DWT; import dwt.dwthelper.utils; -import tango.io.File; +import tango.io.device.File; import tango.text.locale.Core; import tango.util.log.Trace; @@ -170,8 +170,7 @@ } public static ResourceBundle getBundle( String name ){ try{ - scope f = new File(name); - return new ResourceBundle( cast(String) f.read() ); + return new ResourceBundle( cast(String) File.get(name) ); } catch( IOException e){ e.msg ~= " file:" ~ name;