I think it would be clearer to use just one line for these two.

$menu = new WT_Menu(WT_I18N::translate('Set link'));