Dialog extra button text problem, buttontext stored in a variable

Dialog extra button text problem, buttontext stored in a variable

  1. $('#div_msg').dialog({
  2.   modal: true,
  3.   buttons: {
  4.     "Ok": function() {
  5.       $(this).dialog("close");
  6.     },
  7.     sExtraButtonTekst: function() {
  8.       document.location = sExtraButtonLink;
  9.     }
  10.   }
  11. });

I get an extra button this way but the text in it is sExtraButtonTekst while it should be text in that variable, for example: Modify properties
Any idea how to solve this?