Skip to content
Snippets Groups Projects
Commit 80c1a463 authored by Hanne Moa's avatar Hanne Moa
Browse files

Simplify testing

parent 06720de0
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,16 @@ class Localization ...@@ -58,6 +58,16 @@ class Localization
$this->setupL10N(); $this->setupL10N();
} }
/**
* Dump the default locale directory
*/
public function getLocaleDir()
{
return $this->localeDir;
}
/* /*
* Add a new translation domain * Add a new translation domain
* (We're assuming that each domain only exists in one place) * (We're assuming that each domain only exists in one place)
...@@ -116,6 +126,14 @@ class Localization ...@@ -116,6 +126,14 @@ class Localization
$this->activateDomain(self::DEFAULT_DOMAIN); $this->activateDomain(self::DEFAULT_DOMAIN);
} }
/**
* Show which domains are registered
*/
public function getRegisteredDomains()
{
return $this->localeDomainMap;
}
/** /**
* Set which translation domain to use * Set which translation domain to use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment