Changeset 2906 for trunk/plugins/LocalFilesEditor
- Timestamp:
- Nov 24, 2008, 11:35:56 PM (16 years ago)
- Location:
- trunk/plugins/LocalFilesEditor
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/LocalFilesEditor/admin.php
r2712 r2906 94 94 { 95 95 $filename = $_POST['tpl_name']; 96 if (empty($filename)) 97 { 98 array_push($page['errors'], l10n('locfiledit_empty_filename')); 99 } 96 100 if (get_extension($filename) != 'tpl') 97 101 { … … 101 105 { 102 106 array_push($page['errors'], l10n('locfiledit_filename_error')); 107 } 108 if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0') 109 { 110 array_push($page['errors'], l10n('locfiledit_model_error')); 111 } 112 if (file_exists($_POST['tpl_parent'] . '/' . $filename)) 113 { 114 array_push($page['errors'], l10n('locfiledit_file_already_exists')); 115 } 116 if (!empty($page['errors'])) 117 { 103 118 $newfile_page = true; 104 119 } 105 if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0') 106 { 107 array_push($page['errors'], l10n('locfiledit_model_error')); 108 $newfile_page = true; 109 } 110 if (file_exists($_POST['tpl_parent'] . '/' . $filename)) 111 { 112 array_push($page['errors'], l10n('locfiledit_file_already_exists')); 113 $newfile_page = true; 114 } 115 if (!$newfile_page) 120 else 116 121 { 117 122 $edited_file = $_POST['tpl_parent'] . '/' . $filename; -
trunk/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php
r2781 r2906 52 52 $lang['locfiledit_file_already_exists'] = 'Datei ist bereits vorhanden.'; 53 53 $lang['locfiledit_model_error'] = 'Sie müssen ein Modell wählen.'; 54 /* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; 54 55 55 56 ?> -
trunk/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php
r2588 r2906 52 52 $lang['locfiledit_file_already_exists'] = 'File already exists.'; 53 53 $lang['locfiledit_model_error'] = 'You must choose a model.'; 54 $lang['locfiledit_empty_filename'] = 'You must fill file name.'; 54 55 55 56 ?> -
trunk/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php
r2686 r2906 52 52 $lang['locfiledit_file_already_exists'] = 'El fichero ya existe.'; 53 53 $lang['locfiledit_model_error'] = 'Por favor, seleccione un modelo.'; 54 /* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; 54 55 55 56 ?> -
trunk/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php
r2588 r2906 52 52 $lang['locfiledit_file_already_exists'] = 'Le fichier existe déjà.'; 53 53 $lang['locfiledit_model_error'] = 'Veuillez sélectionner un modèle.'; 54 $lang['locfiledit_empty_filename'] = 'Veuillez indiquer un nom de fichier.'; 54 55 55 56 ?> -
trunk/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php
r2887 r2906 52 52 $lang['locfiledit_file_already_exists'] = 'Il file esiste già.'; 53 53 $lang['locfiledit_model_error'] = 'Selezionare un modello.'; 54 /* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; 54 55 55 56 ?>
Note: See TracChangeset
for help on using the changeset viewer.