Posted by Gábor Hojtsy on
Change record status:
Published (View all published change records)
Introduced in branch:
Introduced in version:
Following onwhere the internals of t() were made swappable, it was logical that we can get rid of st() and get_t() that were to put the burden of environment adaptation to the Drupal code writer. Now t() adapts to the environment and there is no need to invoke different functions in different environments. Just use t() where you used to use st() or $t = get_t() followed by $t().
If you want to specifically use t() backends or ensure your code has an injectable t() implementation, seewhere work is ongoing to figure out best practices for that.