pt-br translations, replacement of a few deprecated functions and preventing undefined index notices