From a2496481d22bdd7647540d083272e3a359b65bee Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 5 May 2008 14:40:23 +0000 Subject: accessor for available languages --- auto_prepend.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/auto_prepend.php b/auto_prepend.php index d382306..d026017 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -136,6 +136,16 @@ function T_lang() return $GLOBALS['it_text']->get_language(); } +/** + * 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 -- cgit v1.2.3