Use try/except when translating, and other minor changes