Add Brazilian Portuguese and Spanish translations

Fix also i18n generation script; you must use bin/rebuild_i18n.sh from now on.