Skip to content

2.2.0

Choose a tag to compare

@oscarotero oscarotero released this 17 Dec 23:17
· 714 commits to master since this release
  • Implemented domains and added new gettext functions: d__, dp__, dnp__ (and the "echo" version: d__e, dp__e, dnp__e)
  • Changed the way to load the gettext functions to fix #33. Instead being loaded automatically by composer, from now you have the static method Gettext\Translator::initGettextFunctions($translatorInstance) to load the functions and register the current translator:
//before:
__currentTranslator($translator);
__e('hello world');

//now:
Gettext\Translator::initGettextFunctions($translator);
__e('hello world');