diff options
author | Urban Müller | 2008-05-05 14:40:23 +0000 |
---|---|---|
committer | Urban Müller | 2008-05-05 14:40:23 +0000 |
commit | a2496481d22bdd7647540d083272e3a359b65bee (patch) | |
tree | f793cbcddb3f0097dbc1aeb7aec40d209903b019 /auto_prepend.php | |
parent | 7607aa3f093f9d63cda5e366ddd56c86355cdf6c (diff) | |
download | itools-a2496481d22bdd7647540d083272e3a359b65bee.tar.gz itools-a2496481d22bdd7647540d083272e3a359b65bee.tar.bz2 itools-a2496481d22bdd7647540d083272e3a359b65bee.zip |
accessor for available languages
Diffstat (limited to 'auto_prepend.php')
-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. |