Localization ready for Thimble

This is a modification of FriendlyCode which will allow us to make Thimble localizable.