From f0f543116242adfe2ffb1c09fff4ddee0fbdb3f4 Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Sat, 26 Oct 2024 02:43:15 +0200 Subject: [PATCH] debug value of text domain path --- php/index.php | 2 ++ php/src/LitSettings.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/php/index.php b/php/index.php index fdbadd0..0f919a0 100644 --- a/php/index.php +++ b/php/index.php @@ -41,6 +41,8 @@ echo ''; $litSettings = new LitSettings($_GET, $directAccess); +// debug value of textdomain path +echo ''; /* // debug value of locale that the script was set to after initializing LitSettings echo ''; diff --git a/php/src/LitSettings.php b/php/src/LitSettings.php index a652f26..13eff17 100644 --- a/php/src/LitSettings.php +++ b/php/src/LitSettings.php @@ -20,6 +20,7 @@ class LitSettings public ?string $NationalCalendar = null; public ?string $DiocesanCalendar = null; //public ?string $setLocale = null; + public ?string $expectedTextDomainPath = null; private ?array $MetaData = null; private bool $directAccess = false; @@ -133,7 +134,8 @@ public function __construct(array $DATA, bool $directAccess = false) ]; $this->setLocale = setlocale(LC_ALL, $localeArray); */ - bindtextdomain("litexmplphp", "i18n"); + $this->expectedTextDomainPath = __DIR__ . "/i18n"; + bindtextdomain("litexmplphp", $this->expectedTextDomainPath); //textdomain("litcal"); $this->directAccess = $directAccess;