1 /* $XConsortium: SharedMsgs.c /main/4 1995/11/02 14:43:46 rswiston $ */
2 /************************************<+>*************************************
3 ****************************************************************************
7 * COMPONENT_NAME: Desktop File Manager (dtfile)
9 * Description: This file contains the set of functions for accessing
10 * the set of shared message strings.
12 * FUNCTIONS: GetSharedMessage
14 * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
15 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
16 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
17 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
19 ****************************************************************************
20 ************************************<+>*************************************/
23 #include <sys/types.h>
25 #include <sys/param.h>
34 #ifndef sun /* don't need the nl_types.h file */
45 #include "SharedMsgs.h"
50 /************************************************************************
52 * This function takes the id passed in, and returns a pointer to the
53 * associated error message string. THIS IS NOT A COPY OF THE STRING,
54 * BUT IS A POINTER TO THE REAL THING. IF THE CALLER NEEDS A COPY,
55 * THEN IT SHOULD MAKE ONE! THE RETURNED STRING MUST NOT BE FREED.
57 ************************************************************************/
66 case CANNOT_READ_DIRECTORY_ERROR:
67 return((GETMESSAGE(30,1, "Cannot read from %s")));
68 case DIRECTORY_DATE_FORMAT:
69 return ((GETMESSAGE(30,2, "%b %d %H:%M:%S %Y")));
70 case FILE_RENAME_ERROR_TITLE:
71 return (GETMESSAGE(10, 1, "File Rename Error"));
72 case FILE_MANIPULATION_ERROR_TITLE:
73 return (GETMESSAGE(11, 6, "File Manipulation Error"));
74 case CANNOT_CONNECT_ERROR_1:
75 return((GETMESSAGE(30,3, "Cannot move or copy file %s from host %s.\nHost %s may not be properly mounted to your file system.")));
76 case CANNOT_CONNECT_ERROR_2:
77 return((GETMESSAGE(30,4, "Cannot move or copy file %1$s from host %2$s.\nHost %3$s may not be properly mounted to your file system.")));
79 return ((GETMESSAGE(30,5, "Cannot read %s")));
80 case CANT_WRITE_ERROR:
81 return ((GETMESSAGE(30,6, "Cannot write in folder %s")));
82 case CANT_CREATE_ERROR:
83 return ((GETMESSAGE(30,25, "Cannot create '%s'\n\nThe most common cause is that you do not have\nthe correct permissions for the involved\nfiles or folders.\n\nTo view permissions, select the object and\nthen select 'Change Permissions...' from the\nSelected or popup menu.")));
84 case CANT_DELETE_ERROR:
85 return ((GETMESSAGE(30,8, "Cannot delete %s")));
86 case CANT_OVERWRITE_ERROR:
87 return ((GETMESSAGE(30,9, "A folder or file with the name\n%s\nalready exists and cannot be overwritten.\nEnter a different name.")));
88 case ACTION_FT_HELP_TITLE:
89 return ((GETMESSAGE(30,10, "Description Of Filetype/Action")));
90 case FILES_FOUND_LABEL:
91 return (GETMESSAGE(15, 40, "Files Found (by Name):"));
92 case LOCAL_RENAME_ONLY_ERROR:
93 return ((GETMESSAGE(30,11, "You cannot specify a path as part of the filename.")));
94 case NO_DIR_ACCESS_ERROR:
95 return ((GETMESSAGE(30,12, "Invalid Find Information.\n\nThe following folder does not exist, or is not accessible:\n\n %s\n")));
96 case NO_FILES_FOUND_ERROR:
97 return (GETMESSAGE(15, 27, "No files were found that match the search data."));
98 case FIND_ERROR_TITLE:
99 return (GETMESSAGE(15,43, "Find Error"));
100 case FILE_COPY_ERROR_TITLE:
101 return (GETMESSAGE(10, 2, "File Copy Error"));
102 case NO_SPACES_ALLOWED_ERROR:
103 return (GETMESSAGE(10, 3, "Spaces are not allowed in a file or folder name."));
104 case MENU_OVERVIEW_LABEL:
105 return ((GETMESSAGE(30,13, "%s Overview")));
106 case MENU_TUTORIAL_LABEL:
107 return ((GETMESSAGE(30,14, "%s Tutorial")));
108 case MENU_ABOUT_LABEL:
109 return ((GETMESSAGE(30,15, "About %s")));
110 case FILE_MGR_MENU_NAME:
111 return ((GETMESSAGE(30,16, "File Manager")));
112 case CHANGE_DIR_ERROR_TITLE:
113 return (GETMESSAGE(2, 13, "Go To Error"));
114 case TRASH_ERROR_TITLE:
115 return (GETMESSAGE(27, 3, "Trash Can Error"));
116 case FILTER_EDIT_ID_STRING:
117 return ("filter_edit");
118 case FILTER_ACTIVE_ID_STRING:
119 return ("filter_active");
120 case UP_ONE_LEVEL_LABEL:
121 return ((GETMESSAGE(30,18, "(go up)")));
122 case ITEM_HELP_ERROR_TITLE:
123 return ((GETMESSAGE(30,19, "Help On Item Error")));
124 case ITEM_HELP_ERROR:
125 return ((GETMESSAGE(30,24, "You must select an object within the File Manager.\n'On Item' help only works within the application where\nyou launched it.")));
126 case AMITEM_HELP_ERROR:
127 return ((GETMESSAGE(30,26, "You must select an object within the Application Manager.\n'On Item' help only works within the application where\nyou launched it.")));
128 case FILE_MOVE_ERROR_TITLE:
129 return GETMESSAGE(30,21, "File Move Error");
130 case FILE_LINK_ERROR_TITLE:
131 return GETMESSAGE(30,22, "File Link Error");