modify shell plugin how to read locale