]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Tools.class.php
Add lang attribute in html tag
[github/wallabag/wallabag.git] / inc / poche / Tools.class.php
index 3a792d43acbaf85bdcb45c737953c17e5eab34eb..1ab90be18b66ea088bc046d34e9062ce6eb2b006 100644 (file)
@@ -248,4 +248,9 @@ class Tools
             fclose($fp);
         }
     }
+
+    public static function getDocLanguage($userlanguage) {
+        $lang = explode('.', $userlanguage);
+        return str_replace('_', '-', $lang[0]);
+    }
 }
\ No newline at end of file