__d()
Thanks to:
No one :(
Description
Creates a string, which can be configured to something else, depending on what domain you are on. If the string you want to translate is 0, it will return nothing because PHP will interpret it as falsy
Usage: __d( string $domain , string $msg , mixed $args = null )
<?= __d('admin_theme', 'Bestil Ophold') ?> // You have to use interpolation, if you want to use variables. the variables themselves, will not be translated
__d('admin_theme', 'Question {0}', $questionIndex) // In the terminal, you can extract all the domain __d()-strings into a pot file
>bin/cake i18n extract