# ====================================================================
# Gossamer Threads Module Library - http://gossamer-threads.com/
#
#   GT::FileMan::Commands::Language
#   Author: Jason Rhinelander
#   CVS Info : 087,068,085,094,083      
#   $Id: Language.pm,v 1.4 2006/02/11 04:54:51 jagerman Exp $
#
# Copyright (c) 2006 Gossamer Threads Inc.  All Rights Reserved.
# ====================================================================
#
# Description:
#     Language variables for GT::FileMan::Commands
#

package GT::FileMan::Commands::Language;
use strict;
use Exporter();
use vars qw/@EXPORT @ISA %LANGUAGE/;
@EXPORT = qw/%LANGUAGE/;
@ISA = qw/Exporter/;

my $download_suffix = '<b>%s</b> (%s bytes) - </font><a href=\"javascript:top.js_download(\\\'%s\\\')\">Download</a>';

%LANGUAGE = (
    UPLOAD_MODE         => "<font color=green>File <b>%s</b> was successfully uploaded in <b>%s</b> mode.</font>",
    MSG_LOG_OFF         => "<font color=green>Please enter username and password to login.</font>",
    MSG_MULTI_UPLOAD    => "<font color=green><b>%s</b> files have been successfully uploaded.</font>",
    MSG_CHMOD_CHANGED   => "<font color=green>Permissions on <b>%s</b> file(s) have been updated successfully.</font>",
    MSG_SEACH_FOUND     => "<font color=green>Your search found <b>%s</b> results.</font>",
    MSG_REPLA_FOUND     => "<font color=green>Your search and replace updated <b>%s</b> files in %s</font>",
    MSG_SEACH_NOTFOUND  => "<font color=red>Your search did not produce any results.</font>",
    MSG_FILE_EDITING    => "<font color=green>Editing $download_suffix",
    MSG_FILE_VIEWING    => "<font color=green>Viewing $download_suffix",
    MSG_FILE_CONTENTS   => "<font color=green>Viewing contents of $download_suffix",
    MSG_FILE_CREATED    => "<font color=green><b>%s</b> has been created.</font>",
    MSG_FILE_EDITED     => "<font color=green>Changes to <b>%s</b> have been saved.</font>",
    MSG_DIR_CREATED     => "<font color=green><b>%s</b> directory has been created.</font>",
    MSG_PREFERENCES     => "<font color=green>Your options have been saved.</font>",
    MSG_UNCOMPRESS      => "<font color=green><b>%s</b> file has been unarchived.</font>",
    MSG_TAR_CANCEL      => "<font color=red>Creation of tar file has been cancelled.</font>",
    MSG_TAR_CREATED     => "<font color=green>Tar file <b>%s</b> has been created.</font>",
    MSG_COPIED          => "<font color=green> %s selected file/directory(s) have been copied (%s can not be copied).</font>",
    MSG_MOVED           => "<font color=green> %s selected file/directory(s) have been moved (%s can not be moved).</font>",
    MSG_DEL_SUCC        => "<font color=green><b>%s</b> files and <b>%s</b> directories have been removed.</font>",
    MSG_DEL_CURR        => "<font color=green>You've removed the directory: %s</font>",
    MSG_DEL_ALL         => "<font color=green>You've removed the directory, and all contents recursively.</font>",
    MSG_DEL_SKIP        => "<font color=green>You've skipped the directory: %s</font>",
    MSG_DEL_CANC        => "<font color=green>You've cancelled deleting the directory</font>",
    MSG_DEL_ALL_SUCC    => "<font color=green>All child dirs and files on the selected directorys has been removed. </font>",
    MSG_CONTINUE        => "<body bgcolor='#E9E9E9' text='#000066' leftmargin=5 topmargin=5><font color=red face=arial size=2> <b><a href='%s?fdo=cmd_show_passwd&work_path=%s&%s'>click here</a> to continue.</font></body>",
    MSG_PWD_CHANGED     => "<font color=green>Your password was changed. </font>",
    MSG_DEMO            => "<font color=red>Disabled in Demo.</font>",
    MSG_USER_ADDED      => "%s was added successfully.",
    MSG_USER_DELETED    => "%s was deleted successfully.",
    MSG_USER_RMALL      => "Users were deleted sucessfully.",
    ERR_DEL             => "<font color=red>Can not remove file(s)</font>",
    ERR_CHMOD           => "<font color=red>Can not change mode </font>",
    ERR_FILE_OPEN       => "<font color=red>Can not open file: %s</font>",
    ERR_FILE_EMPTY      => "<font color=red>File <b>%s</b> is empty.</font>",
    ERR_FILE_EXISTS     => "<font color=red>File <b>%s</b> exists.</font>",
    ERR_FILE_NOT_EXISTS => "<font color=red>File <b>%s</b> does not exist.</font>",
    ERR_FILE_PERM       => "<body bgcolor='#E9E9E9' text='#000066' leftmargin=5 topmargin=5><font color=red face=arial size=2> <b>Sorry, but we don't have write access to the htaccess files: '%s' and '%s'</font></BODY>",
    ERR_FILE_PEM        => "<font color=red>The <b>%s</b> directory is not writeable.</font>",
    ERR_NOT_TEXT_FILE   => "<font color=red>File <b>%s</b> is not a text file.</font>",
    ERR_DIR_NOT_EXISTS  => "<font color=red>Directory <b>%s</b> does not exist.</font>",
    ERR_DIR_PEM         => "<font color=red>The <b>%s</b> is not writeable.</font>",
    ERR_DIR_PERM        => "<font color=red>Please check permission.</font>",
    ERR_NOT_ISFILE      => "<font color=red><b>%s</b> is a directory.</font>",
    ERR_TMP_FILE        => "<font color=red>Can not open temp file.</font>",
    ERR_FREE_SPC        => "<font color=red>Upload: Not enough free space to upload that file.</font>",
    ERR_RM_FILE         => "<font color=red>Unable to remove file: %s. Reason: %s</font>",
    ERR_UPLOAD          => "<font color=red>Unable to upload file: %s. Reason: %s.</font>",
    ERR_FILE_SAVE       => "<font color=red>Cannot save file %s. Check permissions.</font>",
    ERR_DIR_EXISTS      => "<font color=red>Directory %s already exists.</font>",
    ERR_NAME            => "<font color=red>Illegal Characters in Directory. Please use letters, numbers, - and _ only.</font>",
    ERR_FILE_NAME1      => "No double .. allowed in file names.",
    ERR_FILE_NAME2      => "No leading . in file names.",
    ERR_READ_DIR        => "<font color=red>Can not open dir: %s. Reason: %s</font>",
    ERR_DIR_DEEP        => "Directory level too deep.",
    ERR_DISK_SPACE      => "<font color=red>Not enough space to save it (free space is %s kb)</font>",
    ERR_UNCOMPRESS      => "<font color=red>Select files or directories before to uncompress.</font>",
    ERR_TAR             => "<font color=red>Error: %s.</font>",
    ERR_TAR_NOT_EXISTS  => "<font color=red>Can not create a tar file: %s</font>",
    ERR_TAR_PEM         => "<font color=red>Can not create a tar file <b>%s</b>. Check permission.</font>",
    ERR_DOWNLOAD        => "<font color=red>You selected a directory !</font>",
    ERR_LOGIN           => "<font color=red>Invalid Username and Password.</font>",
    ERR_INVALID         => "<font color=red>Input value has invalid characters : <b>%s</b></font> ",
    ERR_NOT_FILE        => "<font color=red>The %s is not a file</font>",
    ERR_OLD_PASSWORD    => "<font color=red>Invalid Old password</font>",
    ERR_NEW_PASSWORD    => "<font color=red>New password must be more than 3 character</font>",
    ERR_OPEN_FILE       => "<font color=red>Can not open %s file, reason: %s</font>",
    ERR_WRITEABLE       => "<font color=red>Can not save %s file, reason: %s</font>",
    ERR_NO_AZIP         => "<font color=red>Please install the Archive::Zip library which is required.</font>",
    ERR_NO_GZIP         => "<font color=red>Please install the Compress::Zlib library which is required.</font>",
    COBALT_NOREMOTE     => "FileMan is not currently running under server authentication!",
    ERR_VERSION         => "<font color=red>This action does not support for your current version!</font>",
    ERR_PRINT           => "Please select the files which are required text or image files",
    PRINT_NEXT          => "<a href='%s'><font face='Verdana, Arial, Helvetica, sans-serif' size=2>Print Next</font></a>",
    COBALT_NOUSER       => "Unable to lookup user '%s'",
    COBALT_BADUID       => "Invalid user '%s' (%s)",
    COBALT_CANTSU       => "Can't switch to user '%s' (%s,%s). Reason: '%s'",
    COBALT_BADDIR       => "Invalid home directory '%s'. It does not look like a standard Raq director.",
    COBALT_BADGROUP     => "This program is restricted to site administrators only. You must be in the site administer group in order to use this.",
    FILETYPE_IMAGE      => 'Image file',
    FILETYPE_TEXT       => 'Text file',
    FILETYPE_SCRIPT     => 'Script file',
    FILETYPE_COMPRESSED => 'Compressed file',
    FILETYPE_HTML       => 'HTML file',
    FILETYPE_SOUND      => 'Audio file',
    FILETYPE_BINARY     => 'Binary file',
    FILETYPE_DOC        => 'MS Word',
    FILETYPE_XLS        => 'MS Excel',
    FILETYPE_PDF        => 'PDF file',
    FILETYPE_FOLDER     => 'File Folder',
    FILETYPE_UNKNOWN    => 'Unknown file',
    FILETYPE_EXT        => '%s file',
    FILECOL_NAME        => 'Name',
    FILECOL_SIZE        => 'Size',
    FILECOL_DATE        => 'Modified',
    FILECOL_PERM        => 'Permissions',
    FILECOL_USER        => 'Owner',
    FILECOL_TYPE        => 'File Type',
    FILECOL_VIEW        => 'View',
    DATE_SHORT_JAN      => 'Jan',
    DATE_SHORT_FEB      => 'Feb',
    DATE_SHORT_MAR      => 'Mar',
    DATE_SHORT_APR      => 'Apr',
    DATE_SHORT_MAY      => 'May',
    DATE_SHORT_JUN      => 'Jun',
    DATE_SHORT_JUL      => 'Jul',
    DATE_SHORT_AUG      => 'Aug',
    DATE_SHORT_SEP      => 'Sep',
    DATE_SHORT_OCT      => 'Oct',
    DATE_SHORT_NOV      => 'Nov',
    DATE_SHORT_DEC      => 'Dec',
    DIR_PARENT          => 'Parent Directory',
    README              => 'Readme File',
    COMMAND_TIMEOUT     => 'Command timed out',
    COMMAND_KILLFAIL    => 'Unable to kill process (%s): %s',
    EXTRACT_FILE_OK       => '%s... okay',
    EXTRACT_FILE_SKIP     => '%s... skipped',
);

1;
