*

MB Themes

Gettext 5.x experience
« on: May 18, 2022, 11:50:59 AM »
Hey guys,
Is there anyone with gettext v5.x experience?
Osclass is currently using 4.x version and upgrade to 5.x version is planned, maybe someone was already experiencing with replacing these functions
 in v5 :)

Code: [Select]
  $gt = Translation::newInstance()->_get();
  $string = $gt->dngettext($domain, $single_key, $plural_key, $count);
  $string = $gt->dgettext($domain, $key);

  $this->translator = new Translator();

  $translations = Gettext\Translations::fromMoFile($file);
  $translations->addFromMoFile($file);
  $translations->setDomain($domain);
  $this->translator->loadTranslations($translations);

... and similar, I think there is completely new set of functions in v5
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots