Add Portuguese and Brazilian Portuguese localizations.

Also, update language code format to allow region specifiers (like pt-br).

Fixes issue #491.