Get languages file automatically

This commit is contained in:
Saied 2023-04-06 16:27:31 +03:00 committed by GitHub
parent 6a6eb8abec
commit aa05c28a1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2525,7 +2525,7 @@ function fm_is_exclude_items($file) {
*/ */
function fm_get_translations($tr) { function fm_get_translations($tr) {
try { try {
$content = @file_get_contents('translation.json'); $content = @file_get_contents('https://raw.githubusercontent.com/prasathmani/tinyfilemanager/master/translation.json');
if($content !== FALSE) { if($content !== FALSE) {
$lng = json_decode($content, TRUE); $lng = json_decode($content, TRUE);
global $lang_list; global $lang_list;