summaryrefslogtreecommitdiff
path: root/auto_prepend.php
diff options
context:
space:
mode:
authorUrban Müller2008-05-05 14:40:23 +0000
committerUrban Müller2008-05-05 14:40:23 +0000
commita2496481d22bdd7647540d083272e3a359b65bee (patch)
treef793cbcddb3f0097dbc1aeb7aec40d209903b019 /auto_prepend.php
parent7607aa3f093f9d63cda5e366ddd56c86355cdf6c (diff)
downloaditools-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.php10
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.