1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Function get_lang useful for customization

This commit is contained in:
Jakub Vrana
2010-12-30 13:53:39 +01:00
parent fce2312c55
commit e37c427e87
2 changed files with 22 additions and 1 deletions

View File

@@ -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];