public function translate($key, $defaultValue = '', $locale = null) {
		if ($locale === null) {
			$locale = $this->getlocale();
		}

		if (isset($this->translations[$locale][$key])) {
			return $this->translations[$locale][$key];
		}

		return $defaultValue;
	}