__d()
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 ) CC// Say that you have multiple domains, for example www.domain.dk and www.domain.de, you can configure what word is being printed out, depending on what domain you are on CC <?= __d('admin_theme', 'Bestil Ophold') ?> __d('admin_theme', 'Question {0}', $questionIndex) CC// You have to use interpolation, if you want to use variables. the variables themselves, will not be translated.CC CC// In the terminal, you can extract all the domain __d()-strings into a pot file CC >bin/cake i18n extract