Change the Table Caption from Server Script

I am trying to change the Table Caption from Server Scriptfunction Page_Load()
{
Language()->setPhrase(“tblcaption”, “My New Caption”);
}The above code does not change the Table Caption.

Assume you’re using v2021, and you want to change the caption of “orders” table of demo project become “The Orders”, then simply try this in “Language_Load” server event, or in “languageLoad” function in the generated “src/Language.php” file:

$this->setTablePhrase(“orders”, “tblCaption”, “The Orders”);