Skip to content

Commit

Permalink
set codeset to utf8 for gettext. fix issue on freebsd.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Nov 22, 2021
1 parent 4e75996 commit 625803f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ private function initi18n(): void
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain($domain, dirname(__DIR__, 2) . '/src/langs');
bind_textdomain_codeset($domain, 'UTF-8');
textdomain($domain);
}
}
1 change: 1 addition & 0 deletions src/models/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ private function alertOwner(): int
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain($domain, dirname(__DIR__, 2) . '/src/langs');
bind_textdomain_codeset($domain, 'UTF-8');
textdomain($domain);
// END i18n

Expand Down

0 comments on commit 625803f

Please sign in to comment.