src/Translation/LanguageBucket.php
/**
	 * Stores all namespaces in the language for fast lookup.
	 *
	 * @param Language $language
	 */
Stores all namespaces in the language for fast lookup.
@param Language $language
Stores all namespaces in the language for fast lookup . @param Language $language
protected function storeNamespaces(Language $language) {
		foreach ($language->getNamespaces() as $name => $namespace) {
			if (isset($this->namespaces[$name])) {
				$this->namespaces[$name]->mergeWith($namespace);
			}
			else {
				$this->namespaces[$name] = $namespace;
			}
		}
	}
protected function storeNamespaces ( Language $ language ) { foreach ( $ language -> getNamespaces ( ) as $ name => $ namespace ) { if ( isset ( $ this -> namespaces [ $ name ] ) ) { $ this -> namespaces [ $ name ] -> mergeWith ( $ namespace ) ; } else { $ this -> namespaces [ $ name ] = $ namespace ; } } }
Stores all namespaces in the language for fast lookup.
Stores all namespaces in the language for fast lookup .