Fix a hang in the translated text printing code.
Fix a hang in the translated text printing code.

This would occur if $ is followed by something unexpected, e.g. control codes.

DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon