Beautify and update log text to match new localization retrieval function