repaired localization logic for buttons which only have an image, but no label