Proper-time approach to localization