protected function matchCode($code)
	{
		$language = $code;
		$country = null;
		$parts = explode('-', $code);
		if (count($parts)===2) {
			$language = $parts[0];
			$country = strtoupper($parts[1]);
		}
		if (in_array($code, $this->languages)) {
			return [$language, $country];
		} elseif (
			$country && in_array("$language-$country", $this->languages) ||
			in_array("$language-*", $this->languages)
		) {
			return [$language, $country];
		} elseif (in_array($language, $this->languages)) {
			return [$language, null];
		} else {
			return [null, null];
		}
	}