Excuse my not good english!
my locales locale -a
Code:
C
C.UTF-8
de_DE.utf8
en_GB.utf8
en_US.utf8
POSIX
pt_PT.utf8
package kde-l10n-pt Installed. language pt for KDE. but not necessarily required
In the system settings - Add keyboard. to change the order
Or Change the keyboard also in the panel on flag
for ã
Keyboard key Alt Gr + ~ then release and keyboard key a
for á
Keyboard key right win button + ' then release and keyboard key a |