1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Add lang attribute in html tag

This commit is contained in:
NumEricR 2013-08-26 22:25:03 +02:00
parent 10ab20d8e2
commit 1b2abab6dd
3 changed files with 7 additions and 0 deletions

View file

@ -248,4 +248,9 @@ class Tools
fclose($fp);
}
}
public static function getDocLanguage($userlanguage) {
$lang = explode('.', $userlanguage);
return str_replace('_', '-', $lang[0]);
}
}