summaryrefslogtreecommitdiffstats
path: root/inc/dictionary.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2025-07-14 16:50:29 +0200
committerSimon Rettberg2025-07-14 16:50:29 +0200
commit83c4bb160cea6e7fbadbe4c0876b754f0acf24c5 (patch)
tree96b8955da109cd15998e3a84699abb11627cb2c3 /inc/dictionary.inc.php
parent[locationinfo] Remove debug spam (diff)
downloadslx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.tar.gz
slx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.tar.xz
slx-admin-83c4bb160cea6e7fbadbe4c0876b754f0acf24c5.zip
[locationinfo] Add UPCOMING panel type
Diffstat (limited to 'inc/dictionary.inc.php')
-rw-r--r--inc/dictionary.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php
index 3a2f9c2b..f95cb384 100644
--- a/inc/dictionary.inc.php
+++ b/inc/dictionary.inc.php
@@ -283,6 +283,16 @@ class Dictionary
return $img;
}
+ /**
+ * Check if the provided language code is supported.
+ * @param string $lang Language code to check
+ * @return bool True if the language code exists in the predefined language array, false otherwise
+ */
+ public static function hasLanguage(string $lang): bool
+ {
+ return in_array($lang, self::$languages);
+ }
+
}
Dictionary::init();