Fixed several localization bugs caused by translations.