diff options
-rw-r--r-- | auto_prepend.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/auto_prepend.php b/auto_prepend.php index d382306..d026017 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -137,6 +137,16 @@ function T_lang() } /** + * Get available languages + * @return available languages as langcode => langname + */ +function T_languages() +{ + it_text::init(); + return $GLOBALS['it_text']->languages; +} + +/** * Check if a text entry for a specific label exists * @param $label Label to check * @return true if text exists in actual (or supplied) language, false otherwise. |