I'm Brazilian but when I installed Debian on my machine I set the language to English (US). I prefer to keep my menus and error messages in English because they are more googable (and the translations aren't always the best...). Anyway, this had the unfortunate consequence of making it annoying to write text in Portuguese because in the en_US locale (with a US international with dead keys keyboard layout) typing '+c results in a  instead of the  that I want. Is there a way to make my typing locale be PT_BR while still keeping all my menus in English and the US keyboard layout with dead keys?
Is there a way to use a PT_BR locale in an English installation of Debian?
x11;locale;dead keys
The way to change the dead keys without changing the keyboard layout is to set the LC_CTYPE environment variable to pt_BR.utf8. I did this by adding the following line to my .profile.export LC_CTYPE='pt_BR.utf8'There are also other LC_ variables that you can set if you want. The locale command shows a list of them, this page describes what they do and locale -a says what locales are currently available in the system.That said, in order for this to work, both the en_US.utf8 and pt_BR.utf8 locales need to be installed in the system. To make sure this is the case, runsudo dpkg-reconfigure localesIn the first screen, it will ask what locales you want to generate for the system (so select both en_US.utf8 and pt_BR.utf8) and in the second screen it asks what should be the default system language  (choose English).