mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
Multi-language support
This commit is contained in:
@@ -107,7 +107,7 @@ foreach (glob($plugins,GLOB_NOSORT) as $plugin_link) {
|
||||
//category
|
||||
$category = plugin('category',$plugin_file) ?: (strpos($version,'-')!==false ? 'next' : 'stable');
|
||||
//status
|
||||
$status = 'unknown';
|
||||
$status = _('unknown');
|
||||
$changes_file = $plugin_file;
|
||||
$url = plugin('pluginURL',$plugin_file);
|
||||
if ($url !== false) {
|
||||
@@ -124,7 +124,7 @@ foreach (glob($plugins,GLOB_NOSORT) as $plugin_link) {
|
||||
if (!$os) $updates++;
|
||||
} else {
|
||||
//status is considered outdated when older than 1 day
|
||||
$status = filectime($filename) > (time()-86400) ? 'up-to-date' : 'need check';
|
||||
$status = filectime($filename) > (time()-86400) ? _('up-to-date') : _('need check');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user