diff --git a/adminer/include/lang.inc.php b/adminer/include/lang.inc.php index 6bbe9078..1a12d44c 100644 --- a/adminer/include/lang.inc.php +++ b/adminer/include/lang.inc.php @@ -22,6 +22,19 @@ $langs = array( 'ar' => 'العربية', // Y.M Amine - Algeria - nbr7@live.fr ); +/** Get current language +* @return string +*/ +function get_lang() { + global $LANG; + return $LANG; +} + +/** Translate string +* @param string +* @param int +* @return string +*/ function lang($idf, $number = null) { global $LANG, $translations; $translation = $translations[$idf]; diff --git a/compile.php b/compile.php index 864f72e2..df0cda53 100644 --- a/compile.php +++ b/compile.php @@ -53,7 +53,15 @@ function put_file($match) { return "?>\n$return" . (in_array($tokens[count($tokens) - 1][0], array(T_CLOSE_TAG, T_INLINE_HTML), true) ? "