* new preference to disable "Your home directory" or "Users and groups" in sidebox menu

plus missing translations
This commit is contained in:
Ralf Becker 2010-11-30 14:34:01 +00:00
parent b33ace9bba
commit 8327175c81
4 changed files with 47 additions and 17 deletions

View File

@ -35,10 +35,15 @@ class filemanager_hooks
if ($location == 'sidebox_menu') if ($location == 'sidebox_menu')
{ {
$title = $GLOBALS['egw_info']['apps'][self::$appname]['title'] . ' '. lang('Menu'); $title = $GLOBALS['egw_info']['apps'][self::$appname]['title'] . ' '. lang('Menu');
$file = array( $file = array();
'Your home directory' => $GLOBALS['egw']->link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$homepath)), if ($file_prefs['showhome'] != 'no')
'Users and groups' => $GLOBALS['egw']->link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$basepath)), {
); $file['Your home directory'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$homepath));
}
if ($file_prefs['showusers'] != 'no')
{
$file['Users and groups'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$basepath));
}
if (!empty($file_prefs['showbase']) && $file_prefs['showbase']=='yes') if (!empty($file_prefs['showbase']) && $file_prefs['showbase']=='yes')
{ {
$file['Basedirectory'] = $GLOBALS['egw']->link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$rootpath)); $file['Basedirectory'] = $GLOBALS['egw']->link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$rootpath));
@ -131,16 +136,6 @@ class filemanager_hooks
); );
$settings = array( $settings = array(
'showbase' => array(
'type' => 'select',
'name' => 'showbase',
'values' => $yes_no,
'label' => 'Show link to filemanagers basedirectory (/) in side box menu?',
'help' => 'Default behavior is NO. The link will not be shown, but you are still able to navigate to this location, or configure this paricular location as startfolder or folderlink.',
'xmlrpc' => True,
'admin' => False,
'default' => 'no',
),
'startfolder' => array( 'startfolder' => array(
'type' => 'input', 'type' => 'input',
'name' => 'startfolder', 'name' => 'startfolder',
@ -164,6 +159,37 @@ class filemanager_hooks
'admin' => False 'admin' => False
); );
} }
$settings += array(
'showbase' => array(
'type' => 'select',
'name' => 'showbase',
'values' => $yes_no,
'label' => 'Show link to filemanagers basedirectory (/) in side box menu?',
'help' => 'Default behavior is NO. The link will not be shown, but you are still able to navigate to this location, or configure this paricular location as startfolder or folderlink.',
'xmlrpc' => True,
'admin' => False,
'default' => 'no',
),
'showhome' => array(
'type' => 'select',
'name' => 'showhome',
'values' => $yes_no,
'label' => lang('Show link "%1" in side box menu?',lang('Your home directory')),
'xmlrpc' => True,
'admin' => False,
'forced' => 'yes',
),
'showusers' => array(
'type' => 'select',
'name' => 'showusers',
'values' => $yes_no,
'label' => lang('Show link "%1" in side box menu?',lang('Users and groups')),
'xmlrpc' => True,
'admin' => False,
'forced' => 'yes',
),
);
return $settings; return $settings;
} }
} }

View File

@ -144,11 +144,11 @@ class filemanager_select
{ {
if ($copy_result === false) if ($copy_result === false)
{ {
$content['msg'] = lang("Error while processing your upload request."); $content['msg'] = lang('Error uploading file!');
} }
else else
{ {
$content['msg'] = lang("The name field may not be empty."); $content['msg'] = lang('Filename must not be empty!');
} }
$content['name'] = ''; $content['name'] = '';

View File

@ -90,6 +90,7 @@ file or directory not found! filemanager de Datei oder Verzeichnis nicht gefunde
file successful uploaded. filemanager de Datei erfolgreich hochgeladen. file successful uploaded. filemanager de Datei erfolgreich hochgeladen.
filemanager common de Dateimanager filemanager common de Dateimanager
filemanager configuration admin de Dateimanager Konfiguration filemanager configuration admin de Dateimanager Konfiguration
filename must not be empty! filemanager de Dateinamen darf nicht leer sein!
files from subdirectories filemanager de Dateien aus Unterverzeichnissen files from subdirectories filemanager de Dateien aus Unterverzeichnissen
files in this directory filemanager de Dateien in diesem Verzeichnis files in this directory filemanager de Dateien in diesem Verzeichnis
folder up filemanager de darüberliegendes Verzeichnis folder up filemanager de darüberliegendes Verzeichnis
@ -154,7 +155,8 @@ select action... filemanager de Befehl auswählen...
select file to upload in current directory filemanager de Datei zum hochladen in das aktuelle Verzeichnis auswählen select file to upload in current directory filemanager de Datei zum hochladen in das aktuelle Verzeichnis auswählen
show filemanager de Zeige show filemanager de Zeige
show hidden files filemanager de Zeige versteckte Dateien show hidden files filemanager de Zeige versteckte Dateien
show link to filemanagers basedirectory (/) in side box menu? filemanager de Zeige die Verknüpfung zum Basisverzeichnis (/) des Dateimanagers im Seitenmenu? show link "%1" in side box menu? filemanager de Zeige die Verknüpfung "%1" im Seitenmenü?
show link to filemanagers basedirectory (/) in side box menu? filemanager de Zeige die Verknüpfung zum Basisverzeichnis (/) des Dateimanagers im Seitenmenü?
size filemanager de Größe size filemanager de Größe
start search filemanager de Suche starten start search filemanager de Suche starten
startfolder filemanager de Anfangsordner startfolder filemanager de Anfangsordner

View File

@ -90,6 +90,7 @@ file or directory not found! filemanager en File or directory not found!
file successful uploaded. filemanager en File successful uploaded. file successful uploaded. filemanager en File successful uploaded.
filemanager common en Filemanager filemanager common en Filemanager
filemanager configuration admin en filemanager configuration filemanager configuration admin en filemanager configuration
filename must not be empty! filemanager en Filename must not be empty!
files from subdirectories filemanager en Files from subdirectories files from subdirectories filemanager en Files from subdirectories
files in this directory filemanager en Files in this directory files in this directory filemanager en Files in this directory
folder up filemanager en Folder Up folder up filemanager en Folder Up
@ -154,6 +155,7 @@ select action... filemanager en Select action...
select file to upload in current directory filemanager en Select file to upload in current directory select file to upload in current directory filemanager en Select file to upload in current directory
show filemanager en Show show filemanager en Show
show hidden files filemanager en Show hidden files show hidden files filemanager en Show hidden files
show link "%1" in side box menu? filemanager en Show link "%1" in side box menu?
show link to filemanagers basedirectory (/) in side box menu? filemanager en Show link to File Manager's base directory (/) in side box menu? show link to filemanagers basedirectory (/) in side box menu? filemanager en Show link to File Manager's base directory (/) in side box menu?
size filemanager en Size size filemanager en Size
start search filemanager en start search start search filemanager en start search