From 80c1a46374ba9037d512c17b1b4b0979ecd9534f Mon Sep 17 00:00:00 2001
From: Hanne Moa <hanne.moa@uninett.no>
Date: Mon, 27 Jun 2016 11:41:30 +0200
Subject: [PATCH] Simplify testing

---
 lib/SimpleSAML/Locale/Localization.php | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/SimpleSAML/Locale/Localization.php b/lib/SimpleSAML/Locale/Localization.php
index 2fb02dc84..d0d706632 100644
--- a/lib/SimpleSAML/Locale/Localization.php
+++ b/lib/SimpleSAML/Locale/Localization.php
@@ -58,6 +58,16 @@ class Localization
         $this->setupL10N();
     }
 
+
+    /**
+     * Dump the default locale directory
+     */
+    public function getLocaleDir()
+    {
+        return $this->localeDir;
+    }
+
+
     /*
      * Add a new translation domain
      * (We're assuming that each domain only exists in one place)
@@ -116,6 +126,14 @@ class Localization
         $this->activateDomain(self::DEFAULT_DOMAIN);
     }
 
+    /**
+     * Show which domains are registered
+     */
+    public function getRegisteredDomains()
+    {
+        return $this->localeDomainMap;
+    }
+
 
     /**
      * Set which translation domain to use
-- 
GitLab