src/Translation/LanguageBucket.php
/**
	 * Stores all definitions in the language for fast lookup. Duplicate definitions are ignored.
	 *
	 * @param Language $language
	 */
Stores all definitions in the language for fast lookup. Duplicate definitions are ignored.
@param Language $language
Stores all definitions in the language for fast lookup . Duplicate definitions are ignored . @param Language $language
protected function storeDefinitions(Language $language) {
		foreach ($language->getNamespaces() as $name => $namespace) {
			foreach ($namespace->getDefinitions() as $key => $definition) {
				if (!isset($this->definitions[$key])) {
					$this->definitions[$key] = $definition;
				}
			}
		}
	}
protected function storeDefinitions ( Language $ language ) { foreach ( $ language -> getNamespaces ( ) as $ name => $ namespace ) { foreach ( $ namespace -> getDefinitions ( ) as $ key => $ definition ) { if ( ! isset ( $ this -> definitions [ $ key ] ) ) { $ this -> definitions [ $ key ] = $ definition ; } } } }
Stores all definitions in the language for fast lookup.
Stores all definitions in the language for fast lookup .