Skip to content
Snippets Groups Projects
Commit 3ea78451 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Small reformat in SimpleSAML\Locale\Localization.

parent ac6b26be
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,8 @@ class Localization ...@@ -96,7 +96,8 @@ class Localization
* @param string $domain Name of localization domain * @param string $domain Name of localization domain
* @throws Exception If the path does not exist even for the default, fallback language * @throws Exception If the path does not exist even for the default, fallback language
*/ */
public function getLangPath($domain = self::DEFAULT_DOMAIN) { public function getLangPath($domain = self::DEFAULT_DOMAIN)
{
$langcode = explode('_', $this->langcode); $langcode = explode('_', $this->langcode);
$langcode = $langcode[0]; $langcode = $langcode[0];
$localeDir = $this->localeDomainMap[$domain]; $localeDir = $this->localeDomainMap[$domain];
...@@ -199,6 +200,7 @@ class Localization ...@@ -199,6 +200,7 @@ class Localization
$this->currentDomain = $domain; $this->currentDomain = $domain;
} }
/** /**
* Get current translation domain * Get current translation domain
*/ */
...@@ -207,6 +209,7 @@ class Localization ...@@ -207,6 +209,7 @@ class Localization
return $this->currentDomain ? $this->currentDomain : self::DEFAULT_DOMAIN; return $this->currentDomain ? $this->currentDomain : self::DEFAULT_DOMAIN;
} }
/** /**
* Go back to default translation domain * Go back to default translation domain
*/ */
......
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