aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/AdminPanel/Shared/Locales.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AdminPanel/Shared/Locales.pm b/lib/AdminPanel/Shared/Locales.pm
index 4bb14740..2015a487 100644
--- a/lib/AdminPanel/Shared/Locales.pm
+++ b/lib/AdminPanel/Shared/Locales.pm
@@ -120,6 +120,11 @@ has 'domain' => (
sub BUILD {
my $self = shift;
+ if ($^V ge v5.20.0) {
+ require POSIX;
+ POSIX::setlocale (POSIX::LC_ALL (), '');
+ }
+
$self->domain(Locale::gettext->domain_raw($self->domain_name));
$self->domain->dir($self->dir_name) if $self->dir_name;
$self->domain->codeset($self->codeset)