add brazilian portoguese

This adds a brazilian portuguese translation to adhocracy (thanks to Fabiano Rocha).

The first commit fixes a bug with  a function that previously had problems with territories in locales (like `pt_BR`).