#188 Improved switch directive, added localization support