translated ButtonHelper.js