1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 14:22:02 +02:00

Allow locale to be selected in footer

This commit is contained in:
Toby Zerner
2015-08-05 09:50:57 +09:30
parent 48df9bb678
commit f49d0e5341
11 changed files with 87 additions and 18 deletions

View File

@@ -20,6 +20,11 @@ class LocaleManager
return $this->locales;
}
public function hasLocale($locale)
{
return isset($this->locales[$locale]);
}
public function addTranslations($locale, $translations)
{
if (! isset($this->translations[$locale])) {