private function get_strings($file, $directory) {
		$parts = explode('.', strrev($file), 2);
		$filename = strrev($parts[1]);
		$extension = strrev($parts[0]);

		switch ($extension) {
			case 'twig':
				$strings = $this->get_twig_strings($file, $directory);
				break;
			case 'tpl':
				$strings = $this->get_smarty_strings($file, $directory);
				break;
			default: throw new \Exception('Unknown template type');
		}

		return $strings;
	}