i18n - Savannah Patches #352,#353,#358, thanks gisu

This commit is contained in:
Zone 2002-06-18 06:33:44 +00:00
parent c0a1b434e9
commit df07c1f406
7 changed files with 293 additions and 106 deletions

View File

@ -13,9 +13,9 @@
/* $Id$ */
{
// Only Modify the $file and $title variables.....
$title = "PHPWebHosting";
$title = $appname;
$file = Array(
'Preferences' => $GLOBALS['phpgw']->link('/phpwebhosting/preferences.php')
lang('Preferences') => $GLOBALS['phpgw']->link('/phpwebhosting/preferences.php')
);
//Do not modify below this line
display_section($appname,$title,$file);

View File

@ -61,7 +61,7 @@ define ('HTML_TABLE_FILES_COLUMN_HEADER_TEXT_COLOR', 'maroon');
define ('HTML_TABLE_FILES_BG_COLOR', '');
define ('HTML_TABLE_FILES_TEXT_COLOR', 'maroon');
define ('HTML_TEXT_ERROR_COLOR', 'red');
define ('HTML_TEXT_NAVIGATION_BACK_TO_USER', 'Back to file manager');
define ('HTML_TEXT_NAVIGATION_BACK_TO_USER', lang('Back to file manager'));
###
# Need to include this here so they recognize the settings
@ -75,18 +75,18 @@ require (PHPGW_APP_INC . '/html.inc.php');
###
$file_attributes = Array(
'name' => 'Filename',
'mime_type' => 'MIME Type',
'size' => 'Size',
'created' => 'Created',
'modified' => 'Modified',
'owner' => 'Owner',
'createdby_id' => 'Created by',
'modifiedby_id' => 'Created by',
'modifiedby_id' => 'Modified by',
'app' => 'Application',
'comment' => 'Comment',
'version' => 'Version'
'name' => lang('File Name'),
'mime_type' => lang('MIME Type'),
'size' => lang('Size'),
'created' => lang('Created'),
'modified' => lang('Modified'),
'owner' => lang('Owner'),
'createdby_id' => lang('Created by'),
'modifiedby_id' => lang('Created by'),
'modifiedby_id' => lang('Modified by'),
'app' => lang('Application'),
'comment' => lang('Comment'),
'version' => lang('Version')
);
###

View File

@ -99,7 +99,7 @@ if ($execute && $command_line)
{
if ($result = $GLOBALS['phpgw']->vfs->command_line (array ('command_line' => stripslashes ($command_line))))
{
$messages = html_text_bold ('Command sucessfully run', 1);
$messages = html_text_bold (lang('Command sucessfully run'),1);
if ($result != 1 && strlen ($result) > 0)
{
$messages .= html_break (2, NULL, 1) . $result;
@ -107,7 +107,7 @@ if ($execute && $command_line)
}
else
{
$messages = $GLOBALS['phpgw']->common->error_list (array ('Error running command'));
$messages = $GLOBALS['phpgw']->common->error_list (array (lang('Error running command')));
}
}
@ -221,9 +221,9 @@ if ($path != $GLOBALS['homedir']
))
)
{
echo $GLOBALS['phpgw']->common->error_list (array ('You do not have access to '.$path));
echo $GLOBALS['phpgw']->common->error_list (array (lang('You do not have access to x', $path)));
html_break (2);
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], 'Go to your home directory');
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], lang('Go to your home directory'));
html_page_close ();
}
@ -247,7 +247,7 @@ if (($path == $GLOBALS['homedir'])
if (!$GLOBALS['phpgw']->vfs->mkdir (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE))))
{
$p = $phpgw->vfs->path_parts (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE)));
echo $GLOBALS['phpgw']->common->error_list (array ('Could not create directory ' . $GLOBALS['homedir'] . ' (' . $p->real_full_path . ')'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not create directory x', $GLOBALS['homedir'] . ' (' . $p->real_full_path . ')')));
}
$GLOBALS['phpgw']->vfs->override_acl = 0;
@ -261,9 +261,9 @@ if ($path != $GLOBALS['homedir'] && $path != '/' && $path != $GLOBALS['fakebase'
{
if (!$GLOBALS['phpgw']->vfs->file_exists (array ('string' => $path, 'relatives' => array (RELATIVE_NONE))))
{
echo $GLOBALS['phpgw']->common->error_list (array ('Directory '.$path.' does not exist'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Directory x does not exist', $path)));
html_break (2);
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], 'Go to your home directory');
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], lang('Go to your home directory'));
html_break (2);
html_link_back ();
html_page_close ();
@ -464,16 +464,16 @@ if ($op == 'history' && $file)
html_table_begin ();
html_table_row_begin ();
html_table_col_begin ();
html_text_bold ('Date');
html_text_bold (lang('Date'));
html_table_col_end ();
html_table_col_begin ();
html_text_bold ('Version');
html_text_bold (lang('Version'));
html_table_col_end ();
html_table_col_begin ();
html_text_bold ('Who');
html_text_bold (lang('Who'));
html_table_col_end ();
html_table_col_begin ();
html_text_bold ('Operation');
html_text_bold (lang('Operation'));
html_table_col_end ();
html_table_row_end ();
@ -499,7 +499,7 @@ if ($op == 'history' && $file)
}
else
{
html_text_bold ('No version history for this file/directory');
html_text_bold (lang('No version history for this file/directory'));
}
}
@ -508,7 +508,7 @@ if ($newfile && $createfile)
{
if ($badchar = bad_chars ($createfile, True, True))
{
echo $GLOBALS['phpgw']->common->error_list (array (html_encode ('Filenames cannot contain "'.$badchar.'"', 1)));
echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "x"',$badchar), 1)));
html_break (2);
html_link_back ();
html_page_close ();
@ -520,7 +520,7 @@ if ($newfile && $createfile)
))
)
{
echo $GLOBALS['phpgw']->common->error_list (array ('File '.$createfile.' already exists. Please edit it or delete it first.'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('File x already exists. Please edit it or delete it first.', $createfile)));
html_break (2);
html_link_back ();
html_page_close ();
@ -538,7 +538,7 @@ if ($newfile && $createfile)
}
else
{
echo $GLOBALS['phpgw']->common->error_list (array ('File '.$createfile.' could not be created.'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('File x could not be created.', $createfile)));
}
}
@ -572,7 +572,7 @@ if ($op == 'help' && $help_name)
# Start Main Page
###
html_page_begin ('Users :: '.$GLOBALS['userinfo']['username']);
html_page_begin (lang('Users').' :: '.$GLOBALS['userinfo']['username']);
html_page_body_begin (HTML_PAGE_BODY_COLOR);
if ($messages)
@ -619,7 +619,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
if ($path != '/')
{
html_link ($GLOBALS['appname'].'/index.php?path='.$lesspath, html_image ('images/folder-up.gif', 'Up', 'left', 0, NULL, 1));
html_link ($GLOBALS['appname'].'/index.php?path='.$lesspath, html_image ('images/folder-up.gif', lang('Up'), 'left', 0, NULL, 1));
html_help_link ('up');
}
@ -630,16 +630,16 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
{
if ($path == $GLOBALS['homedir'])
{
html_image ('images/folder-home.gif', 'Folder', 'center');
html_image ('images/folder-home.gif', lang('Folder'), 'center');
}
else
{
html_image ('images/folder.gif', 'Folder', 'center');
html_image ('images/folder.gif', lang('Folder'), 'center');
}
}
else
{
html_image ('images/folder-home.gif', 'Home');
html_image ('images/folder-home.gif', lang('Home'));
}
html_font_set (4, HTML_TABLE_FILES_HEADER_TEXT_COLOR);
@ -651,7 +651,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
if ($path != $GLOBALS['homedir'])
{
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], html_image ('images/folder-home.gif', 'Home', 'right', 0, NULL, 1));
html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], html_image ('images/folder-home.gif', lang('Home'), 'right', 0, NULL, 1));
html_help_link ('home');
}
@ -668,7 +668,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
###
html_table_col_begin ();
html_text ('Sort by:' . html_nbsp (1, 1), NULL, NULL, 1);
html_text (lang('Sort by:') . html_nbsp (1, 1), NULL, NULL, 0);
html_help_link ('sort_by');
html_table_col_end ();
@ -678,7 +678,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
if ($GLOBALS['settings'][$internal])
{
html_table_col_begin ();
html_link ($GLOBALS['appname'].'/index.php?path='.$path.'&sortby='.$internal, html_text_bold ($displayed, 1, 1));
html_link ($GLOBALS['appname'].'/index.php?path='.$path.'&sortby='.$internal, html_text_bold ($displayed, 1, 0));
html_help_link (strtolower (ereg_replace (' ', '_', $displayed)));
html_table_col_end ();
}
@ -696,14 +696,14 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
/* We can assume the next column is the name */
html_table_col_begin ();
html_image ('images/folder.gif', 'Folder');
html_image ('images/folder.gif', lang('Folder'));
html_link ($GLOBALS['appname'].'/index.php?path='.$lesspath, '..');
html_table_col_end ();
if ($GLOBALS['settings']['mime_type'])
{
html_table_col_begin ();
html_text ('Directory');
html_text (lang('Directory'));
html_table_col_end ();
}
@ -789,7 +789,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
{
if ($files['mime_type'] == 'Directory')
{
html_image ('images/folder.gif', 'Folder');
html_image ('images/folder.gif', lang('Folder'));
}
html_form_input ('text', 'renamefiles[' . base64_encode ($files['name']) . ']', $files['name'], 255);
}
@ -797,7 +797,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
{
if ($files['mime_type'] == 'Directory')
{
html_image ('images/folder.gif', 'Folder');
html_image ('images/folder.gif', lang('Folder'));
html_link ($GLOBALS['appname'].'/index.php?path='.$path.$dispsep.$files['name'], $files['name']);
}
else
@ -970,7 +970,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
if ($files['deleteable'] == 'N')
{
html_table_col_begin ();
html_image ('images/locked.gif', 'Locked');
html_image ('images/locked.gif', lang('Locked'));
html_table_col_end ();
}
else
@ -999,28 +999,28 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
{
if (!$rename && !$edit_comments)
{
html_form_input ('submit', 'edit', 'Edit');
html_form_input ('submit', 'edit', lang('Edit'));
html_help_link ('edit');
html_nbsp (3);
}
if (!$edit_comments)
{
html_form_input ('submit', 'rename', 'Rename');
html_form_input ('submit', 'rename', lang('Rename'));
html_help_link ('rename');
html_nbsp (3);
}
if (!$rename && !$edit_comments)
{
html_form_input ('submit', 'delete', 'Delete');
html_form_input ('submit', 'delete', lang('Delete'));
html_help_link ('delete');
html_nbsp (3);
}
if (!$rename)
{
html_form_input ('submit', 'edit_comments', 'Edit comments');
html_form_input ('submit', 'edit_comments', lang('Edit comments'));
html_help_link ('edit_comments');
}
}
@ -1037,15 +1037,15 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
###
html_break (1);
html_form_input ('submit', 'go', 'Go to:');
html_form_input ('submit', 'go', lang('Go to:'));
html_help_link ('go_to');
if ($path != '/' && $path != $GLOBALS['fakebase'])
{
html_form_input ('submit', 'copy', 'Copy to:');
html_form_input ('submit', 'copy', lang('Copy to:'));
html_help_link ('copy_to');
html_form_input ('submit', 'move', 'Move to:');
html_form_input ('submit', 'move', lang('Move to:'));
html_help_link ('move_to');
}
@ -1144,24 +1144,24 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
{
html_break (1);
html_form_input ('submit', 'download', 'Download');
html_form_input ('submit', 'download', lang('Download'));
html_help_link ('download');
html_nbsp (3);
html_form_input ('text', 'createdir', NULL, 255, 15);
html_form_input ('submit', 'newdir', 'Create Folder');
html_form_input ('submit', 'newdir', lang('Create Folder'));
html_help_link ('create_folder');
}
html_break (1);
html_form_input ('submit', 'update', 'Update');
html_form_input ('submit', 'update', lang('Update'));
html_help_link ('update');
if ($path != '/' && $path != $GLOBALS['fakebase'])
{
html_nbsp (3);
html_form_input ('text', 'createfile', NULL, 255, 15);
html_form_input ('submit', 'newfile', 'Create File');
html_form_input ('submit', 'newfile', lang('Create File'));
html_help_link ('create_file');
}
@ -1172,7 +1172,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
html_help_link ('command_line');
html_break (1);
html_form_input ('submit', 'execute', 'Execute');
html_form_input ('submit', 'execute', lang('Execute'));
html_help_link ('execute');
}
@ -1180,17 +1180,17 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
html_help_link ('file_stats');
html_break (1);
html_text_bold ('Files: ');
html_text_bold (lang('Files').': ');
html_text ($numoffiles);
html_nbsp (3);
html_text_bold ('Used space: ');
html_text_bold (lang('Used space').': ');
html_text (borkb ($usedspace, NULL, 1));
html_nbsp (3);
if ($path == $GLOBALS['homedir'] || $path == $GLOBALS['fakebase'])
{
html_text_bold ('Unused space: ');
html_text_bold (lang('Unused space').': ');
html_text (borkb ($GLOBALS['userinfo']['hdspace'] - $usedspace, NULL, 1));
$ls_array = $GLOBALS['phpgw']->vfs->ls (array (
@ -1202,7 +1202,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
$i = count ($ls_array);
html_break (2);
html_text_bold ('Total Files: ');
html_text_bold (lang('Total Files').': ');
html_text ($i);
}
@ -1217,11 +1217,11 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
html_table_begin ();
html_table_row_begin ('center');
html_table_col_begin ();
html_text_bold ('File');
html_text_bold (lang('File'));
html_help_link ('upload_file');
html_table_col_end ();
html_table_col_begin ();
html_text_bold ('Comment');
html_text_bold (lang('Comment'));
html_help_link ('upload_comment');
html_table_col_end ();
html_table_row_end ();
@ -1236,10 +1236,10 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
html_table_col_end ();
html_table_row_end ();
html_table_end ();
html_form_input ('submit', 'upload_files', 'Upload files');
html_form_input ('submit', 'upload_files', lang('Upload files'));
html_help_link ('upload_files');
html_break (2);
html_text ('Show' . html_nbsp (1, True));
html_text (lang('Show') . html_nbsp (1, True));
html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=5', '5');
html_nbsp ();
html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=10', '10');
@ -1248,7 +1248,7 @@ if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$ed
html_nbsp ();
html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=50', '50');
html_nbsp ();
html_text ('upload fields');
html_text (lang('upload fields'));
html_nbsp ();
html_help_link ('show_upload_fields');
html_form_end ();
@ -1281,7 +1281,7 @@ if ($edit)
$content = $edit_file_content;
html_break (1);
html_text_bold ('Preview of '.$path.'/'.$edit_file);
html_text_bold (lang('Preview of x', $path.'/'.$edit_file));
html_break (2);
html_table_begin ('90%');
@ -1303,13 +1303,13 @@ if ($edit)
))
)
{
html_text_bold ('Saved '.$path.'/'.$edit_file);
html_text_bold (lang('Saved x', $path.'/'.$edit_file));
html_break (2);
html_link_back ();
}
else
{
html_text_error ('Could not save '.$path.'/'.$edit_file);
html_text_error (lang('Could not save x', $path.'/'.$edit_file));
html_break (2);
html_link_back ();
}
@ -1333,12 +1333,12 @@ if ($edit)
))
)
{
html_text_bold ('Saved '.$path.'/'.$fileman[$j]);
html_text_bold (lang('Saved x', $path.'/'.$fileman[$j]));
html_break (1);
}
else
{
html_text_error ('Could not save '.$path.'/'.$fileman[$j]);
html_text_error (lang('Could not save x', $path.'/'.$fileman[$j]));
html_break (1);
}
}
@ -1398,11 +1398,11 @@ if ($edit)
html_form_textarea ('edit_file_content', 35, 75, $content);
html_table_col_end ();
html_table_col_begin ('center');
html_form_input ('submit', 'edit_preview', 'Preview ' . html_encode ($fileman[$j], 1));
html_form_input ('submit', 'edit_preview', lang('Preview x', html_encode ($fileman[$j], 1)));
html_break (1);
html_form_input ('submit', 'edit_save', 'Save ' . html_encode ($fileman[$j], 1));
html_form_input ('submit', 'edit_save', lang('Save x', html_encode ($fileman[$j], 1)));
// html_break (1);
// html_form_input ('submit', 'edit_save_all', 'Save all');
// html_form_input ('submit', 'edit_save_all', lang('Save all'));
html_table_col_end ();
html_table_row_end ();
html_break (2);
@ -1422,7 +1422,7 @@ elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase'])
{
if ($badchar = bad_chars ($upload_file_name[$i], True, True))
{
echo $GLOBALS['phpgw']->common->error_list (array (html_encode ('Filenames cannot contain "'.$badchar.'"', 1)));
echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "x"', $badchar), 1)));
continue;
}
@ -1445,7 +1445,7 @@ elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase'])
{
if ($fileinfo['mime_type'] == 'Directory')
{
echo $GLOBALS['phpgw']->common->error_list (array ('Cannot replace '.$fileinfo['name'].' because it is a directory'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Cannot replace x because it is a directory', $fileinfo['name'])));
continue;
}
}
@ -1476,7 +1476,7 @@ elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase'])
)
);
html_text_summary ('Replaced '.$disppath.'/'.$upload_file_name[$i], $upload_file_size[$i]);
html_text_summary (lang('Replaced x', $disppath.'/'.$upload_file_name[$i]), $upload_file_size[$i]);
}
else
{
@ -1497,7 +1497,7 @@ elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase'])
)
);
html_text_summary ('Created '.$disppath.'/'.$upload_file_name[$i], $upload_file_size[$i]);
html_text_summary (lang('Created x', $disppath.'/'.$upload_file_name[$i]), $upload_file_size[$i]);
}
}
elseif ($upload_file_name[$i])
@ -1518,7 +1518,7 @@ elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase'])
)
);
html_text_summary ('Created '.$disppath.'/'.$upload_file_name[$i], $file_size[$i]);
html_text_summary (lang('Created x', $disppath.'/'.$upload_file_name[$i]), $file_size[$i]);
}
}
@ -1536,7 +1536,7 @@ elseif ($comment_files)
{
if ($badchar = bad_chars ($comment_files[$file], False, True))
{
echo $GLOBALS['phpgw']->common->error_list (array (html_text_italic ($file, 1) . html_encode (': Comments cannot contain "'.$badchar.'"', 1)));
echo $GLOBALS['phpgw']->common->error_list (array (html_text_italic ($file, 1) . html_encode (': ' . lang('Comments cannot contain "x"', $badchar), 1)));
continue;
}
@ -1549,7 +1549,7 @@ elseif ($comment_files)
)
);
html_text_summary ('Updated comment for '.$path.'/'.$file);
html_text_summary (lang('Updated comment for x', $path.'/'.$file));
}
html_break (2);
@ -1566,13 +1566,13 @@ elseif ($renamefiles)
{
if ($badchar = bad_chars ($to, True, True))
{
echo $GLOBALS['phpgw']->common->error_list (array (html_encode ('File names cannot contain "'.$badchar.'"', 1)));
echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "x"', $badchar), 1)));
continue;
}
if (ereg ("/", $to) || ereg ("\\\\", $to))
{
echo $GLOBALS['phpgw']->common->error_list (array ("File names cannot contain \\ or /"));
echo $GLOBALS['phpgw']->common->error_list (array (lang("File names cannot contain \\ or /")));
}
elseif (!$GLOBALS['phpgw']->vfs->mv (array (
'from' => $from,
@ -1580,11 +1580,11 @@ elseif ($renamefiles)
))
)
{
echo $GLOBALS['phpgw']->common->error_list (array ('Could not rename '.$disppath.'/'.$from.' to '.$disppath.'/'.$to));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not rename x to x', $disppath.'/'.$from, $disppath.'/'.$to)));
}
else
{
html_text_summary ('Renamed '.$disppath.'/'.$from.' to '.$disppath.'/'.$to);
html_text_summary (lang('Renamed x to x', $disppath.'/'.$from, $disppath.'/'.$to));
}
}
@ -1608,18 +1608,18 @@ elseif ($move)
)
{
$moved++;
html_text_summary ('Moved '.$disppath.'/'.$file.' to '.$todir.'/'.$file);
html_text_summary (lang('Moved x to x', $disppath.'/'.$file, $todir.'/'.$file));
}
else
{
echo $GLOBALS['phpgw']->common->error_list (array ('Could not move '.$disppath.'/'.$file.' to '.$todir.'/'.$file));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not move x to x', $disppath.'/'.$file, $todir.'/'.$file)));
}
}
if ($moved)
{
html_break (2);
html_link ($GLOBALS['appname'].'/index.php?path='.$todir, 'Go to '.$todir);
html_link ($GLOBALS['appname'].'/index.php?path='.$todir, lang('Go to x', $todir));
}
html_break (2);
@ -1642,18 +1642,18 @@ elseif ($copy)
)
{
$copied++;
html_text_summary ('Copied '.$disppath.'/'.$file.' to '.$todir.'/'.$file);
html_text_summary (lang('Copied x to x', $disppath.'/'.$file, $todir.'/'.$file));
}
else
{
echo $GLOBALS['phpgw']->common->error_list (array ('Could not copy '.$disppath.'/'.$file.' to '.$todir.'/'.$file));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not copy x to x', $disppath.'/'.$file, $todir.'/'.$file)));
}
}
if ($copied)
{
html_break (2);
html_link ($GLOBALS['appname'].'/index.php?path='.$todir, 'Go to '.$todir);
html_link ($GLOBALS['appname'].'/index.php?path='.$todir, lang('Go to x', $todir));
}
html_break (2);
@ -1672,11 +1672,11 @@ elseif ($delete)
{
if ($GLOBALS['phpgw']->vfs->delete (array ('string' => $fileman[$i])))
{
html_text_summary ('Deleted '.$disppath.'/'.$fileman[$i], $fileinfo['size']);
html_text_summary (lang('Deleted x', $disppath.'/'.$fileman[$i]), $fileinfo['size']);
}
else
{
$GLOBALS['phpgw']->common->error_list (array ('Could not delete '.$disppath.'/'.$fileman[$i]));
$GLOBALS['phpgw']->common->error_list (array (lang('Could not delete x', $disppath.'/'.$fileman[$i])));
}
}
}
@ -1689,7 +1689,7 @@ elseif ($newdir && $createdir)
{
if ($badchar = bad_chars ($createdir, True, True))
{
echo $GLOBALS['phpgw']->common->error_list (array (html_encode ('Directory names cannot contain "'.$badchar.'"', 1)));
echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('Directory names cannot contain "x"', $badchar), 1)));
html_break (2);
html_link_back ();
html_page_close ();
@ -1697,7 +1697,7 @@ elseif ($newdir && $createdir)
if ($createdir[strlen($createdir)-1] == ' ' || $createdir[0] == ' ')
{
echo $GLOBALS['phpgw']->common->error_list (array ('Cannot create directory because it begins or ends in a space'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Cannot create directory because it begins or ends in a space')));
html_break (2);
html_link_back ();
html_page_close ();
@ -1717,14 +1717,14 @@ elseif ($newdir && $createdir)
{
if ($fileinfo['mime_type'] != 'Directory')
{
echo $GLOBALS['phpgw']->common->error_list (array ($fileinfo['name'].' already exists as a file'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('x already exists as a file', $fileinfo['name'])));
html_break (2);
html_link_back ();
html_page_close ();
}
else
{
echo $GLOBALS['phpgw']->common->error_list (array ('Directory '.$fileinfo['name'].' already exists'));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Directory x already exists', $fileinfo['name'])));
html_break (2);
html_link_back ();
html_page_close ();
@ -1734,13 +1734,13 @@ elseif ($newdir && $createdir)
{
if ($GLOBALS['phpgw']->vfs->mkdir (array ('string' => $createdir)))
{
html_text_summary ('Created directory '.$disppath.'/'.$createdir);
html_text_summary (lang('Created directory x', $disppath.'/'.$createdir));
html_break (2);
html_link ($GLOBALS['appname'].'/index.php?path='.$disppath.'/'.$createdir, 'Go to '.$disppath.'/'.$createdir);
html_link ($GLOBALS['appname'].'/index.php?path='.$disppath.'/'.$createdir, lang('Go to x', $disppath.'/'.$createdir));
}
else
{
echo $GLOBALS['phpgw']->common->error_list (array ('Could not create '.$disppath.'/'.$createdir));
echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not create x', $disppath.'/'.$createdir)));
}
}

View File

@ -24,13 +24,13 @@
/*
To add an on/off preference, just add it here. Key is internal name, value is displayed name
*/
$other_checkboxes = array ("viewinnewwin" => "View documents in new window", "viewonserver" => "View documents on server (if available)", "viewtextplain" => "Unknown MIME-type defaults to text/plain when viewing", "dotdot" => "Show ..", "dotfiles" => "Show .files", "show_help" => "Show help", "show_command_line" => "Show command line (EXPERIMENTAL. DANGEROUS.)");
$other_checkboxes = array ("viewinnewwin" => lang("View documents in new window"), "viewonserver" => lang("View documents on server (if available)"), "viewtextplain" => lang("Unknown MIME-type defaults to text/plain when viewing"), "dotdot" => lang("Show .."), "dotfiles" => lang("Show .files"), "show_help" => lang("Show help"), "show_command_line" => lang("Show command line (EXPERIMENTAL. DANGEROUS.)"));
/*
To add a dropdown preferences, add it here. Key is internal name, value key is
displayed name, value values are choices in the dropdown
*/
$other_dropdown = array ("show_upload_boxes" => array ("Default number of upload fields to show", "5", "10", "20", "30"));
$other_dropdown = array ("show_upload_boxes" => array (lang("Default number of upload fields to show"), "5", "10", "20", "30"));
if ($submit)
{
@ -124,7 +124,7 @@
}
$str = html_form_input ("checkbox", $internal, NULL, NULL, NULL, $checked, NULL, 1);
display_item (lang ($displayed), $str);
display_item ($displayed, $str);
}
reset ($other_dropdown);

View File

@ -0,0 +1,93 @@
application phpwebhosting en Application
back to file manager phpwebhosting en Back to file manager
cannot create directory because it begins or ends in a space phpwebhosting en Cannot create directory because it begins or ends in a space
cannot replace x because it is a directory phpwebhosting en Cannot replace %1 because it is a directory
command sucessfully run phpwebhosting en Command sucessfully run
comment phpwebhosting en Comment
comments cannot contain "x" phpwebhosting en Comments cannot contain "%1"
copied x to x phpwebhosting en Copied %1 to %2
copy to phpwebhosting en Copy To
copy to: phpwebhosting en Copy to:
could not copy x to x phpwebhosting en Could not copy %1 to %2
could not create directory x phpwebhosting en Could not create directory %1
could not create x phpwebhosting en Could not create %1
could not delete x phpwebhosting en Could not delete %1
could not move x to x phpwebhosting en Could not move %1 to %2
could not rename x to x phpwebhosting en Could not rename %1 to %2
could not save x phpwebhosting en Could not save %1
create file phpwebhosting en Create File
create folder phpwebhosting en Create Folder
created phpwebhosting en Created
created by phpwebhosting en Created by
created directory x phpwebhosting en Created directory %1
created x phpwebhosting en Created %1
date phpwebhosting en Date
default number of upload fields to show phpwebhosting en Default number of upload fields to show
delete phpwebhosting en Delete
deleted x phpwebhosting en Deleted %1
directory phpwebhosting en Directory
directory names cannot contain "x" phpwebhosting en Directory names cannot contain "%1"
directory x already exists phpwebhosting en Directory %1 already exists
directory x does not exist phpwebhosting en Directory %1 does not exist
display attributes phpwebhosting en Display attributes
download phpwebhosting en Download
edit phpwebhosting en Edit
edit comments phpwebhosting en Edit comments
error running command phpwebhosting en Error running command
execute phpwebhosting en Execute
failed to create directory phpwebhosting en failed to create directory
file phpwebhosting en File
file name phpwebhosting en File Name
file names cannot contain "x" phpwebhosting en File names cannot contain "%1"
file names cannot contain \\ or / phpwebhosting en File names cannot contain \\ or /
file x already exists. please edit it or delete it first. phpwebhosting en File %1 already exists. Please edit it or delete it first.
file x could not be created. phpwebhosting en File %1 could not be created.
files phpwebhosting en Files
folder phpwebhosting en Folder
go to phpwebhosting en Go To
go to x phpwebhosting en Go to %1
go to your home directory phpwebhosting en Go to your home directory
go to: phpwebhosting en Go to:
home phpwebhosting en Home
locked phpwebhosting en Locked
mime type phpwebhosting en MIME Type
modified phpwebhosting en Modified
modified by phpwebhosting en Modified by
move to phpwebhosting en Move To
move to: phpwebhosting en Move to:
moved x to x phpwebhosting en Moved %1 to %2
no version history for this file/directory phpwebhosting en No version history for this file/directory
operation phpwebhosting en Operation
owner phpwebhosting en Owner
phpwebhosting preferences phpwebhosting en PHPWebHosting preferences
preview of x phpwebhosting en Preview of %1
preview x phpwebhosting en Preview %1
rename phpwebhosting en Rename
renamed x to x phpwebhosting en Renamed %1 to %2
replaced x phpwebhosting en Replaced %1
save all phpwebhosting en Save all
save x phpwebhosting en Save %1
saved x phpwebhosting en Saved %1
show phpwebhosting en Show
show .. phpwebhosting en Show ..
show .files phpwebhosting en Show .files
show command line (experimental. dangerous.) phpwebhosting en Show command line (EXPERIMENTAL. DANGEROUS.)
show help phpwebhosting en Show help
size phpwebhosting en Size
sort by: phpwebhosting en Sort by:
total files phpwebhosting en Total Files
unknown mime-type defaults to text/plain when viewing phpwebhosting en Unknown MIME-type defaults to text/plain when viewing
unused space phpwebhosting en Unused space
up phpwebhosting en Up
update phpwebhosting en Update
updated comment for x phpwebhosting en Updated comment for %1
upload fields phpwebhosting en upload fields
upload files phpwebhosting en Upload files
used space phpwebhosting en Used Space
users phpwebhosting en Users
version phpwebhosting en Version
view documents in new window phpwebhosting en View documents in new window
view documents on server (if available) phpwebhosting en View documents on server (if available)
who phpwebhosting en Who
x already exists as a file phpwebhosting en %1 already exists as a file
you do not have access to x phpwebhosting en You do not have access to %1

View File

@ -0,0 +1,94 @@
application phpwebhosting pt Aplicação
back to file manager phpwebhosting pt Voltar ao Gerenciador de Arquivos
cannot create directory because it begins or ends in a space phpwebhosting pt Não é possível criar a pasta porque seu nome inicia ou termina em espaço em branco
cannot replace x because it is a directory phpwebhosting pt Não é possível subtituir %1 porque é uma pasta
command sucessfully run phpwebhosting pt Comando executado com sucesso
comment phpwebhosting pt Comentário
comments cannot contain "x" phpwebhosting pt Comentários não podem conter "%1"
copied x to x phpwebhosting pt Copiado %1 para %2
copy to phpwebhosting pt Copiar Para
copy to: phpwebhosting pt Copiar para:
could not copy x to x phpwebhosting pt Não foi possível copiar %1 para %2
could not create directory x phpwebhosting pt Não foi possível criar a pasta %1
could not create x phpwebhosting pt Não foi possível criar %1
could not delete x phpwebhosting pt Não foi possível remover %1
could not move x to x phpwebhosting pt Não foi possível mover %1 para %2
could not rename x to x phpwebhosting pt Não foi possível renomear %1 para %2
could not save x phpwebhosting pt Não foi possível salvar %1
create file phpwebhosting pt Criar Arquivo
create folder phpwebhosting pt Criar Pasta
created phpwebhosting pt Criado
created by phpwebhosting pt Criado por
created directory x phpwebhosting pt Criada pasta %1
created x phpwebhosting pt Criado %1
date phpwebhosting pt Data
default number of upload fields to show phpwebhosting pt Padrão para o número de campos de envio de arquivos a exibir
delete phpwebhosting pt Remover
deleted x phpwebhosting pt Removido %1
directory phpwebhosting pt Pasta
directory names cannot contain "x" phpwebhosting pt Nomes de pastas não podem conter "%1"
directory x already exists phpwebhosting pt Pasta %1 já existe
directory x does not exist phpwebhosting pt Pasta %1 não existe
display attributes phpwebhosting pt Exibir atributos
download phpwebhosting pt Download
edit phpwebhosting pt Editar
edit comments phpwebhosting pt Editar Comentários
error running command phpwebhosting pt Erro executando comando
execute phpwebhosting pt Executar
failed to create directory phpwebhosting pt falhou ao criar pasta
file phpwebhosting pt Arquivo
file name phpwebhosting pt Nome do Arquivo
file names cannot contain "x" phpwebhosting pt Nomes de arquivos não podem conter "%1"
file names cannot contain \\ or / phpwebhosting pt Nomes de arquivos não podem conter \\ ou /
file x already exists. please edit it or delete it first. phpwebhosting pt Arquivo %1 já existe. Por favor edite-o ou remova-o antes.
file x could not be created. phpwebhosting pt Arquivo %1 não pôde ser criado.
files phpwebhosting pt Arquivos
folder phpwebhosting pt Pasta
go to phpwebhosting pt Ir Para
go to x phpwebhosting pt Ir para %1
go to your home directory phpwebhosting pt Ir para sua pasta Home
go to: phpwebhosting pt Ir para:
home phpwebhosting pt Home
locked phpwebhosting pt Travado
mime type phpwebhosting pt Tipo MIME
modified phpwebhosting pt Modificado
modified by phpwebhosting pt Modificado por
move to phpwebhosting pt Mover Para
move to: phpwebhosting pt Mover para:
moved x to x phpwebhosting pt Movido %1 para %2
no version history for this file/directory phpwebhosting pt Sem histórico de versão para este arquivo/pasta
operation phpwebhosting pt Operação
owner phpwebhosting pt Dono
phpwebhosting preferences phpwebhosting pt Preferências para Gerenciador de Arquivos
preview of x phpwebhosting pt Visualizar %1
preview x phpwebhosting pt Visualizar %1
rename phpwebhosting pt Renomear
renamed x to x phpwebhosting pt Renomeado %1 para %2
replaced x phpwebhosting pt Substituído %1
save all phpwebhosting pt Salvar tudo
save x phpwebhosting pt Salvar %1
saved x phpwebhosting pt Salvo %1
show phpwebhosting pt Exibir
show .. phpwebhosting pt Exibir ..
show .files phpwebhosting pt Exibir arquivos cujos nomes iniciam por um ponto
show command line (experimental. dangerous.) phpwebhosting pt Exibir linha de comando (EXPERIMENTAL. PERIGOSO.)
show help phpwebhosting pt Exibir ajuda
size phpwebhosting pt Tamanho
sort by: phpwebhosting pt Ordenar por:
total files phpwebhosting pt Total de Arquivos
unknown mime-type defaults to text/plain when viewing phpwebhosting pt Tipos MIME desconhecidos são visualizados como text/plain por padrão
unused space phpwebhosting pt Espaço Não Usado
unused space: phpwebhosting pt Espaço Não Usado:
up phpwebhosting pt Acima
update phpwebhosting pt Atualizar
updated comment for x phpwebhosting pt Comentário atualizado para %1
upload fields phpwebhosting pt campos de envio de arquivos
upload files phpwebhosting pt Enviar Arquivos
used space phpwebhosting pt Espaço Usado
users phpwebhosting pt Usuários
version phpwebhosting pt Versão
view documents in new window phpwebhosting pt Visualizar documentos em uma nova janela
view documents on server (if available) phpwebhosting pt Visualizar documentos no servidor (se disponível)
who phpwebhosting pt Quem
x already exists as a file phpwebhosting pt %1 já existe como um arquivo
you do not have access to x phpwebhosting pt Você não tem acesso a %1

View File

@ -1,8 +1,8 @@
<tr bgcolor="{bg_color}">
<td>{string}</td>
<td align="center">{read_lang}</td>
<td align="center">{add_lang}</td>
<td align="center">{edit_lang}</td>
<td align="center">{delete_lang}</td>
<td align="center">{private_lang}</td>
<td align="center">{lang_read}</td>
<td align="center">{lang_add}</td>
<td align="center">{lang_edit}</td>
<td align="center">{lang_delete}</td>
<td align="center">{lang_private}</td>
</tr>