From 96cb9196ef324449842bd59ab8a1c5852ce565b2 Mon Sep 17 00:00:00 2001
From: Mathieu Lutfy <mathieu@bidon.ca>
Date: Thu, 1 Nov 2018 16:12:11 -0400
Subject: [PATCH] CRM_Core_I18n::setLocale should also change the tsLocale
 global variable

---
 CRM/Core/I18n.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CRM/Core/I18n.php b/CRM/Core/I18n.php
index 40107e9824..6dfbe23b56 100644
--- a/CRM/Core/I18n.php
+++ b/CRM/Core/I18n.php
@@ -649,6 +649,9 @@ class CRM_Core_I18n {
     global $dbLocale;
     $dbLocale = "_{$locale}";
 
+    // For self::getLocale()
+    global $tsLocale;
+    $tsLocale = $locale;
   }
 
   /**
-- 
2.25.1