[notes]

WordPress localisation: the difference between x() and translator comments

There are two ways in WordPress to provide context for translatable text (”strings”): the _x() function (along with its related functions), and the /*translators:*/ comment. Their use is described in the Plugin Handbook, but here’s a quick definition of their key differences.