Skip to content

Commit

Permalink
debug value of text domain path
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 26, 2024
1 parent 42b97b9 commit f0f5431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
echo '<!-- current environment locale: ' . setlocale(LC_ALL, 0) . ' -->';

$litSettings = new LitSettings($_GET, $directAccess);
// debug value of textdomain path
echo '<!-- textdomain path: ' . $litSettings->expectedTextDomainPath . ' -->';
/*
// debug value of locale that the script was set to after initializing LitSettings
echo '<!-- setLocale: ' . $litSettings->setLocale . ' -->';
Expand Down
4 changes: 3 additions & 1 deletion php/src/LitSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit f0f5431

Please sign in to comment.