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:
parent
10ab20d8e2
commit
1b2abab6dd
3 changed files with 7 additions and 0 deletions
|
@ -248,4 +248,9 @@ class Tools
|
|||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
public static function getDocLanguage($userlanguage) {
|
||||
$lang = explode('.', $userlanguage);
|
||||
return str_replace('_', '-', $lang[0]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue