Skip to content
Snippets Groups Projects
Commit 8ae26f74 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Minor fixes.

parent f295ac59
No related branches found
No related tags found
No related merge requests found
...@@ -13,22 +13,32 @@ namespace SimpleSAML\Locale; ...@@ -13,22 +13,32 @@ namespace SimpleSAML\Locale;
class Translate class Translate
{ {
private $configuration = null; /**
* The configuration to be used for this translator.
*
* @var \SimpleSAML_Configuration
*/
private $configuration;
private $langtext = array(); private $langtext = array();
/** /**
* Associative array of dictionaries. * Associative array of dictionaries.
*/ */
private $dictionaries = array(); private $dictionaries = array();
/** /**
* The default dictionary. * The default dictionary.
*/ */
private $defaultDictionary = null; private $defaultDictionary = null;
/**
* The language object we'll use internally.
*
* @var \SimpleSAML\Locale\Language
*/
private $language;
/** /**
* Constructor * Constructor
...@@ -327,7 +337,6 @@ class Translate ...@@ -327,7 +337,6 @@ class Translate
*/ */
public function includeLanguageFile($file, $otherConfig = null) public function includeLanguageFile($file, $otherConfig = null)
{ {
$filebase = null;
if (!empty($otherConfig)) { if (!empty($otherConfig)) {
$filebase = $otherConfig->getPathValue('dictionarydir', 'dictionaries/'); $filebase = $otherConfig->getPathValue('dictionarydir', 'dictionaries/');
} else { } else {
......
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