I used to put user-specific settings like LANGUAGE and PAPERSIZE in ~/.pam_environment, but the manual and the warning emitted on login tells me:
Due to problematic security this functionality is deprecated since the 1.5.0 version and will be removed completely at some point in the future.
Unfortunately that warning only tells me I am doing something wrong, not what I should do instead. I am guessing putting everything in ~/.profile has minor differences, but that is what I should be using if/when the deprecated extra file is discontinued in Ubuntu?