Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed interpretation of the XPG internationalization standard that ignored -1, the standard error value returned by catopen, as the catalog argument. However, this same behavior causes segmentation faults with the musl C library. This patch: - Centralizes (with the exception of ToolTalk) all calls to catopen(), catgets(), and catclose() through MsgCat within the DtSvc library. - Prevents calls to catgets() and catclose() that rely upon undefined behavior. - Eliminates a number of bespoke catgets() wrappers, including multiple redundant caching implementations designed to work around a design peculiarity in HP/UX. - Eases building CDE without XPG internationalization support by providing the appropriate macros.
This commit is contained in:
committed by
Jon Trulson
parent
3379999106
commit
a6ea2a2d52
@@ -385,18 +385,18 @@ void AttachArea::setAttachmentsLabel( )
|
||||
|
||||
if((last_displayCount == 0 && displayCount == 1) ||
|
||||
(last_displayCount == 2 && displayCount == 1)) {
|
||||
sprintf(c, GETMSG(DT_catd, 12, 1, "Attachment"));
|
||||
sprintf(c, CATGETS(DT_catd, 12, 1, "Attachment"));
|
||||
XtVaSetValues(_attachments_label,
|
||||
XtVaTypedArg, XmNlabelString, XtRString, c, strlen(c)+1,
|
||||
NULL);
|
||||
} else if(last_displayCount == 1 && displayCount == 2) {
|
||||
sprintf(c, GETMSG(DT_catd, 12, 2, "Attachments"));
|
||||
sprintf(c, CATGETS(DT_catd, 12, 2, "Attachments"));
|
||||
XtVaSetValues(_attachments_label,
|
||||
XtVaTypedArg, XmNlabelString, XtRString, c, strlen(c)+1,
|
||||
NULL);
|
||||
}
|
||||
if(last_displayCount != displayCount) {
|
||||
sprintf(c, GETMSG(DT_catd, 12, 3, "displayCount"));
|
||||
sprintf(c, CATGETS(DT_catd, 12, 3, "displayCount"));
|
||||
XtVaSetValues(_no_attachments_label,
|
||||
XtVaTypedArg, XmNlabelString, XtRString, c, strlen(c)+1,
|
||||
NULL);
|
||||
@@ -610,9 +610,9 @@ AttachArea::addAttachment(
|
||||
bp = msg->newBodyPart(mail_error, lastAttBP);
|
||||
|
||||
if (SafeAccess(filename, F_OK) != 0) {
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 34, "%s does not exist."),
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 34, "%s does not exist."),
|
||||
filename);
|
||||
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 81, "Mailer"),
|
||||
answer = this->handleErrorDialog(CATGETS(DT_catd, 1, 81, "Mailer"),
|
||||
buf);
|
||||
delete [] buf;
|
||||
delete [] errormsg;
|
||||
@@ -623,33 +623,33 @@ AttachArea::addAttachment(
|
||||
|
||||
if(S_ISFIFO(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 12, 4, "Cannot attach FIFO files: %s"), filename);
|
||||
CATGETS(DT_catd, 12, 4, "Cannot attach FIFO files: %s"), filename);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISCHR(s.st_mode)) {
|
||||
sprintf(
|
||||
errormsg,
|
||||
GETMSG(DT_catd, 12, 5, "Cannot attach character special files: %s"), filename
|
||||
CATGETS(DT_catd, 12, 5, "Cannot attach character special files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISDIR(s.st_mode)) {
|
||||
sprintf(
|
||||
errormsg,
|
||||
GETMSG(DT_catd, 12, 6, "Cannot attach directories: %s"), filename
|
||||
CATGETS(DT_catd, 12, 6, "Cannot attach directories: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISBLK(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 12, 7, "Cannot attach block special files: %s"), filename
|
||||
CATGETS(DT_catd, 12, 7, "Cannot attach block special files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISSOCK(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 12, 8, "Cannot attach socket files: %s"), filename
|
||||
CATGETS(DT_catd, 12, 8, "Cannot attach socket files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
}
|
||||
if(validtype == FALSE) {
|
||||
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 81, "Mailer"),
|
||||
answer = this->handleErrorDialog(CATGETS(DT_catd, 1, 81, "Mailer"),
|
||||
errormsg,
|
||||
NULL);
|
||||
delete [] buf;
|
||||
@@ -660,9 +660,9 @@ AttachArea::addAttachment(
|
||||
fd = SafeOpen(filename, O_RDONLY);
|
||||
|
||||
if (fd < 0) {
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 35, "Unable to open %s."), filename);
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 35, "Unable to open %s."), filename);
|
||||
helpId = DTMAILHELPNOOPEN;
|
||||
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 82, "Mailer"),
|
||||
answer = this->handleErrorDialog(CATGETS(DT_catd, 1, 82, "Mailer"),
|
||||
buf,
|
||||
helpId);
|
||||
delete [] buf;
|
||||
@@ -686,9 +686,9 @@ AttachArea::addAttachment(
|
||||
|
||||
if (!buffer) {
|
||||
sprintf(buf, "%s",
|
||||
GETMSG(DT_catd, 3, 36, "Unable to allocate memory."));
|
||||
CATGETS(DT_catd, 3, 36, "Unable to allocate memory."));
|
||||
helpId = DTMAILHELPNOALLOCMEM;
|
||||
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 83, "Mailer"),
|
||||
answer = this->handleErrorDialog(CATGETS(DT_catd, 1, 83, "Mailer"),
|
||||
buf,
|
||||
helpId);
|
||||
return(NULL);
|
||||
@@ -1170,7 +1170,7 @@ AttachArea::addToRowOfAttachmentsStatus()
|
||||
// Size of first label
|
||||
|
||||
labelStr2 = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 3, 37, "Summary of attachments"));
|
||||
CATGETS(DT_catd, 3, 37, "Summary of attachments"));
|
||||
|
||||
|
||||
_attachments_summary = XtCreateManagedWidget("Attachments_Summary",
|
||||
@@ -1276,7 +1276,7 @@ AttachArea::attachment_summary(
|
||||
char * tmp2;
|
||||
|
||||
if ((live == 1) && (dead == 0)) {
|
||||
tmp1 = GETMSG(DT_catd, 3, 38, "attachment");
|
||||
tmp1 = CATGETS(DT_catd, 3, 38, "attachment");
|
||||
buf = new char[strlen(tmp1) + 64];
|
||||
sprintf(buf, "%d %s", live, tmp1);
|
||||
}
|
||||
@@ -1284,13 +1284,13 @@ AttachArea::attachment_summary(
|
||||
/* NL_COMMENT
|
||||
* "attachments" is the plural form of "attachment".
|
||||
*/
|
||||
tmp1 = GETMSG(DT_catd, 3, 39, "attachments");
|
||||
tmp1 = CATGETS(DT_catd, 3, 39, "attachments");
|
||||
buf = new char[strlen(tmp1) + 64];
|
||||
sprintf(buf, "%d %s", live, tmp1);
|
||||
}
|
||||
else if ((live >= 0) && (dead > 0)) {
|
||||
tmp1 = GETMSG(DT_catd, 3, 40, "attachments");
|
||||
tmp2 = GETMSG(DT_catd, 3, 41, "deleted");
|
||||
tmp1 = CATGETS(DT_catd, 3, 40, "attachments");
|
||||
tmp2 = CATGETS(DT_catd, 3, 41, "deleted");
|
||||
buf = new char[strlen(tmp1) + strlen(tmp2) + 64];
|
||||
sprintf(buf, "%d %s, %d %s", live, tmp1, dead, tmp2);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ void AttachAddCmd::doit()
|
||||
break;
|
||||
}
|
||||
XtVaSetValues(XtParent(fsdialog),
|
||||
XmNtitle, GETMSG(DT_catd, 14, 1, "Add Attachment"),
|
||||
XmNtitle, CATGETS(DT_catd, 14, 1, "Add Attachment"),
|
||||
NULL);
|
||||
XtManageChild(fsdialog);
|
||||
}
|
||||
@@ -208,7 +208,7 @@ void AttachAddCmd::add_file( char *filename )
|
||||
|
||||
if(stat(filename, &s) == -1) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 2, "Unable to open %s"),
|
||||
CATGETS(DT_catd, 14, 2, "Unable to open %s"),
|
||||
filename
|
||||
);
|
||||
|
||||
@@ -222,31 +222,31 @@ void AttachAddCmd::add_file( char *filename )
|
||||
|
||||
if(S_ISFIFO(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 3,
|
||||
CATGETS(DT_catd, 14, 3,
|
||||
"Cannot attach FIFO files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISCHR(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 4,
|
||||
CATGETS(DT_catd, 14, 4,
|
||||
"Cannot attach character special files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISDIR(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 5,
|
||||
CATGETS(DT_catd, 14, 5,
|
||||
"Cannot attach directories: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISBLK(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 6,
|
||||
CATGETS(DT_catd, 14, 6,
|
||||
"Cannot attach block special files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
} else if(S_ISSOCK(s.st_mode)) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 7,
|
||||
CATGETS(DT_catd, 14, 7,
|
||||
"Cannot attach socket files: %s"), filename
|
||||
);
|
||||
validtype = FALSE;
|
||||
@@ -263,7 +263,7 @@ void AttachAddCmd::add_file( char *filename )
|
||||
fd = open(filename, O_RDONLY);
|
||||
if(fd == -1) {
|
||||
sprintf(errormsg,
|
||||
GETMSG(DT_catd, 14, 8,
|
||||
CATGETS(DT_catd, 14, 8,
|
||||
"Unable to open %s"),filename
|
||||
);
|
||||
|
||||
@@ -352,7 +352,7 @@ void AttachFetchCmd::doit()
|
||||
// // If contents is NULL then we were unable to get the contents
|
||||
// if(contents == NULL) {
|
||||
// sprintf(error,
|
||||
// GETMSG(DT_catd, 14, 9,
|
||||
// CATGETS(DT_catd, 14, 9,
|
||||
// "File contents unavailable: %s"),
|
||||
// list[i]->getLabel()
|
||||
// );
|
||||
@@ -460,7 +460,7 @@ AttachRenameCmd::AttachRenameCmd ( AttachArea *attachArea,
|
||||
XtVaSetValues(renameDialog, XmNselectionLabelString, message, NULL);
|
||||
XmStringFree(message);
|
||||
XtVaSetValues(XtParent(renameDialog),
|
||||
XmNtitle, GETMSG(DT_catd, 14, 9, "Mailer - Rename Attachment"),
|
||||
XmNtitle, CATGETS(DT_catd, 14, 9, "Mailer - Rename Attachment"),
|
||||
NULL);
|
||||
XtUnmanageChild(
|
||||
XmSelectionBoxGetChild(renameDialog, XmDIALOG_HELP_BUTTON)
|
||||
@@ -518,7 +518,7 @@ void AttachRenameCmd::ok( XtPointer callData )
|
||||
|
||||
if(_attachArea->getIconSelectedCount() != 1) {
|
||||
// theInfoDialogManager->post(
|
||||
// GETMSG(DT_catd, 14, 12,
|
||||
// CATGETS(DT_catd, 14, 12,
|
||||
// "Please select only one attachment to rename"),
|
||||
// (void *)NULL,
|
||||
// okcb);
|
||||
@@ -552,7 +552,7 @@ AttachDescriptionCmd::AttachDescriptionCmd ( AttachArea *attachArea,
|
||||
XtVaSetValues(descriptionDialog, XmNselectionLabelString, message, NULL);
|
||||
XmStringFree(message);
|
||||
XtVaSetValues(XtParent(descriptionDialog),
|
||||
XmNtitle, GETMSG(DT_catd, 14, 10, "Description"),
|
||||
XmNtitle, CATGETS(DT_catd, 14, 10, "Description"),
|
||||
NULL);
|
||||
XtUnmanageChild(XmSelectionBoxGetChild(descriptionDialog, XmDIALOG_HELP_BUTTON));
|
||||
_attachArea->setDescriptionDialog(descriptionDialog);
|
||||
@@ -620,7 +620,7 @@ void AttachDescriptionCmd::ok( XtPointer callData )
|
||||
|
||||
if(_attachArea->getIconSelectedCount() != 1) {
|
||||
// theInfoDialogManager->post(
|
||||
// GETMSG(DT_catd, 14, 12,
|
||||
// CATGETS(DT_catd, 14, 12,
|
||||
// "Please select only one attachment to describe"),
|
||||
// (void *)NULL,
|
||||
// okcb);
|
||||
@@ -694,7 +694,7 @@ void AttachSaveAsCmd::doit()
|
||||
break;
|
||||
}
|
||||
XtVaSetValues(XtParent(fsdialog),
|
||||
XmNtitle, GETMSG(DT_catd, 14, 11, "Save Attachment As"),
|
||||
XmNtitle, CATGETS(DT_catd, 14, 11, "Save Attachment As"),
|
||||
NULL);
|
||||
XtManageChild(fsdialog);
|
||||
}
|
||||
@@ -754,7 +754,7 @@ void ConfirmCallback( XtPointer)
|
||||
// break;
|
||||
// case ROAM_UNAVAILABLE:
|
||||
// // theInfoDialogManager->post(
|
||||
// // GETMSG(DT_catd, 14, 15, "File Contents Unavailable"),
|
||||
// // CATGETS(DT_catd, 14, 15, "File Contents Unavailable"),
|
||||
// // (void *)NULL,
|
||||
// // (DialogCallback)okcb);
|
||||
// return;
|
||||
@@ -813,13 +813,13 @@ void AttachSaveAsCmd::ok( XtPointer callData )
|
||||
// // to a single existing file then we barf!
|
||||
// if(_attachArea->getIconSelectedCount() != 1) {
|
||||
// sprintf(error,
|
||||
// GETMSG(DT_catd, 14, 16, "Cannot create"));
|
||||
// CATGETS(DT_catd, 14, 16, "Cannot create"));
|
||||
// sfs = CONFIRM;
|
||||
// } else {
|
||||
// // The file already exists
|
||||
// completefilename = dirname;
|
||||
// sprintf(error,
|
||||
// GETMSG(DT_catd, 14, 17,
|
||||
// CATGETS(DT_catd, 14, 17,
|
||||
// "File %s exists. Overwrite?"),
|
||||
// completefilename);
|
||||
// sfs = CONFIRM;
|
||||
@@ -831,7 +831,7 @@ void AttachSaveAsCmd::ok( XtPointer callData )
|
||||
// if(stat(buf, &s) != -1) { // The file exists
|
||||
// if(S_ISREG(s.st_mode)) {
|
||||
// sprintf(error,
|
||||
// GETMSG(DT_catd, 14, 18,
|
||||
// CATGETS(DT_catd, 14, 18,
|
||||
// "File %s exists. Overwrite?"),
|
||||
// completefilename);
|
||||
// sfs = CONFIRM;
|
||||
@@ -839,7 +839,7 @@ void AttachSaveAsCmd::ok( XtPointer callData )
|
||||
// // We're trying to overwrite something other
|
||||
// // than a regular file. FAIL!
|
||||
// sprintf(error,
|
||||
// GETMSG(14, 19, "Cannot create"));
|
||||
// CATGETS(14, 19, "Cannot create"));
|
||||
// sfs = CONFIRM;
|
||||
// }
|
||||
// }
|
||||
@@ -847,7 +847,7 @@ void AttachSaveAsCmd::ok( XtPointer callData )
|
||||
// // The file already exists but is not a regular file
|
||||
// completefilename = dirname;
|
||||
// sprintf(error,
|
||||
// GETMSG(
|
||||
// CATGETS(
|
||||
// DT_catd, 14, 20, "Cannot create %s"), completefilename);
|
||||
// sfs = ERR;
|
||||
// }
|
||||
@@ -894,7 +894,7 @@ void AttachSaveAsCmd::ok( XtPointer callData )
|
||||
// break;
|
||||
// case ROAM_UNAVAILABLE:
|
||||
// // theInfoDialogManager->post(
|
||||
// // GETMSG(DT_catd, 14. 21, "File Contents Unavailable"),
|
||||
// // CATGETS(DT_catd, 14. 21, "File Contents Unavailable"),
|
||||
// // (void *)NULL, (DialogCallback)okcb);
|
||||
// return;
|
||||
// }
|
||||
|
||||
@@ -458,10 +458,10 @@ Attachment::invokeAction(int index)
|
||||
char *buf = new char[2048];
|
||||
|
||||
sprintf(buf, "%s",
|
||||
GETMSG(DT_catd, 3, 81, "This attachment may contain commands that can cause serious\ndamage. It is recommended that you only execute it after you\nare certain it is safe to do so.\n\nPress OK if you are certain it is safe,\nCancel to cancel execution."));
|
||||
CATGETS(DT_catd, 3, 81, "This attachment may contain commands that can cause serious\ndamage. It is recommended that you only execute it after you\nare certain it is safe to do so.\n\nPress OK if you are certain it is safe,\nCancel to cancel execution."));
|
||||
|
||||
answer = parent()->handleQuestionDialog(
|
||||
GETMSG(DT_catd, 1, 86, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 86, "Mailer"),
|
||||
buf,
|
||||
DTMAILHELPEXECUTEOK);
|
||||
delete [] buf;
|
||||
@@ -600,11 +600,11 @@ Attachment::saveToFile(DtMailEnv &, char *filename)
|
||||
|
||||
if (SafeAccess(filename, F_OK) == 0) {
|
||||
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 42, "%s already exists. Replace?"),
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 42, "%s already exists. Replace?"),
|
||||
filename);
|
||||
helpId = DTMAILHELPALREADYEXISTS;
|
||||
|
||||
answer = parent()->handleQuestionDialog(GETMSG(DT_catd,
|
||||
answer = parent()->handleQuestionDialog(CATGETS(DT_catd,
|
||||
1, 85,
|
||||
"Mailer"),
|
||||
buf,
|
||||
@@ -616,9 +616,9 @@ Attachment::saveToFile(DtMailEnv &, char *filename)
|
||||
}
|
||||
|
||||
if (unlink(filename) < 0) {
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 43, "Unable to replace %s."), filename);
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 43, "Unable to replace %s."), filename);
|
||||
helpId = DTMAILHELPNOREPLACE;
|
||||
answer = parent()->handleErrorDialog(GETMSG(DT_catd,
|
||||
answer = parent()->handleErrorDialog(CATGETS(DT_catd,
|
||||
1, 86,
|
||||
"Mailer"),
|
||||
buf,
|
||||
@@ -642,9 +642,9 @@ Attachment::saveToFile(DtMailEnv &, char *filename)
|
||||
//
|
||||
int fd = SafeOpen(filename, O_RDWR | O_CREAT | O_TRUNC, 0600);
|
||||
if (fd < 0) {
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 44, "Unable to create %s."), filename);
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 44, "Unable to create %s."), filename);
|
||||
helpId = DTMAILHELPNOCREATE;
|
||||
answer = parent()->handleErrorDialog(GETMSG(DT_catd, 1, 87, "Mailer"),
|
||||
answer = parent()->handleErrorDialog(CATGETS(DT_catd, 1, 87, "Mailer"),
|
||||
buf,
|
||||
helpId);
|
||||
delete [] buf;
|
||||
@@ -652,10 +652,10 @@ Attachment::saveToFile(DtMailEnv &, char *filename)
|
||||
}
|
||||
|
||||
if (SafeWrite(fd, _myContents, (unsigned int)_myContentsSize) < _myContentsSize) {
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 45, "Unable to create %s."),
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 45, "Unable to create %s."),
|
||||
filename);
|
||||
helpId = DTMAILHELPNOCREATE;
|
||||
answer = parent()->handleErrorDialog(GETMSG(DT_catd, 1, 88, "Mailer"),
|
||||
answer = parent()->handleErrorDialog(CATGETS(DT_catd, 1, 88, "Mailer"),
|
||||
buf,
|
||||
helpId);
|
||||
SafeClose(fd);
|
||||
@@ -887,10 +887,10 @@ Attachment::action(
|
||||
* Post a dialog explaining that the action was invalid
|
||||
*/
|
||||
sprintf(buf, "%s",
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd, 3, 91, "Cannot execute invalid action."));
|
||||
|
||||
answer = parent()->handleErrorDialog(GETMSG(DT_catd, 1, 86, "Mailer"),
|
||||
answer = parent()->handleErrorDialog(CATGETS(DT_catd, 1, 86, "Mailer"),
|
||||
buf);
|
||||
|
||||
unregisterAction(id);
|
||||
@@ -902,9 +902,9 @@ Attachment::action(
|
||||
* Post a dialog explaining that the action failed.
|
||||
*/
|
||||
sprintf(buf, "%s",
|
||||
GETMSG(DT_catd, 3, 92, "Executing action failed!"));
|
||||
CATGETS(DT_catd, 3, 92, "Executing action failed!"));
|
||||
|
||||
answer = parent()->handleErrorDialog(GETMSG(DT_catd, 1, 86, "Mailer"),
|
||||
answer = parent()->handleErrorDialog(CATGETS(DT_catd, 1, 86, "Mailer"),
|
||||
buf);
|
||||
|
||||
unregisterAction(id);
|
||||
|
||||
@@ -238,7 +238,7 @@ ComposeFamily::Display_entire_msg(DtMailMessageHandle msgno,
|
||||
char *att;
|
||||
Editor *editor = compose->get_editor()->textEditor();
|
||||
|
||||
att = GETMSG(
|
||||
att = CATGETS(
|
||||
DT_catd, 1, 255,
|
||||
"------------------ Attachments ------------------\n");
|
||||
|
||||
@@ -348,8 +348,8 @@ ComposeCmd::doit()
|
||||
if (newsend == NULL) {
|
||||
DtMailGenDialog * dialog = _parent->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 203, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 204, "Unable to create a compose window."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 203, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 204, "Unable to create a compose window."));
|
||||
char * helpId = DTMAILHELPNOCOMPOSE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
}
|
||||
@@ -387,8 +387,8 @@ ForwardCmd::doit()
|
||||
if ( newsend == NULL ) {
|
||||
DtMailGenDialog * dialog = _parent->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 205, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 206, "Unable to create a compose window."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 205, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 206, "Unable to create a compose window."));
|
||||
char * helpId = DTMAILHELPNOCOMPOSE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
}
|
||||
@@ -469,8 +469,8 @@ ReplyCmd::doit()
|
||||
if ( newsend == NULL ) {
|
||||
DtMailGenDialog * dialog = _parent->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 207, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 208, "Unable to create a compose window."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 207, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 208, "Unable to create a compose window."));
|
||||
char * helpId = DTMAILHELPNOCOMPOSE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
}
|
||||
@@ -613,8 +613,8 @@ ReplyAllCmd::doit()
|
||||
if ( newsend == NULL ) {
|
||||
dialog = _parent->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 209, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 210, "Unable to create a compose window."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 209, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 210, "Unable to create a compose window."));
|
||||
char * helpId = DTMAILHELPNOCOMPOSE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
}
|
||||
@@ -768,8 +768,8 @@ TemplateCmd::doit()
|
||||
//
|
||||
int fd = SafeOpen(fullpath, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 211, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 212, "The template does not exist."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 211, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 212, "The template does not exist."));
|
||||
char * helpId = DTMAILHELPNOTEMPLATE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
free(fullpath);
|
||||
@@ -778,8 +778,8 @@ TemplateCmd::doit()
|
||||
|
||||
struct stat buf;
|
||||
if (SafeFStat(fd, &buf) < 0) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 213, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 214, "The template appears to be corrupt."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 213, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 214, "The template appears to be corrupt."));
|
||||
char * helpId = DTMAILHELPCORRUPTTEMPLATE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
@@ -798,8 +798,8 @@ TemplateCmd::doit()
|
||||
free_buf = 1;
|
||||
mbuf.buffer = new char[mbuf.size];
|
||||
if (mbuf.buffer == NULL) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 215, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 216, "There is not enough memory to load the template."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 215, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 216, "There is not enough memory to load the template."));
|
||||
char * helpId = DTMAILHELPNOMEMTEMPLATE;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
@@ -808,8 +808,8 @@ TemplateCmd::doit()
|
||||
}
|
||||
|
||||
if (SafeRead(fd, mbuf.buffer, (unsigned int)mbuf.size) < mbuf.size) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 1, 217, "Mailer"),
|
||||
GETMSG(DT_catd, 1, 218, "The template appears to be corrupt."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 1, 217, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 218, "The template appears to be corrupt."));
|
||||
char * helpId = DTMAILHELPERROR;
|
||||
int answer = dialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
|
||||
@@ -214,13 +214,13 @@ DmxPrintJob::cancel(void)
|
||||
"Dialog",
|
||||
_parent->baseWidget());
|
||||
char *errMsg =
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd, 21, 23,
|
||||
"The X Print Server is temporarily out of resources.");
|
||||
|
||||
genDialog->setToErrorDialog(GETMSG(DT_catd, 1, 6, "Mailer"),
|
||||
genDialog->setToErrorDialog(CATGETS(DT_catd, 1, 6, "Mailer"),
|
||||
errMsg);
|
||||
genDialog->post_and_return(GETMSG(DT_catd, 3, 9, "OK"), NULL);
|
||||
genDialog->post_and_return(CATGETS(DT_catd, 3, 9, "OK"), NULL);
|
||||
delete genDialog;
|
||||
|
||||
theRoamApp.setErrorPrintDisplay(NULL);
|
||||
@@ -416,19 +416,19 @@ DmxPrintJob::createOutputWidgets (void)
|
||||
char *errMsg = (char *) XtMalloc(1024);
|
||||
char *i18nMsg;
|
||||
|
||||
i18nMsg = GETMSG(
|
||||
i18nMsg = CATGETS(
|
||||
DT_catd, 21, 2,
|
||||
"One of the following margin specifiers \n has incorrect syntax: \n %s \n %s \n %s \n %s \nContinue using default margins?"
|
||||
);
|
||||
|
||||
sprintf(errMsg, i18nMsg, top, right, bottom, left);
|
||||
genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 21, 3, "Mailer"),
|
||||
CATGETS(DT_catd, 21, 3, "Mailer"),
|
||||
errMsg);
|
||||
XtFree(errMsg);
|
||||
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 21, 4, "OK"),
|
||||
CATGETS(DT_catd, 21, 4, "OK"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
}
|
||||
@@ -471,7 +471,7 @@ DmxPrintJob::doPrint (void)
|
||||
//
|
||||
if (_parent != NULL) {
|
||||
char *buf = new char[1024];
|
||||
char *msg = GETMSG(DT_catd, 21, 1, "Printing %s ...");
|
||||
char *msg = CATGETS(DT_catd, 21, 1, "Printing %s ...");
|
||||
sprintf(buf, msg, _filename);
|
||||
_parent->setStatus(buf);
|
||||
|
||||
@@ -526,7 +526,7 @@ DmxPrintJob::doPrint (void)
|
||||
XFlush(XtDisplay(_pshell));
|
||||
|
||||
genDialog = new DtMailGenDialog("Dialog", w);
|
||||
appmessage = (char *) GETMSG(
|
||||
appmessage = (char *) CATGETS(
|
||||
DT_catd, 21, 14,
|
||||
"'Print to File' was unsuccessful.");
|
||||
|
||||
@@ -548,11 +548,11 @@ DmxPrintJob::doPrint (void)
|
||||
}
|
||||
|
||||
genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 21, 3, "Mailer"),
|
||||
CATGETS(DT_catd, 21, 3, "Mailer"),
|
||||
message);
|
||||
#if 0
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 21, 4, "OK"),
|
||||
CATGETS(DT_catd, 21, 4, "OK"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
#else
|
||||
@@ -887,7 +887,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
char *hdrstr = msg->getMessageHeader(DMXCC);
|
||||
|
||||
format = GETMSG(DT_catd, 21, 5, "Cc: %s");
|
||||
format = CATGETS(DT_catd, 21, 5, "Cc: %s");
|
||||
buf = (char *) malloc(strlen(format) + strlen(hdrstr) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, hdrstr);
|
||||
@@ -899,7 +899,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
char *hdrstr = msg->getMessageHeader(DMXDATE);
|
||||
|
||||
format = GETMSG(DT_catd, 21, 6, "Date: %s");
|
||||
format = CATGETS(DT_catd, 21, 6, "Date: %s");
|
||||
buf = (char *) malloc(strlen(format) + strlen(hdrstr) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, hdrstr);
|
||||
@@ -911,7 +911,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
char *hdrstr = msg->getMessageHeader(DMXFROM);
|
||||
|
||||
format = GETMSG(DT_catd, 21, 7, "From: %s");
|
||||
format = CATGETS(DT_catd, 21, 7, "From: %s");
|
||||
buf = (char *) malloc(strlen(format) + strlen(hdrstr) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, hdrstr);
|
||||
@@ -923,7 +923,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
char *hdrstr = msg->getMessageHeader(DMXSUBJ);
|
||||
|
||||
format = GETMSG(DT_catd, 21, 8, "Subject: %s");
|
||||
format = CATGETS(DT_catd, 21, 8, "Subject: %s");
|
||||
buf = (char *) malloc(strlen(format) + strlen(hdrstr) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, hdrstr);
|
||||
@@ -935,7 +935,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
char *hdrstr = msg->getMessageHeader(DMXTO);
|
||||
|
||||
format = GETMSG(DT_catd, 21, 9, "To: %s");
|
||||
format = CATGETS(DT_catd, 21, 9, "To: %s");
|
||||
buf = (char *) malloc(strlen(format) + strlen(hdrstr) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, hdrstr);
|
||||
@@ -948,7 +948,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
// Allocate space for the format and the translated page number.
|
||||
//
|
||||
{
|
||||
format = GETMSG(DT_catd, 21, 10, "Page %d of %d");
|
||||
format = CATGETS(DT_catd, 21, 10, "Page %d of %d");
|
||||
buf = (char *) malloc(strlen(format) + 16);
|
||||
if (buf != (char *) NULL)
|
||||
sprintf(buf, format, _spool_npages_done, _spool_npages_total);
|
||||
@@ -961,7 +961,7 @@ DmxPrintJob::getPageHeaderString(
|
||||
{
|
||||
struct passwd *pw;
|
||||
|
||||
format = GETMSG(DT_catd, 21, 11, "Mail For: %s");
|
||||
format = CATGETS(DT_catd, 21, 11, "Mail For: %s");
|
||||
pw = getpwuid(getuid());
|
||||
buf = (char *) malloc(strlen(format) + strlen(pw->pw_name) + 1);
|
||||
if (buf != (char *) NULL)
|
||||
@@ -996,14 +996,14 @@ DmxPrintJob::finishedPrintToFile(
|
||||
{
|
||||
DtMailGenDialog *genDialog = new DtMailGenDialog("Dialog", w);
|
||||
|
||||
message = (char *) GETMSG(
|
||||
message = (char *) CATGETS(
|
||||
DT_catd, 21, 14,
|
||||
"'Print to File' was unsuccessful.");
|
||||
genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 21, 3, "Mailer"),
|
||||
CATGETS(DT_catd, 21, 3, "Mailer"),
|
||||
message);
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 21, 4, "OK"),
|
||||
CATGETS(DT_catd, 21, 4, "OK"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
}
|
||||
@@ -1011,15 +1011,15 @@ DmxPrintJob::finishedPrintToFile(
|
||||
{
|
||||
DtMailGenDialog *genDialog = new DtMailGenDialog("Dialog", w);
|
||||
|
||||
message = (char *) GETMSG(
|
||||
message = (char *) CATGETS(
|
||||
DT_catd, 21, 15,
|
||||
"'Print to File' completed successfully");
|
||||
|
||||
genDialog->setToWarningDialog(
|
||||
GETMSG(DT_catd, 21, 3, "Mailer"),
|
||||
CATGETS(DT_catd, 21, 3, "Mailer"),
|
||||
message);
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 21, 4, "OK"),
|
||||
CATGETS(DT_catd, 21, 4, "OK"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
}
|
||||
@@ -1084,7 +1084,7 @@ DmxPrintJob::pdmNotificationCB(
|
||||
case XmCR_PDM_START_ERROR:
|
||||
case XmCR_PDM_START_VXAUTH:
|
||||
case XmCR_PDM_START_PXAUTH:
|
||||
message = (char *) GETMSG(
|
||||
message = (char *) CATGETS(
|
||||
DT_catd, 21, 24,
|
||||
"Print Dialog Manager error - setup failed.");
|
||||
break;
|
||||
@@ -1099,10 +1099,10 @@ DmxPrintJob::pdmNotificationCB(
|
||||
"Dialog",
|
||||
thisJob->_parent->baseWidget());
|
||||
genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 21, 3, "Mailer"),
|
||||
CATGETS(DT_catd, 21, 3, "Mailer"),
|
||||
message);
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 21, 25, "Continue"),
|
||||
CATGETS(DT_catd, 21, 25, "Continue"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ DmxPrintOptions::DmxPrintOptions (
|
||||
for (i=0; i<nitems; i++)
|
||||
{
|
||||
data[i] = (void*) hdrftr_values[i].prop_string;
|
||||
strings[i] = GETMSG(
|
||||
strings[i] = CATGETS(
|
||||
DT_catd,
|
||||
hdrftr_values[i].set_id,
|
||||
hdrftr_values[i].msg_id,
|
||||
@@ -338,7 +338,7 @@ DmxPrintOptions::DmxPrintOptions (
|
||||
for (i=0; i<nitems; i++)
|
||||
{
|
||||
data[i] = (void*) prthdr_values[i].prop_string;
|
||||
strings[i] = GETMSG(
|
||||
strings[i] = CATGETS(
|
||||
DT_catd,
|
||||
prthdr_values[i].set_id,
|
||||
prthdr_values[i].msg_id,
|
||||
@@ -348,7 +348,7 @@ DmxPrintOptions::DmxPrintOptions (
|
||||
|
||||
iom = new IndexedOptionMenu(_form, nitems, (char**) strings, data);
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 25, 1, "Printed Message Headers: ")
|
||||
CATGETS(DT_catd, 25, 1, "Printed Message Headers: ")
|
||||
);
|
||||
XtVaSetValues(
|
||||
iom->baseWidget(),
|
||||
@@ -387,7 +387,7 @@ DmxPrintOptions::DmxPrintOptions (
|
||||
for (i=0; i<nitems; i++)
|
||||
{
|
||||
data[i] = (void*) msgsep_values[i].prop_string;
|
||||
strings[i] = GETMSG(
|
||||
strings[i] = CATGETS(
|
||||
DT_catd,
|
||||
msgsep_values[i].set_id,
|
||||
msgsep_values[i].msg_id,
|
||||
@@ -397,7 +397,7 @@ DmxPrintOptions::DmxPrintOptions (
|
||||
|
||||
iom = new IndexedOptionMenu(_form, nitems, (char**) strings, data);
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG( DT_catd, 25, 2, "Separate Multiple Messages With: ")
|
||||
CATGETS( DT_catd, 25, 2, "Separate Multiple Messages With: ")
|
||||
);
|
||||
XtVaSetValues(
|
||||
iom->baseWidget(),
|
||||
@@ -703,19 +703,19 @@ DmxPrintOptions::isValidMarginSpec(PropUiItem* pui, void* data)
|
||||
{
|
||||
case DTPRINT_OPTION_MARGIN_TOP:
|
||||
i18nMsg =
|
||||
GETMSG(DT_catd, 26, 1, "Top Margin specifier is invalid: ");
|
||||
CATGETS(DT_catd, 26, 1, "Top Margin specifier is invalid: ");
|
||||
break;
|
||||
case DTPRINT_OPTION_MARGIN_RIGHT:
|
||||
i18nMsg =
|
||||
GETMSG(DT_catd, 26, 2, "Right Margin specifier is invalid: ");
|
||||
CATGETS(DT_catd, 26, 2, "Right Margin specifier is invalid: ");
|
||||
break;
|
||||
case DTPRINT_OPTION_MARGIN_BOTTOM:
|
||||
i18nMsg =
|
||||
GETMSG(DT_catd, 26, 3, "Bottom Margin specifier is invalid: ");
|
||||
CATGETS(DT_catd, 26, 3, "Bottom Margin specifier is invalid: ");
|
||||
break;
|
||||
case DTPRINT_OPTION_MARGIN_LEFT:
|
||||
i18nMsg =
|
||||
GETMSG(DT_catd, 26, 4, "Left Margin specifier is invalid: ");
|
||||
CATGETS(DT_catd, 26, 4, "Left Margin specifier is invalid: ");
|
||||
break;
|
||||
}
|
||||
errMsg = (char*) XtMalloc(strlen(i18nMsg) + strlen(marginSpec) + 1);
|
||||
|
||||
@@ -286,7 +286,7 @@ DmxPrintSetup::attachPrintSetupDialog (void)
|
||||
dialog = XtParent(_dtprint_setup);
|
||||
if (NULL != dialog && XtIsShell(dialog))
|
||||
{
|
||||
char *title = (char*) GETMSG(DT_catd, 21, 21, "Mailer - Print Setup");
|
||||
char *title = (char*) CATGETS(DT_catd, 21, 21, "Mailer - Print Setup");
|
||||
XtVaSetValues(dialog, XmNtitle, title, NULL);
|
||||
}
|
||||
else
|
||||
@@ -339,7 +339,7 @@ DmxPrintSetup::createPrintSetupDialog (Widget parent)
|
||||
widgets->dtprint_setup,
|
||||
NULL);
|
||||
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 21, 12, "Print Separately"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 21, 12, "Print Separately"));
|
||||
widgets->print_separately_tb = XtVaCreateManagedWidget(
|
||||
"PrintSeparatelyTB",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -351,7 +351,7 @@ DmxPrintSetup::createPrintSetupDialog (Widget parent)
|
||||
NULL);
|
||||
XmStringFree(xms);
|
||||
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 21, 13, "Use Word Wrap"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 21, 13, "Use Word Wrap"));
|
||||
widgets->use_word_wrap_tb = XtVaCreateManagedWidget(
|
||||
"UseWordWrapTB",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -365,7 +365,7 @@ DmxPrintSetup::createPrintSetupDialog (Widget parent)
|
||||
NULL);
|
||||
XmStringFree(xms);
|
||||
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 21, 20, "More ..."));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 21, 20, "More ..."));
|
||||
widgets->more_options_pb = XtVaCreateManagedWidget(
|
||||
"PrintOptionsPB",
|
||||
xmPushButtonWidgetClass,
|
||||
|
||||
@@ -786,10 +786,10 @@ CDEM_DtWidgetEditor::modifyData(
|
||||
{
|
||||
|
||||
if( !begin_ins_bracket)
|
||||
begin_ins_bracket = GETMSG(DT_catd, 1, 201,
|
||||
begin_ins_bracket = CATGETS(DT_catd, 1, 201,
|
||||
"\n------------- Begin Included Message -------------\n");
|
||||
if(!end_ins_bracket)
|
||||
end_ins_bracket = GETMSG(DT_catd, 1, 202,
|
||||
end_ins_bracket = CATGETS(DT_catd, 1, 202,
|
||||
"\n------------- End Included Message -------------\n");
|
||||
|
||||
size_t begin_len = strlen(begin_ins_bracket);
|
||||
|
||||
@@ -236,7 +236,7 @@ DtMailGenDialog::okCallback(Widget w, XtPointer clientData, XtPointer cbs)
|
||||
obj->setToAboutDialog();
|
||||
// char * helpId = "About";
|
||||
char * helpId = NULL;
|
||||
int answer = obj->post_and_return(GETMSG(DT_catd, 1, 180, "OK"),
|
||||
int answer = obj->post_and_return(CATGETS(DT_catd, 1, 180, "OK"),
|
||||
helpId);
|
||||
}
|
||||
}
|
||||
@@ -441,8 +441,8 @@ DtMailGenDialog::post_and_return(char *helpId)
|
||||
// They may have been set via the overloaded post_and_return()
|
||||
// method before. Reset them to their default values...
|
||||
|
||||
okLabel = XmStringCreateLocalized(GETMSG(DT_catd, 1, 181, "OK"));
|
||||
cancelLabel = XmStringCreateLocalized(GETMSG(DT_catd, 1, 182, "Cancel"));
|
||||
okLabel = XmStringCreateLocalized(CATGETS(DT_catd, 1, 181, "OK"));
|
||||
cancelLabel = XmStringCreateLocalized(CATGETS(DT_catd, 1, 182, "Cancel"));
|
||||
|
||||
// Make sure the dialog exists, and that it is an XmMessageBox
|
||||
// or subclass, since the callbacks assume this widget type
|
||||
@@ -807,8 +807,8 @@ DtMailGenDialog::setToAboutDialog(void)
|
||||
if (NULL == ABOUT_TITLE) {
|
||||
char *version;
|
||||
|
||||
ABOUT_TITLE = GETMSG(DT_catd, 1, 235, "Mailer - About Mailer");
|
||||
version = GETMSG(DT_catd, 1, 236, "Mailer Version %d.%d.%d");
|
||||
ABOUT_TITLE = CATGETS(DT_catd, 1, 235, "Mailer - About Mailer");
|
||||
version = CATGETS(DT_catd, 1, 236, "Mailer Version %d.%d.%d");
|
||||
|
||||
DTMAIL_VERSION = new char [strlen(version) + 16];
|
||||
sprintf(
|
||||
|
||||
@@ -109,12 +109,12 @@ Editor::set_message(DtMail::Message * msg,
|
||||
char * ins_bracket;
|
||||
switch (brackets) {
|
||||
case BF_FORWARD:
|
||||
ins_bracket = GETMSG(DT_catd, 1, 195, "------------- Begin Forwarded Message -------------\n\n");
|
||||
ins_bracket = CATGETS(DT_catd, 1, 195, "------------- Begin Forwarded Message -------------\n\n");
|
||||
break;
|
||||
|
||||
case BF_INCLUDE:
|
||||
default:
|
||||
ins_bracket = GETMSG(DT_catd, 1, 196, "------------- Begin Included Message -------------\n\n");
|
||||
ins_bracket = CATGETS(DT_catd, 1, 196, "------------- Begin Included Message -------------\n\n");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ Editor::set_message(DtMail::Message * msg,
|
||||
// of text checksums more.
|
||||
//
|
||||
//if (bp->checksum(error) == DtMailCheckBad) {
|
||||
// *status_string = GETMSG(DT_catd, 1, -1, "Digital signature did not match.");
|
||||
// *status_string = CATGETS(DT_catd, 1, -1, "Digital signature did not match.");
|
||||
//}
|
||||
}
|
||||
delete [] line;
|
||||
@@ -274,12 +274,12 @@ Editor::set_message(DtMail::Message * msg,
|
||||
char * ins_bracket;
|
||||
switch (brackets) {
|
||||
case BF_FORWARD:
|
||||
ins_bracket = GETMSG(DT_catd, 1, 197, "------------- End Forwarded Message -------------\n\n");
|
||||
ins_bracket = CATGETS(DT_catd, 1, 197, "------------- End Forwarded Message -------------\n\n");
|
||||
break;
|
||||
|
||||
case BF_INCLUDE:
|
||||
default:
|
||||
ins_bracket = GETMSG(DT_catd, 1, 198, "------------- End Included Message -------------\n\n");
|
||||
ins_bracket = CATGETS(DT_catd, 1, 198, "------------- End Included Message -------------\n\n");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -327,7 +327,7 @@ Editor::set_attachment(
|
||||
if ((format == IF_BRACKETED) && (brackets == BF_INCLUDE))
|
||||
{
|
||||
char * ins_bracket =
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd, 1, 249,
|
||||
"------------- Begin Included Attachment -------------\n\n");
|
||||
|
||||
@@ -345,7 +345,7 @@ Editor::set_attachment(
|
||||
{
|
||||
if (NULL != indent_str)
|
||||
append_to_contents(indent_str, strlen(indent_str));
|
||||
input = GETMSG(DT_catd, 1, 251, " Attachment Name: ");
|
||||
input = CATGETS(DT_catd, 1, 251, " Attachment Name: ");
|
||||
append_to_contents(input, strlen(input));
|
||||
append_to_contents(name, strlen(name));
|
||||
append_newline_to_contents();
|
||||
@@ -355,7 +355,7 @@ Editor::set_attachment(
|
||||
{
|
||||
if (NULL != indent_str)
|
||||
append_to_contents(indent_str, strlen(indent_str));
|
||||
input = GETMSG(DT_catd, 1, 252, " Attachment DtType: ");
|
||||
input = CATGETS(DT_catd, 1, 252, " Attachment DtType: ");
|
||||
append_to_contents(input, strlen(input));
|
||||
append_to_contents(dttype, strlen(dttype));
|
||||
append_newline_to_contents();
|
||||
@@ -366,7 +366,7 @@ Editor::set_attachment(
|
||||
{
|
||||
if (NULL != indent_str)
|
||||
append_to_contents(indent_str, strlen(indent_str));
|
||||
input = GETMSG(DT_catd, 1, 253, "Attachment ContentType: ");
|
||||
input = CATGETS(DT_catd, 1, 253, "Attachment ContentType: ");
|
||||
append_to_contents(input, strlen(input));
|
||||
append_to_contents(mimetype, strlen(mimetype));
|
||||
append_newline_to_contents();
|
||||
@@ -376,7 +376,7 @@ Editor::set_attachment(
|
||||
{
|
||||
if (NULL != indent_str)
|
||||
append_to_contents(indent_str, strlen(indent_str));
|
||||
input = GETMSG(DT_catd, 1, 254, "Attachment Description: ");
|
||||
input = CATGETS(DT_catd, 1, 254, "Attachment Description: ");
|
||||
append_to_contents(input, strlen(input));
|
||||
append_to_contents(description, strlen(description));
|
||||
append_newline_to_contents();
|
||||
@@ -385,7 +385,7 @@ Editor::set_attachment(
|
||||
if ((format == IF_BRACKETED) && (brackets == BF_INCLUDE))
|
||||
{
|
||||
char * ins_bracket =
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd, 1, 250,
|
||||
"------------- End Included Attachment -------------\n\n");
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ FindDialog::FindDialog(RoamMenuWindow *parent) : Dialog("find", parent)
|
||||
//
|
||||
// Initialize the buttons.
|
||||
//
|
||||
_buttonData[0].label = strdup(GETMSG(DT_catd, 1, 183, "Find"));
|
||||
_buttonData[0].label = strdup(CATGETS(DT_catd, 1, 183, "Find"));
|
||||
_buttonData[0].callback = findCallback;
|
||||
_buttonData[0].data = (caddr_t) this;
|
||||
|
||||
@@ -158,32 +158,32 @@ FindDialog::FindDialog(RoamMenuWindow *parent) : Dialog("find", parent)
|
||||
* NL_COMMENT
|
||||
* This is an obsolete message. Replaced by message 220 in set 1
|
||||
*/
|
||||
_buttonData[1].label = strdup(GETMSG(DT_catd, 1, 184, "Find & Select All"));
|
||||
_buttonData[1].label = strdup(CATGETS(DT_catd, 1, 184, "Find & Select All"));
|
||||
#endif
|
||||
/*
|
||||
* NL_COMMENT
|
||||
* This message replaces message 184 in set 1
|
||||
*/
|
||||
_buttonData[1].label = strdup(GETMSG(DT_catd, 1, 220, "Select All"));
|
||||
_buttonData[1].label = strdup(CATGETS(DT_catd, 1, 220, "Select All"));
|
||||
_buttonData[1].callback = findSelectAllCallback;
|
||||
_buttonData[1].data = (caddr_t) this;
|
||||
|
||||
_buttonData[2].label = strdup(GETMSG(DT_catd, 1, 185, "Clear"));
|
||||
_buttonData[2].label = strdup(CATGETS(DT_catd, 1, 185, "Clear"));
|
||||
_buttonData[2].callback = clearCallback;
|
||||
_buttonData[2].data = (caddr_t) this;
|
||||
|
||||
_buttonData[3].label = strdup(GETMSG(DT_catd, 1, 186, "Close"));
|
||||
_buttonData[3].label = strdup(CATGETS(DT_catd, 1, 186, "Close"));
|
||||
_buttonData[3].callback = closeCallback;
|
||||
_buttonData[3].data = (caddr_t) this;
|
||||
|
||||
_buttonData[4].label = strdup(GETMSG(DT_catd, 1, 187, "Help"));
|
||||
_buttonData[4].label = strdup(CATGETS(DT_catd, 1, 187, "Help"));
|
||||
_buttonData[4].callback = HelpCB;
|
||||
_buttonData[4].data = (caddr_t) DTMAILFINDDIALOG;
|
||||
|
||||
_text_labels[0] = strdup(GETMSG(DT_catd, 1, 188, "To:"));
|
||||
_text_labels[1] = strdup(GETMSG(DT_catd, 1, 189, "From:"));
|
||||
_text_labels[2] = strdup(GETMSG(DT_catd, 1, 190, "Subject:"));
|
||||
_text_labels[3] = strdup(GETMSG(DT_catd, 1, 191, "Cc:"));
|
||||
_text_labels[0] = strdup(CATGETS(DT_catd, 1, 188, "To:"));
|
||||
_text_labels[1] = strdup(CATGETS(DT_catd, 1, 189, "From:"));
|
||||
_text_labels[2] = strdup(CATGETS(DT_catd, 1, 190, "Subject:"));
|
||||
_text_labels[3] = strdup(CATGETS(DT_catd, 1, 191, "Cc:"));
|
||||
|
||||
// These strings should not be translated. They are
|
||||
// the Motif names for the widgets that will be created (they are
|
||||
@@ -241,7 +241,7 @@ FindDialog::createWorkArea(Widget dialog)
|
||||
|
||||
unsigned int offset;
|
||||
|
||||
_name = GETMSG(DT_catd, 1, 192, "Mailer - Find");
|
||||
_name = CATGETS(DT_catd, 1, 192, "Mailer - Find");
|
||||
|
||||
title(_name);
|
||||
|
||||
@@ -333,8 +333,8 @@ FindDialog::createWorkArea(Widget dialog)
|
||||
}
|
||||
|
||||
|
||||
XmString strForward = XmStringCreateLocalized(GETMSG(DT_catd, 1, 193, "Forward"));
|
||||
XmString strBackward = XmStringCreateLocalized(GETMSG(DT_catd, 1, 194, "Backward"));
|
||||
XmString strForward = XmStringCreateLocalized(CATGETS(DT_catd, 1, 193, "Forward"));
|
||||
XmString strBackward = XmStringCreateLocalized(CATGETS(DT_catd, 1, 194, "Backward"));
|
||||
|
||||
Widget fd_direction
|
||||
= XmVaCreateSimpleRadioBox(fd_form,
|
||||
@@ -478,7 +478,7 @@ FindDialog::findMatching(Boolean findAll)
|
||||
* when searching for a matching message.
|
||||
*/
|
||||
|
||||
setStatus(GETMSG(DT_catd, 1, 231, "Searching..."));
|
||||
setStatus(CATGETS(DT_catd, 1, 231, "Searching..."));
|
||||
busyCursor();
|
||||
theRoamApp.busyAllWindows(NULL);
|
||||
|
||||
@@ -620,9 +620,9 @@ FindDialog::findMatching(Boolean findAll)
|
||||
* one. The %d is the number of messages that matched.
|
||||
*/
|
||||
if (matchCount == 1) {
|
||||
strcpy(line, GETMSG(DT_catd, 1, 232, "1 message selected"));
|
||||
strcpy(line, CATGETS(DT_catd, 1, 232, "1 message selected"));
|
||||
} else {
|
||||
sprintf(line, GETMSG(DT_catd, 1, 233, "%d messages selected"),
|
||||
sprintf(line, CATGETS(DT_catd, 1, 233, "%d messages selected"),
|
||||
matchCount);
|
||||
}
|
||||
setStatus(line);
|
||||
@@ -649,7 +649,7 @@ FindDialog::findMatching(Boolean findAll)
|
||||
* This string is displayed on the find dialog status line when
|
||||
* no matching messages were found.
|
||||
*/
|
||||
setStatus(GETMSG(DT_catd, 1, 234, "No matches were found"));
|
||||
setStatus(CATGETS(DT_catd, 1, 234, "No matches were found"));
|
||||
return(False);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#ifndef MAILMSG_H
|
||||
#define MAILMSG_H
|
||||
|
||||
#include <nl_types.h>
|
||||
#include <Dt/MsgCatP.h>
|
||||
#include <Dt/MsgCatP.h>
|
||||
|
||||
/*
|
||||
@@ -65,16 +65,9 @@ extern nl_catd DT_catd; /* Catgets file descriptor */
|
||||
#ifdef XGETTEXT
|
||||
#define MAILMSG(msgid, str) dgettext(NL_SET, msgid, str)
|
||||
#else
|
||||
#define MAILMSG(msgid, str) catgets(DT_catd, NL_SET, msgid, str)
|
||||
#define MAILMSG(msgid, str) CATGETS(DT_catd, NL_SET, msgid, str)
|
||||
#endif
|
||||
|
||||
#ifdef hpV4
|
||||
#define GETMSG(DT_catd, NL_SET, msgid, str) _DtCatgetsCached(DT_catd, NL_SET, msgid, str)
|
||||
#else
|
||||
#define GETMSG(DT_catd, NL_SET, msgid, str) catgets(DT_catd, NL_SET, msgid, str)
|
||||
#endif
|
||||
|
||||
|
||||
/* MailBox.C msgid 100 - 199
|
||||
* MBOX_*
|
||||
*/
|
||||
|
||||
@@ -205,7 +205,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XmNcolumns, 30,
|
||||
XmNvalue, "",
|
||||
NULL);
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 27, 18,"INBOX folder path:"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 27, 18,"INBOX folder path:"));
|
||||
_inboxpath_label = XtVaCreateManagedWidget(
|
||||
"InboxNameLabel",
|
||||
xmLabelWidgetClass, _form,
|
||||
@@ -266,7 +266,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
NULL);
|
||||
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
|
||||
CATGETS(Dtb_project_catd, 2, 13, "Check for new mail every:"));
|
||||
_checkfornewmail_label = XtVaCreateManagedWidget(
|
||||
"CheckForNewMailLabel",
|
||||
xmLabelWidgetClass, _form,
|
||||
@@ -307,7 +307,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
NULL);
|
||||
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 6, "Automatic (system) delivery"));
|
||||
CATGETS(DT_catd, 27, 6, "Automatic (system) delivery"));
|
||||
_system_tb = XtVaCreateManagedWidget(
|
||||
"SystemTB",
|
||||
xmToggleButtonGadgetClass, _form,
|
||||
@@ -355,7 +355,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
NULL);
|
||||
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 7, "Mail server retrieval"));
|
||||
CATGETS(DT_catd, 27, 7, "Mail server retrieval"));
|
||||
_server_tb = XtVaCreateManagedWidget(
|
||||
"UseServerTB",
|
||||
xmToggleButtonGadgetClass, _server_frame,
|
||||
@@ -400,7 +400,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
for (int i=0; i<nitems; i++)
|
||||
{
|
||||
data[i] = (void*) serverprotocol_values[i].prop_value_string;
|
||||
strings[i] = GETMSG(
|
||||
strings[i] = CATGETS(
|
||||
DT_catd,
|
||||
serverprotocol_values[i].set_id,
|
||||
serverprotocol_values[i].msg_id,
|
||||
@@ -422,7 +422,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XtFree((char*) data);
|
||||
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 8, "Server Protocol:"));
|
||||
CATGETS(DT_catd, 27, 8, "Server Protocol:"));
|
||||
_serverprotocol_label = XtVaCreateManagedWidget(
|
||||
"ServerProtocolLabel",
|
||||
xmLabelWidgetClass, _serverframe_form,
|
||||
@@ -460,7 +460,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XmNcolumns, 30,
|
||||
XmNvalue, "",
|
||||
NULL);
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 27, 9, "Server Name:"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 27, 9, "Server Name:"));
|
||||
_servername_label = XtVaCreateManagedWidget(
|
||||
"ServerNameLabel",
|
||||
xmLabelWidgetClass, _serverframe_form,
|
||||
@@ -498,7 +498,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XmNcolumns, 30,
|
||||
XmNvalue, "",
|
||||
NULL);
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 27, 10, "User Name:"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 27, 10, "User Name:"));
|
||||
_username_label = XtVaCreateManagedWidget(
|
||||
"UserNameLabel",
|
||||
xmLabelWidgetClass, _serverframe_form,
|
||||
@@ -537,7 +537,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XmNcolumns, 30,
|
||||
XmNvalue, "",
|
||||
NULL);
|
||||
xms = XmStringCreateLocalized(GETMSG(DT_catd, 27, 11, "Password:"));
|
||||
xms = XmStringCreateLocalized(CATGETS(DT_catd, 27, 11, "Password:"));
|
||||
_password_label = XtVaCreateManagedWidget(
|
||||
"PasswordLabel",
|
||||
xmLabelWidgetClass, _serverframe_form,
|
||||
@@ -564,7 +564,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
// Create GUI for the Remember Password Option
|
||||
//
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 12, "Remember password"));
|
||||
CATGETS(DT_catd, 27, 12, "Remember password"));
|
||||
_rememberpassword_tb = XtVaCreateManagedWidget(
|
||||
"RememberPasswordTB",
|
||||
xmToggleButtonWidgetClass, _serverframe_form,
|
||||
@@ -598,7 +598,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
// Create GUI for the Delete From Server Option
|
||||
//
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 13,
|
||||
CATGETS(DT_catd, 27, 13,
|
||||
"Delete from server after retrieval"));
|
||||
_removeafterdelivery_tb = XtVaCreateManagedWidget(
|
||||
"RemoveAfterDeliveryTB",
|
||||
@@ -627,7 +627,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
// Create GUI for the RetrieveOld Option
|
||||
//
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 14,
|
||||
CATGETS(DT_catd, 27, 14,
|
||||
"Retrieve old messages"));
|
||||
_retrieveold_tb = XtVaCreateManagedWidget(
|
||||
"RetrieveOldTB",
|
||||
@@ -671,7 +671,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
NULL);
|
||||
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 15, "Custom retrieval"));
|
||||
CATGETS(DT_catd, 27, 15, "Custom retrieval"));
|
||||
_custom_tb = XtVaCreateManagedWidget(
|
||||
"CustomTB",
|
||||
xmToggleButtonGadgetClass, _custom_frame,
|
||||
@@ -720,7 +720,7 @@ MailRetrievalOptions::MailRetrievalOptions (
|
||||
XmNvalue, "",
|
||||
NULL);
|
||||
xms = XmStringCreateLocalized(
|
||||
GETMSG(DT_catd, 27, 16, "User Getmail command:"));
|
||||
CATGETS(DT_catd, 27, 16, "User Getmail command:"));
|
||||
_customcommand_label = XtVaCreateManagedWidget(
|
||||
"CustomCommandLabel",
|
||||
xmLabelWidgetClass, _customframe_form,
|
||||
@@ -810,7 +810,7 @@ MailRetrievalOptions::isValidInboxPath(PropUiItem* pui, void* data)
|
||||
text = pui->getWidget();
|
||||
if (text) inbox_path = XmTextFieldGetString(text);
|
||||
if (NULL == inbox_path || 0 == strlen(inbox_path))
|
||||
return GETMSG(DT_catd, 27, 17, "Null INBOX path.");
|
||||
return CATGETS(DT_catd, 27, 17, "Null INBOX path.");
|
||||
|
||||
tmp = (char*) malloc(strlen(inbox_path)+1);
|
||||
for (s=inbox_path, t=tmp; *s; s++)
|
||||
@@ -826,7 +826,7 @@ MailRetrievalOptions::isValidInboxPath(PropUiItem* pui, void* data)
|
||||
inbox_path = tmp;
|
||||
|
||||
if (NULL == inbox_path || 0 == strlen(inbox_path))
|
||||
return GETMSG(DT_catd, 27, 17, "Null INBOX path.");
|
||||
return CATGETS(DT_catd, 27, 17, "Null INBOX path.");
|
||||
|
||||
if (isalpha(inbox_path[0]))
|
||||
{
|
||||
|
||||
@@ -442,7 +442,7 @@ MsgScrollingList::load_headers(
|
||||
* There is only space to display 1 character. If "N" needs to be translated,
|
||||
* please make sure the translation is only 1 character.
|
||||
*/
|
||||
new_status = XmStringCreateLocalized(GETMSG(DT_catd, 1, 110, "N"));
|
||||
new_status = XmStringCreateLocalized(CATGETS(DT_catd, 1, 110, "N"));
|
||||
read_status = XmStringCreateLocalized(" ");
|
||||
#endif
|
||||
|
||||
@@ -579,7 +579,7 @@ MsgScrollingList::load_headers(
|
||||
* There is only space to display 1 character. If "N" needs to be translated,
|
||||
* please make sure the translation is only 1 character.
|
||||
*/
|
||||
new_status = XmStringCreateLocalized(GETMSG(DT_catd, 1, 111, "N"));
|
||||
new_status = XmStringCreateLocalized(CATGETS(DT_catd, 1, 111, "N"));
|
||||
read_status = XmStringCreateLocalized(" ");
|
||||
#endif
|
||||
|
||||
@@ -873,7 +873,7 @@ MsgScrollingList::deleteSelected(Boolean silent)
|
||||
* of the message that gets printed if more than one message
|
||||
* is moved.
|
||||
*/
|
||||
str = GETMSG(DT_catd, 3, 84, "%d messages deleted");
|
||||
str = CATGETS(DT_catd, 3, 84, "%d messages deleted");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -883,7 +883,7 @@ MsgScrollingList::deleteSelected(Boolean silent)
|
||||
* form of the message that gets printed if only one message
|
||||
* is moved.
|
||||
*/
|
||||
str = GETMSG(DT_catd, 3, 85, "%d message deleted");
|
||||
str = CATGETS(DT_catd, 3, 85, "%d message deleted");
|
||||
}
|
||||
status_message = new char[strlen(str) + 10];
|
||||
sprintf(status_message, str, position_count);
|
||||
@@ -954,8 +954,8 @@ MsgScrollingList::copySelected(
|
||||
DtMailGenDialog *dialog = _parent->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 3, 50, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 16, "No message selected."));
|
||||
CATGETS(DT_catd, 3, 50, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 16, "No message selected."));
|
||||
dialog->post_and_return(helpId);
|
||||
}
|
||||
return(1);
|
||||
@@ -968,7 +968,7 @@ MsgScrollingList::copySelected(
|
||||
// The following is an error message. "mailrc" is the name of the
|
||||
// mail resource file. Translate as appropriate.
|
||||
//
|
||||
parent()->message(GETMSG(DT_catd, 2, 15,"Error - Unable to get mailrc."));
|
||||
parent()->message(CATGETS(DT_catd, 2, 15,"Error - Unable to get mailrc."));
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -1060,7 +1060,7 @@ MsgScrollingList::copySelected(
|
||||
// mail folder. This is the plural form of the message that gets
|
||||
// printed if more than one message is moved.
|
||||
//
|
||||
str = GETMSG(DT_catd, 3, 65, "%d messages moved to %s");
|
||||
str = CATGETS(DT_catd, 3, 65, "%d messages moved to %s");
|
||||
} else {
|
||||
// NL_COMMENT
|
||||
// The following sentence means %d number of mail messages have
|
||||
@@ -1068,7 +1068,7 @@ MsgScrollingList::copySelected(
|
||||
// mail folder. This is the singular form of the message that
|
||||
// gets printed if only one message is moved.
|
||||
//
|
||||
str = GETMSG(DT_catd, 3, 66, "%d message moved to %s");
|
||||
str = CATGETS(DT_catd, 3, 66, "%d message moved to %s");
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -1078,14 +1078,14 @@ MsgScrollingList::copySelected(
|
||||
// copied to the %s mail folder. This is the plural form of the
|
||||
// message that gets printed if more than one message is copied.
|
||||
//
|
||||
str = GETMSG(DT_catd, 3, 67, "%d messages copied to %s");
|
||||
str = CATGETS(DT_catd, 3, 67, "%d messages copied to %s");
|
||||
} else {
|
||||
// NL_COMMENT
|
||||
// The following sentence means %d number of mail messages have been
|
||||
// copied to the %s mail folder. This is the singular form of the
|
||||
// message that gets printed if only one message is copied.
|
||||
//
|
||||
str = GETMSG(DT_catd, 3, 68, "%d message copied to %s");
|
||||
str = CATGETS(DT_catd, 3, 68, "%d message copied to %s");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1584,7 +1584,7 @@ MsgScrollingList::display_no_message()
|
||||
* No mail message has been selected by the user.
|
||||
*/
|
||||
|
||||
parent()->message(GETMSG(DT_catd, 2, 16, "No message selected."));
|
||||
parent()->message(CATGETS(DT_catd, 2, 16, "No message selected."));
|
||||
_displayed_item_position = 0;
|
||||
_selected_item_position = 0;
|
||||
|
||||
@@ -1642,7 +1642,7 @@ MsgScrollingList::viewInSeparateWindow(DtMailEnv &mail_error)
|
||||
* raised in front of existing windows so the user can see it.
|
||||
*/
|
||||
parent()->message(
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd, 3, 69,
|
||||
"View already exists. Raising it."));
|
||||
newview->displayInCurrentWorkspace();
|
||||
@@ -2056,7 +2056,7 @@ MsgScrollingList::undelete_messages(MsgHndArray *tmpMHlist)
|
||||
// gregl - new_status and read_status are not used in this function.
|
||||
// either comment them out (like I'm doing) or free them.
|
||||
//
|
||||
new_status = XmStringCreateLocalized(GETMSG(DT_catd, 1, 112, "N"));
|
||||
new_status = XmStringCreateLocalized(CATGETS(DT_catd, 1, 112, "N"));
|
||||
read_status = XmStringCreateLocalized(" ");
|
||||
#endif
|
||||
|
||||
@@ -2174,7 +2174,7 @@ MsgScrollingList::undelete_last_deleted()
|
||||
* There is only space to display 1 character. If "N" needs to be translated,
|
||||
* please make sure the translation is only 1 character.
|
||||
*/
|
||||
new_status = XmStringCreateLocalized(GETMSG(DT_catd, 1, 113, "N"));
|
||||
new_status = XmStringCreateLocalized(CATGETS(DT_catd, 1, 113, "N"));
|
||||
read_status = XmStringCreateLocalized(" ");
|
||||
#endif
|
||||
|
||||
@@ -2515,7 +2515,7 @@ MsgScrollingList::formatHeader(DtMailHeaderLine & info,
|
||||
attach_symbol[1] = 0;
|
||||
attachment_glyph = XmStringCreate((char *)attach_symbol, "attach");
|
||||
no_attachment_glyph = XmStringCreateLocalized(" ");
|
||||
new_status = XmStringCreateLocalized(GETMSG(DT_catd, 1, 114, "N"));
|
||||
new_status = XmStringCreateLocalized(CATGETS(DT_catd, 1, 114, "N"));
|
||||
read_status = XmStringCreateLocalized(" ");
|
||||
}
|
||||
|
||||
@@ -2621,14 +2621,14 @@ MsgScrollingList::formatHeader(DtMailHeaderLine & info,
|
||||
// Refer to strftime man page for explanation of the date format.
|
||||
now = time(NULL);
|
||||
if (USE_YEAR_FORMAT_SECONDS < now - ds.dtm_date)
|
||||
dateformat = GETMSG(DT_catd, 1, 259, "%a %b %d %Y");
|
||||
dateformat = CATGETS(DT_catd, 1, 259, "%a %b %d %Y");
|
||||
else
|
||||
{
|
||||
|
||||
#ifdef sun
|
||||
dateformat = GETMSG(DT_catd, 1, 260, "%a %b %d %k:%M");
|
||||
dateformat = CATGETS(DT_catd, 1, 260, "%a %b %d %k:%M");
|
||||
#else
|
||||
dateformat = GETMSG(DT_catd, 1, 261, "%a %b %d %H:%M");
|
||||
dateformat = CATGETS(DT_catd, 1, 261, "%a %b %d %H:%M");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -2644,7 +2644,7 @@ MsgScrollingList::formatHeader(DtMailHeaderLine & info,
|
||||
memset(&epoch, 0, sizeof(tm));
|
||||
|
||||
/* Refer to strftime man page for explanation of the date format. */
|
||||
dateformat = GETMSG(DT_catd, 1, 259, "%a %b %d %Y");
|
||||
dateformat = CATGETS(DT_catd, 1, 259, "%a %b %d %Y");
|
||||
SafeStrftime(date, BUFSIZ, dateformat, &epoch);
|
||||
}
|
||||
|
||||
@@ -3000,12 +3000,12 @@ MsgScrollingList::layoutLabels()
|
||||
#ifdef sun
|
||||
SafeStrftime(buf,
|
||||
sizeof(buf),
|
||||
GETMSG(DT_catd, 1, 222, "%a %b %d %k:%M"),
|
||||
CATGETS(DT_catd, 1, 222, "%a %b %d %k:%M"),
|
||||
tm);
|
||||
#else
|
||||
SafeStrftime(buf,
|
||||
sizeof(buf),
|
||||
GETMSG(DT_catd, 1, 223, "%a %b %d %H:%M"),
|
||||
CATGETS(DT_catd, 1, 223, "%a %b %d %H:%M"),
|
||||
tm);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
//////////////////////////////////////////////////////////
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <nl_types.h>
|
||||
#include <Dt/MsgCatP.h>
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -204,7 +204,7 @@ opt_help_button_CB(Widget wid, XtPointer clientData, XtPointer calldata)
|
||||
void OptCmd::create_dlog()
|
||||
{
|
||||
theRoamApp.busyAllWindows(
|
||||
GETMSG(DT_catd, 3, 78, "Initializing Mail Options..."));
|
||||
CATGETS(DT_catd, 3, 78, "Initializing Mail Options..."));
|
||||
|
||||
// make a new widget structure
|
||||
_opt_dlog = (DtbOptionsDialogInfo)malloc(sizeof(
|
||||
@@ -216,7 +216,7 @@ void OptCmd::create_dlog()
|
||||
/*
|
||||
* Open the standard message catalog for the project.
|
||||
*/
|
||||
Dtb_project_catd = catopen(DTB_PROJECT_CATALOG, NL_CAT_LOCALE);
|
||||
Dtb_project_catd = CATOPEN(DTB_PROJECT_CATALOG, NL_CAT_LOCALE);
|
||||
|
||||
#ifdef NEVER
|
||||
// Not a fatal error
|
||||
@@ -347,16 +347,16 @@ options_set_category_pane(
|
||||
return;
|
||||
|
||||
if (current_pane != NULL && props_changed) {
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 15, 1, "You have made unsaved changes.\nYou may save your changes, discard your changes,\nor return to your previous place in the dialog."));
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 15, 1, "You have made unsaved changes.\nYou may save your changes, discard your changes,\nor return to your previous place in the dialog."));
|
||||
|
||||
cmd_ptr->genDialog()->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 5, 2, "Mailer"),
|
||||
CATGETS(DT_catd, 5, 2, "Mailer"),
|
||||
buf);
|
||||
|
||||
answer = cmd_ptr->genDialog()->post_and_return(
|
||||
GETMSG(DT_catd, 15, 2, "Save"),
|
||||
GETMSG(DT_catd, 1, 182, "Cancel"),
|
||||
GETMSG(DT_catd, 15, 3, "Discard"),
|
||||
CATGETS(DT_catd, 15, 2, "Save"),
|
||||
CATGETS(DT_catd, 1, 182, "Cancel"),
|
||||
CATGETS(DT_catd, 15, 3, "Discard"),
|
||||
DTMAILHELPERROR);
|
||||
|
||||
if (answer == 1) { //Save
|
||||
@@ -451,7 +451,7 @@ void OptCmd::update_panes()
|
||||
// would like to reset. We need reset the subject back to the message
|
||||
// "Dtb_project_catd, 2, 68,"
|
||||
|
||||
XtSetArg(args[0], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office"));
|
||||
XtSetArg(args[0], XmNvalue, CATGETS(Dtb_project_catd, 2, 68, "Out of the office"));
|
||||
|
||||
if(tmp_ptr != NULL)
|
||||
XtVaSetValues(_opt_dlog->subject_tf,
|
||||
@@ -507,10 +507,10 @@ void OptCmd::update_source()
|
||||
char* helpId;
|
||||
int answer = 0;
|
||||
|
||||
genDialog()->setToErrorDialog(GETMSG(DT_catd, 2, 1, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 25, "There were unrecoverable syntax errors found in the ~/.mailrc file.\nMail options settings can be applied in the current session but can\nnot be saved to file."));
|
||||
genDialog()->setToErrorDialog(CATGETS(DT_catd, 2, 1, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 25, "There were unrecoverable syntax errors found in the ~/.mailrc file.\nMail options settings can be applied in the current session but can\nnot be saved to file."));
|
||||
helpId = DTMAILHELPERROR;
|
||||
genDialog()->post_and_return(GETMSG(DT_catd, 3, 5, "OK"), helpId);
|
||||
genDialog()->post_and_return(CATGETS(DT_catd, 3, 5, "OK"), helpId);
|
||||
return;
|
||||
}
|
||||
else mail_rc->update(error);
|
||||
@@ -550,16 +550,16 @@ int OptCmd::doFileLockingCheck()
|
||||
|
||||
if (is_set != use_file_locking)
|
||||
{
|
||||
char *message = GETMSG(DT_catd, 2, 26,
|
||||
char *message = CATGETS(DT_catd, 2, 26,
|
||||
"The value of the file locking option has changed.\nTo take immediate effect, folders need to be closed and reopened.\n o Click on 'Reopen' to reopen folders,\n making the new option take effect immediately.\n o Click on 'Continue' to avoid reopening folders.\n The new option will take effect the next time you open a folder.\n o Click on 'Cancel' to cancel the Apply and return to editing options.");
|
||||
genDialog()->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 2, 1, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 1, "Mailer"),
|
||||
message);
|
||||
answer =
|
||||
genDialog()->post_and_return(
|
||||
GETMSG(DT_catd, 2, 27, "Reopen"),
|
||||
GETMSG(DT_catd, 2, 29, "Cancel"),
|
||||
GETMSG(DT_catd, 2, 28, "Continue"),
|
||||
CATGETS(DT_catd, 2, 27, "Reopen"),
|
||||
CATGETS(DT_catd, 2, 29, "Cancel"),
|
||||
CATGETS(DT_catd, 2, 28, "Continue"),
|
||||
"AdvancedMailOptions");
|
||||
|
||||
//
|
||||
@@ -672,11 +672,11 @@ Boolean OptCmd::optionsAreValid()
|
||||
if (errMsg != NULL)
|
||||
{
|
||||
this->genDialog()->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 5, 2, "Mailer"),
|
||||
CATGETS(DT_catd, 5, 2, "Mailer"),
|
||||
errMsg);
|
||||
|
||||
answer = this->genDialog()->post_and_return(
|
||||
GETMSG(DT_catd, 26, 5, "Continue"),
|
||||
CATGETS(DT_catd, 26, 5, "Continue"),
|
||||
DTMAILHELPERROR);
|
||||
|
||||
XtFree(errMsg);
|
||||
@@ -692,11 +692,11 @@ Boolean OptCmd::optionsAreValid()
|
||||
if (errMsg != NULL)
|
||||
{
|
||||
this->genDialog()->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 5, 2, "Mailer"),
|
||||
CATGETS(DT_catd, 5, 2, "Mailer"),
|
||||
errMsg);
|
||||
|
||||
answer = this->genDialog()->post_and_return(
|
||||
GETMSG(DT_catd, 26, 5, "Continue"),
|
||||
CATGETS(DT_catd, 26, 5, "Continue"),
|
||||
DTMAILHELPERROR);
|
||||
|
||||
XtFree(errMsg);
|
||||
@@ -1128,7 +1128,7 @@ void OptCmd::init_advanced_pane()
|
||||
user_passwd = getpwuid(euid); // get passwd entry for user
|
||||
|
||||
sprintf(label_str, "%s \"%s\" =",
|
||||
GETMSG( DT_catd, 20, 2, "Use local name: "), user_passwd->pw_name);
|
||||
CATGETS( DT_catd, 20, 2, "Use local name: "), user_passwd->pw_name);
|
||||
|
||||
label_xm_str = XmStringCreateLocalized(label_str);
|
||||
|
||||
|
||||
@@ -380,7 +380,7 @@ int dieFromTtError(Tt_status errid, char *procname, char *errmsg, char *helpid)
|
||||
/* Do not die on warnings or TT_OK */
|
||||
if ( tt_is_err(errid) )
|
||||
{
|
||||
char *title = GETMSG(DT_catd, 2, 1, "Mailer");
|
||||
char *title = CATGETS(DT_catd, 2, 1, "Mailer");
|
||||
char *errmsg = tt_status_message(errid);
|
||||
DtMailEnv error;
|
||||
|
||||
@@ -388,7 +388,7 @@ int dieFromTtError(Tt_status errid, char *procname, char *errmsg, char *helpid)
|
||||
|
||||
error.logError(
|
||||
DTM_TRUE,
|
||||
GETMSG(DT_catd, 2, 30, "%s returned ToolTalk error: %s\n"),
|
||||
CATGETS(DT_catd, 2, 30, "%s returned ToolTalk error: %s\n"),
|
||||
procname, tt_status_message(errid));
|
||||
|
||||
DtMailGenDialog *exit_dialog = new DtMailGenDialog(
|
||||
@@ -396,7 +396,7 @@ int dieFromTtError(Tt_status errid, char *procname, char *errmsg, char *helpid)
|
||||
theApplication->baseWidget());
|
||||
exit_dialog->setToErrorDialog(title, errmsg);
|
||||
if (NULL == helpid) helpid = DTMAILHELPERROR;
|
||||
exit_dialog->post_and_return(GETMSG(DT_catd, 1, 1, "OK"), helpid);
|
||||
exit_dialog->post_and_return(CATGETS(DT_catd, 1, 1, "OK"), helpid);
|
||||
|
||||
XtRemoveAllCallbacks(theApplication->baseWidget(), XmNdestroyCallback);
|
||||
exit(1);
|
||||
@@ -925,12 +925,12 @@ void pspace_signal( int )
|
||||
// Serious error here -- No Space on Filesystem --
|
||||
sprintf(errMsg,"Insufficient paging space, \n Mailer cannot perform any operations.\n Please contact the System Administrator to \n correct the paging space problem ");
|
||||
genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 1, 6, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 6, "Mailer"),
|
||||
errMsg);
|
||||
XtFree(errMsg);
|
||||
|
||||
genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 3, 9, "OK"),
|
||||
CATGETS(DT_catd, 3, 9, "OK"),
|
||||
NULL);
|
||||
delete genDialog;
|
||||
}
|
||||
@@ -1230,7 +1230,7 @@ void RoamApp::initialize(int *argcp, char **argv)
|
||||
roam_tt_procid = ttdt_open( &roam_tt_fd, "DTMAIL", "SunSoft", "%I", 1 );
|
||||
dieFromTtError(tt_ptr_error(roam_tt_procid),
|
||||
"initialize.ttdt_open",
|
||||
GETMSG(DT_catd, 2, 2, "ToolTalk is not initialized. Mailer cannot run without ToolTalk.\nTry starting /usr/dt/bin/dtsession, or contact your System Administrator."),
|
||||
CATGETS(DT_catd, 2, 2, "ToolTalk is not initialized. Mailer cannot run without ToolTalk.\nTry starting /usr/dt/bin/dtsession, or contact your System Administrator."),
|
||||
DTMAILHELPCANTINITTOOLTALK);
|
||||
|
||||
// This is for supporting old ptype where RFC_822_Message is
|
||||
@@ -1288,13 +1288,13 @@ void RoamApp::initialize(int *argcp, char **argv)
|
||||
"MailRcDialog",
|
||||
theApplication->baseWidget());
|
||||
mailrc_dialog->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 2, 1, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 22,
|
||||
CATGETS(DT_catd, 2, 1, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 22,
|
||||
"There were unrecoverable syntax errors found in the ~/.mailrc file.\nCheck for more messages on terminal. Fix the errors and restart dtmail.\nIf you choose to continue you will not be able to save any changes made\nin the options dialog to file.") );
|
||||
helpId = DTMAILHELPERROR;
|
||||
answer = mailrc_dialog->post_and_return(
|
||||
GETMSG(DT_catd, 2, 23, "Continue"),
|
||||
GETMSG(DT_catd, 2, 24, "Exit"),
|
||||
CATGETS(DT_catd, 2, 23, "Continue"),
|
||||
CATGETS(DT_catd, 2, 24, "Exit"),
|
||||
helpId);
|
||||
if (answer == 2) {
|
||||
XtRemoveAllCallbacks(
|
||||
@@ -1330,19 +1330,19 @@ void RoamApp::initialize(int *argcp, char **argv)
|
||||
|
||||
DtMailGenDialog *install_errDialog =
|
||||
new DtMailGenDialog("Dialog", theApplication->baseWidget());
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 2, 4,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 2, 4,
|
||||
"Mailer has not been properly installed,\n\
|
||||
and cannot run because the execution group\n\
|
||||
is incorrectly set."));
|
||||
|
||||
install_errDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 1, 6, "Mailer"),
|
||||
CATGETS(DT_catd, 1, 6, "Mailer"),
|
||||
buf);
|
||||
|
||||
// No choice at this state other than to OK.
|
||||
helpId = DTMAILHELPBADGROUPID;
|
||||
answer = install_errDialog->post_and_return(
|
||||
GETMSG(DT_catd, 3, 9, "OK"),
|
||||
CATGETS(DT_catd, 3, 9, "OK"),
|
||||
helpId);
|
||||
XtRemoveAllCallbacks(
|
||||
theApplication->baseWidget(),
|
||||
@@ -1355,7 +1355,7 @@ is incorrectly set."));
|
||||
free((void*) value);
|
||||
|
||||
_options = new OptCmd("Mail Options...",
|
||||
GETMSG(DT_catd, 1, 2,"Mail Options..."),
|
||||
CATGETS(DT_catd, 1, 2,"Mail Options..."),
|
||||
TRUE,
|
||||
_w);
|
||||
|
||||
@@ -1364,7 +1364,7 @@ is incorrectly set."));
|
||||
SendMsgDialog *compose = theCompose.getWin();
|
||||
|
||||
if (dead_letter) {
|
||||
char *ttl = GETMSG(DT_catd, 1, 262, "Dead Letter Message");
|
||||
char *ttl = CATGETS(DT_catd, 1, 262, "Dead Letter Message");
|
||||
compose->loadDeadLetter(dead_letter);
|
||||
compose->setTitle(ttl);
|
||||
compose->setIconTitle(ttl);
|
||||
@@ -1479,7 +1479,7 @@ is incorrectly set."));
|
||||
|
||||
// Get the vacation handle before the new RoamMenuWindow
|
||||
// This is for setting the Vacation title stripe on the window
|
||||
_vacation = new VacationCmd("Vacation", GETMSG(DT_catd, 1, 3, "Vacation"));
|
||||
_vacation = new VacationCmd("Vacation", CATGETS(DT_catd, 1, 3, "Vacation"));
|
||||
|
||||
// DtMail only supports the "Mail" message.
|
||||
// If DtMail is started by ToolTalk, then we assume that the
|
||||
@@ -1559,7 +1559,7 @@ RoamApp::~RoamApp()
|
||||
}
|
||||
#endif
|
||||
|
||||
catclose(DT_catd);
|
||||
CATCLOSE(DT_catd);
|
||||
if (_appTimeoutId)
|
||||
XtRemoveTimeOut(_appTimeoutId);
|
||||
}
|
||||
@@ -1724,11 +1724,11 @@ RoamApp::showBusyState(
|
||||
switch (busy_state)
|
||||
{
|
||||
case DtMailBusyState_AutoSave:
|
||||
self->busyAllWindows(GETMSG(DT_catd, 3, 1, "Auto-saving..."));
|
||||
self->busyAllWindows(CATGETS(DT_catd, 3, 1, "Auto-saving..."));
|
||||
break;
|
||||
|
||||
case DtMailBusyState_NewMail:
|
||||
self->busyAllWindows(GETMSG(DT_catd, 3, 86, "Checking for new mail..."));
|
||||
self->busyAllWindows(CATGETS(DT_catd, 3, 86, "Checking for new mail..."));
|
||||
break;
|
||||
|
||||
case DtMailBusyState_NotBusy:
|
||||
@@ -1782,7 +1782,7 @@ RoamApp::globalAddToCachedContainerList(char *destname)
|
||||
void
|
||||
RoamApp::globalPropChange(void)
|
||||
{
|
||||
busyAllWindows(GETMSG(DT_catd, 1, 4, "Updating properties..."));
|
||||
busyAllWindows(CATGETS(DT_catd, 1, 4, "Updating properties..."));
|
||||
|
||||
for (int win = 0; win < _numWindows; win++) {
|
||||
_windows[win]->propsChanged();
|
||||
@@ -2191,5 +2191,5 @@ void
|
||||
RoamApp::open_catalog()
|
||||
{
|
||||
Application::open_catalog(); // Open Motif Application message catalog file
|
||||
DT_catd = catopen(DTMAIL_CAT, NL_CAT_LOCALE); // Open DtMail message catalog file
|
||||
DT_catd = CATOPEN(DTMAIL_CAT, NL_CAT_LOCALE); // Open DtMail message catalog file
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ SearchCmd::doit()
|
||||
_menuwindow->normalCursor();
|
||||
|
||||
if (count == 0) {
|
||||
_menuwindow->message(GETMSG(DT_catd, 3, 46, "Empty container"));
|
||||
_menuwindow->message(CATGETS(DT_catd, 3, 46, "Empty container"));
|
||||
_done = TRUE;
|
||||
return;
|
||||
}
|
||||
@@ -833,7 +833,7 @@ UnifiedSelectFileCmd::unifiedFileSelected(char *selection)
|
||||
errmsg = (const char*) error;
|
||||
err = strdup(errmsg);
|
||||
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 48, "Mailer"), err);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 48, "Mailer"), err);
|
||||
answer = _genDialog->post_and_return(DTMAILHELPERROR);
|
||||
if (1 == answer) doit();
|
||||
if (err) free(err);
|
||||
@@ -1154,7 +1154,7 @@ UnifiedSelectMailboxCmd::unifiedMailboxSelected(
|
||||
errmsg = (const char*) error;
|
||||
err = strdup(errmsg);
|
||||
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 48, "Mailer"), err);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 48, "Mailer"), err);
|
||||
answer = _genDialog->post_and_return(DTMAILHELPERROR);
|
||||
if (1 == answer) doit();
|
||||
if (err) free(err);
|
||||
@@ -1213,7 +1213,7 @@ ContainerMenuCmd::doit()
|
||||
// Initialize mail_error.
|
||||
mail_error.clear();
|
||||
|
||||
theRoamApp.busyAllWindows(GETMSG(DT_catd, 3, 15, "Saving..."));
|
||||
theRoamApp.busyAllWindows(CATGETS(DT_catd, 3, 15, "Saving..."));
|
||||
_menuwindow->mailbox()->save();
|
||||
theRoamApp.unbusyAllWindows();
|
||||
|
||||
@@ -1432,7 +1432,7 @@ UndeleteCmd::doit()
|
||||
}
|
||||
// if (!_undelFromList) {
|
||||
_undelFromList = new UndelFromListDialog(
|
||||
GETMSG(DT_catd, 1, 227, "Mailer - Deleted Messages"),
|
||||
CATGETS(DT_catd, 1, 227, "Mailer - Deleted Messages"),
|
||||
_menuwindow);
|
||||
_undelFromList->initialize();
|
||||
|
||||
@@ -1496,7 +1496,7 @@ MoveCopyCmd::MoveCopyCmd( char *name,
|
||||
DtMailBoolean only_show_mailboxes)
|
||||
: UnifiedSelectMailboxCmd(name,
|
||||
label,
|
||||
GETMSG(DT_catd, 1, 89, "Mailer - Other Mailboxes"),
|
||||
CATGETS(DT_catd, 1, 89, "Mailer - Other Mailboxes"),
|
||||
"Move",
|
||||
active,
|
||||
move_callback,
|
||||
@@ -1539,7 +1539,7 @@ MoveCopyCmd::doit()
|
||||
if (!_fileBrowser) {
|
||||
UnifiedSelectMailboxCmd::doit();
|
||||
// Customize buttons for MoveCopy dialog
|
||||
move = XmStringCreateLocalized(GETMSG(DT_catd, 1, 90, "Move"));
|
||||
move = XmStringCreateLocalized(CATGETS(DT_catd, 1, 90, "Move"));
|
||||
|
||||
filter_button = XtNameToWidget(_fileBrowser, "*Apply");
|
||||
_move_button = XtNameToWidget(_fileBrowser, "*OK");
|
||||
@@ -1549,11 +1549,11 @@ MoveCopyCmd::doit()
|
||||
xmPushButtonWidgetClass, _fileBrowser,
|
||||
NULL);
|
||||
_copy_button = XtVaCreateManagedWidget(
|
||||
GETMSG(DT_catd, 1, 237, "Copy"),
|
||||
CATGETS(DT_catd, 1, 237, "Copy"),
|
||||
/*xmPushButtonWidgetClass, _fileBrowser,*/
|
||||
xmPushButtonGadgetClass, _fileBrowser,
|
||||
XmNlabelString,
|
||||
XmStringCreateLocalized(GETMSG(DT_catd, 1, 43, "Copy")),
|
||||
XmStringCreateLocalized(CATGETS(DT_catd, 1, 43, "Copy")),
|
||||
NULL);
|
||||
printHelpId("Copy", _copy_button);
|
||||
//
|
||||
@@ -2084,7 +2084,7 @@ RelNoteCmd::doit()
|
||||
// _genDialog = new DtMailGenDialog("AboutBox", _parent->baseWidget());
|
||||
|
||||
// _genDialog->setToAboutDialog();
|
||||
// answer = _genDialog->post_and_return(GETMSG(DT_catd, 1, 92, "OK"), NULL);
|
||||
// answer = _genDialog->post_and_return(CATGETS(DT_catd, 1, 92, "OK"), NULL);
|
||||
|
||||
DisplayMain(_parent->baseWidget(), "Mailer", "_copyright");
|
||||
}
|
||||
@@ -2248,7 +2248,7 @@ SaveAttachCmd::SaveAttachCmd ( char *name,
|
||||
:UnifiedSelectFileCmd (name,
|
||||
label,
|
||||
title,
|
||||
GETMSG(DT_catd, 1, 93, "Save"),
|
||||
CATGETS(DT_catd, 1, 93, "Save"),
|
||||
active,
|
||||
save_callback,
|
||||
clientData,
|
||||
@@ -2270,7 +2270,7 @@ SaveAttachCmd::SaveAttachCmd (
|
||||
:UnifiedSelectFileCmd (name,
|
||||
label,
|
||||
title,
|
||||
GETMSG(DT_catd, 1, 93, "Save"),
|
||||
CATGETS(DT_catd, 1, 93, "Save"),
|
||||
active,
|
||||
save_callback,
|
||||
clientData,
|
||||
@@ -2292,7 +2292,7 @@ SaveAttachCmd::SaveAttachCmd (
|
||||
:UnifiedSelectFileCmd (name,
|
||||
label,
|
||||
title,
|
||||
GETMSG(DT_catd, 1, 93, "Save"),
|
||||
CATGETS(DT_catd, 1, 93, "Save"),
|
||||
active,
|
||||
save_callback,
|
||||
clientData,
|
||||
@@ -2341,7 +2341,7 @@ SaveAsTextCmd::SaveAsTextCmd (
|
||||
:UnifiedSelectFileCmd (name,
|
||||
label,
|
||||
title,
|
||||
GETMSG(DT_catd, 1, 95, "Save"),
|
||||
CATGETS(DT_catd, 1, 95, "Save"),
|
||||
active,
|
||||
fileCB,
|
||||
this,
|
||||
@@ -2363,7 +2363,7 @@ SaveAsTextCmd::SaveAsTextCmd (
|
||||
:UnifiedSelectFileCmd (name,
|
||||
label,
|
||||
title,
|
||||
GETMSG(DT_catd, 1, 95, "Save"),
|
||||
CATGETS(DT_catd, 1, 95, "Save"),
|
||||
active,
|
||||
fileCB,
|
||||
this,
|
||||
@@ -2392,10 +2392,10 @@ SaveAsTextCmd::saveText(const char * filename)
|
||||
if (0 == status)
|
||||
{
|
||||
sprintf(buf,
|
||||
GETMSG(DT_catd, 3, 47, "%s already exists.\nOverwrite?"),
|
||||
CATGETS(DT_catd, 3, 47, "%s already exists.\nOverwrite?"),
|
||||
filename);
|
||||
|
||||
_genDialog->setToQuestionDialog(GETMSG(DT_catd, 3, 48, "Mailer"), buf);
|
||||
_genDialog->setToQuestionDialog(CATGETS(DT_catd, 3, 48, "Mailer"), buf);
|
||||
helpId = DTMAILHELPERROR;
|
||||
answer = _genDialog->post_and_return(helpId);
|
||||
if (answer==2) {
|
||||
@@ -2406,10 +2406,10 @@ SaveAsTextCmd::saveText(const char * filename)
|
||||
if (unlink(filename) < 0)
|
||||
{
|
||||
sprintf(buf,
|
||||
GETMSG(DT_catd, 3, 49, "Unable to overwrite %s.\n\
|
||||
CATGETS(DT_catd, 3, 49, "Unable to overwrite %s.\n\
|
||||
Check file permissions and retry."),
|
||||
filename);
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 50, "Mailer"), buf);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 50, "Mailer"), buf);
|
||||
helpId = DTMAILHELPNOOVERWRITE;
|
||||
_genDialog->post_and_return(helpId);
|
||||
delete [] buf;
|
||||
@@ -2421,8 +2421,8 @@ Check file permissions and retry."),
|
||||
int fd = SafeOpen(filename, O_RDWR | O_CREAT | O_TRUNC, 0600);
|
||||
if (fd < 0)
|
||||
{
|
||||
sprintf(buf, GETMSG(DT_catd, 3, 51, "Unable to create %s."), filename);
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 52, "Mailer"), buf);
|
||||
sprintf(buf, CATGETS(DT_catd, 3, 51, "Unable to create %s."), filename);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 52, "Mailer"), buf);
|
||||
helpId = DTMAILHELPNOCREATE;
|
||||
_genDialog->post_and_return(helpId);
|
||||
delete [] buf;
|
||||
@@ -2432,9 +2432,9 @@ Check file permissions and retry."),
|
||||
if (SafeWrite(fd, "\n", 1) < 1)
|
||||
{
|
||||
sprintf(buf,
|
||||
GETMSG(DT_catd, 3, 53, "Unable to write to %s."),
|
||||
CATGETS(DT_catd, 3, 53, "Unable to write to %s."),
|
||||
filename);
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 54, "Mailer"), buf);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 54, "Mailer"), buf);
|
||||
helpId = DTMAILHELPNOWRITE;
|
||||
_genDialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
@@ -2473,8 +2473,8 @@ SaveAsTextCmd::writeTextFromScrolledList(int fd)
|
||||
char *tmpdir = new char[MAXPATHLEN+1];
|
||||
snprintf(tmpdir, MAXPATHLEN+1, "%s/%s", getenv("HOME"), DtPERSONAL_TMP_DIRECTORY);
|
||||
if ((tmppath = tempnam(tmpdir, "dtmail")) == NULL) {
|
||||
snprintf(buf, sizeof(buf), GETMSG(DT_catd, 3, 51, "Unable to create %s."), tmpdir);
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 52, "Mailer"), buf);
|
||||
snprintf(buf, sizeof(buf), CATGETS(DT_catd, 3, 51, "Unable to create %s."), tmpdir);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 52, "Mailer"), buf);
|
||||
helpId = DTMAILHELPNOCREATE;
|
||||
_genDialog->post_and_return(helpId);
|
||||
delete [] tmpdir;
|
||||
@@ -2537,10 +2537,10 @@ SaveAsTextCmd::writeText(XtPointer filedes, char *text_buf)
|
||||
|
||||
sprintf(
|
||||
buf,
|
||||
GETMSG(DT_catd, 3, 53, "Unable to write to %s."),
|
||||
CATGETS(DT_catd, 3, 53, "Unable to write to %s."),
|
||||
filename);
|
||||
helpId = DTMAILHELPNOWRITE;
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 3, 56, "Mailer"), buf);
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 3, 56, "Mailer"), buf);
|
||||
_genDialog->post_and_return(helpId);
|
||||
#endif
|
||||
}
|
||||
@@ -2566,8 +2566,8 @@ SaveAsTextCmd::doit()
|
||||
DtMailGenDialog *dialog = _roam_menu_window->genDialog();
|
||||
|
||||
dialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 3, 50, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 16, "No message selected."));
|
||||
CATGETS(DT_catd, 3, 50, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 16, "No message selected."));
|
||||
dialog->post_and_return(NULL);
|
||||
|
||||
return;
|
||||
@@ -2701,12 +2701,12 @@ RenameAttachCmd::RenameAttachCmd (
|
||||
0
|
||||
);
|
||||
|
||||
message = XmStringCreateLocalized(GETMSG(DT_catd, 1, 96, "Empty"));
|
||||
message = XmStringCreateLocalized(CATGETS(DT_catd, 1, 96, "Empty"));
|
||||
XtVaSetValues(renameDialog, XmNselectionLabelString, message, NULL);
|
||||
XmStringFree(message);
|
||||
XmString ok_str = XmStringCreateLocalized(GETMSG(DT_catd, 1, 97, "Rename"));
|
||||
XmString ok_str = XmStringCreateLocalized(CATGETS(DT_catd, 1, 97, "Rename"));
|
||||
XtVaSetValues(XtParent(renameDialog),
|
||||
XmNtitle, GETMSG(DT_catd, 1, 98, "Mailer - Rename"),
|
||||
XmNtitle, CATGETS(DT_catd, 1, 98, "Mailer - Rename"),
|
||||
NULL);
|
||||
XtVaSetValues(renameDialog,
|
||||
XmNokLabelString, ok_str,
|
||||
@@ -2744,7 +2744,7 @@ void RenameAttachCmd::doit()
|
||||
|
||||
renameDialog = aa->getRenameDialog();
|
||||
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 3, 57, "Rename attachment as"));
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 3, 57, "Rename attachment as"));
|
||||
|
||||
message = XmStringCreateLocalized(buf);
|
||||
|
||||
@@ -3493,9 +3493,9 @@ VacationCmd::handleForwardFile()
|
||||
else
|
||||
dialog = theRoamApp.genDialog();
|
||||
|
||||
sprintf(error_buf, "%s", GETMSG(DT_catd, 1, 102, "You are already using the forwarding facility for\nsomething other than Vacation. While Vacation is\nrunning, Vacation will be appended to this other\nforwarding activity. Is it still OK to start Vacation?\0"));
|
||||
sprintf(error_buf, "%s", CATGETS(DT_catd, 1, 102, "You are already using the forwarding facility for\nsomething other than Vacation. While Vacation is\nrunning, Vacation will be appended to this other\nforwarding activity. Is it still OK to start Vacation?\0"));
|
||||
|
||||
dialog->setToQuestionDialog(GETMSG(DT_catd, 1, 103, "Mailer"),
|
||||
dialog->setToQuestionDialog(CATGETS(DT_catd, 1, 103, "Mailer"),
|
||||
error_buf);
|
||||
|
||||
helpId = DTMAILHELPOKSTARTVACATION;
|
||||
@@ -3541,7 +3541,7 @@ VacationCmd::handleForwardFile()
|
||||
else
|
||||
dialog = theRoamApp.genDialog();
|
||||
|
||||
sprintf(error_buf, "%s", GETMSG(DT_catd, 1, 104, "You are already running the vacation program in your .forward file.\nConsult documentation on how to stop it and remove it from your .forward file.\nTry this command after fixing that problem.\0"));
|
||||
sprintf(error_buf, "%s", CATGETS(DT_catd, 1, 104, "You are already running the vacation program in your .forward file.\nConsult documentation on how to stop it and remove it from your .forward file.\nTry this command after fixing that problem.\0"));
|
||||
|
||||
dialog->setToErrorDialog("Error", error_buf);
|
||||
helpId = DTMAILHELPREMOVEVACATION;
|
||||
@@ -3921,7 +3921,7 @@ VacationCmd::parseVacationMessage()
|
||||
if (SafeFStat(fd, &buf) < 0) {
|
||||
|
||||
sprintf(dialog_text, "%s",
|
||||
GETMSG(DT_catd, 1, 105, "Cannot open .vacation.msg file -- No write permission."));
|
||||
CATGETS(DT_catd, 1, 105, "Cannot open .vacation.msg file -- No write permission."));
|
||||
dialog->setToQuestionDialog("Mailer", dialog_text);
|
||||
helpId = DTMAILHELPNOWRITEVACATION;
|
||||
answer = dialog->post_and_return(helpId);
|
||||
@@ -3949,8 +3949,8 @@ VacationCmd::parseVacationMessage()
|
||||
free_buf = 1;
|
||||
mbuf.buffer = new char[mbuf.size];
|
||||
if (mbuf.buffer == NULL) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 3, 59, "No Memory"),
|
||||
GETMSG(DT_catd, 3, 60, "There is not enough memory to load the existing .vacation.msg file."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 3, 59, "No Memory"),
|
||||
CATGETS(DT_catd, 3, 60, "There is not enough memory to load the existing .vacation.msg file."));
|
||||
helpId = DTMAILHELPNOLOADVACATION;
|
||||
answer = dialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
@@ -3962,8 +3962,8 @@ VacationCmd::parseVacationMessage()
|
||||
}
|
||||
|
||||
if (SafeRead(fd, mbuf.buffer, (unsigned int)mbuf.size) < mbuf.size) {
|
||||
dialog->setToErrorDialog(GETMSG(DT_catd, 3, 61, "Mailer"),
|
||||
GETMSG(DT_catd, 3, 62, "The existing .vacation.msg file appears to be corrupt."));
|
||||
dialog->setToErrorDialog(CATGETS(DT_catd, 3, 61, "Mailer"),
|
||||
CATGETS(DT_catd, 3, 62, "The existing .vacation.msg file appears to be corrupt."));
|
||||
helpId = DTMAILHELPCORRUPTVACATION;
|
||||
answer = dialog->post_and_return(helpId);
|
||||
SafeClose(fd);
|
||||
@@ -4107,7 +4107,7 @@ VacationCmd::handleMessageFile(
|
||||
|
||||
if (msg_file_exists >= 0 && text_changed) {
|
||||
sprintf(dialog_text, "%s",
|
||||
GETMSG(DT_catd, 1, 106, ".vacation.msg file exists. Replace with new text?"));
|
||||
CATGETS(DT_catd, 1, 106, ".vacation.msg file exists. Replace with new text?"));
|
||||
dialog->setToQuestionDialog("Mailer", dialog_text);
|
||||
helpId = DTMAILHELPEXISTSVACATION;
|
||||
answer = dialog->post_and_return(helpId);
|
||||
@@ -4125,7 +4125,7 @@ VacationCmd::handleMessageFile(
|
||||
fd = SafeOpen(messagefile, O_WRONLY | O_CREAT);
|
||||
if (fd < 0) {
|
||||
sprintf(dialog_text, "%s",
|
||||
GETMSG(DT_catd, 1, 107, "Cannot open .vacation.msg file -- No write permission."));
|
||||
CATGETS(DT_catd, 1, 107, "Cannot open .vacation.msg file -- No write permission."));
|
||||
dialog->setToQuestionDialog("Mailer", dialog_text);
|
||||
helpId = DTMAILHELPERROR;
|
||||
answer = dialog->post_and_return(helpId);
|
||||
@@ -4142,7 +4142,7 @@ VacationCmd::handleMessageFile(
|
||||
* message that gets returned to the sender when vacation
|
||||
* is turned on.
|
||||
*/
|
||||
subj = GETMSG(DT_catd, 1, 108, "I am on vacation");
|
||||
subj = CATGETS(DT_catd, 1, 108, "I am on vacation");
|
||||
} else {
|
||||
buf.appendData("Subject: ", 9);
|
||||
buf.appendData(subj, strlen(subj));
|
||||
@@ -4153,7 +4153,7 @@ VacationCmd::handleMessageFile(
|
||||
_subject = strdup(subj);
|
||||
|
||||
if (!text) {
|
||||
text = GETMSG(DT_catd, 1, 109,
|
||||
text = CATGETS(DT_catd, 1, 109,
|
||||
"I'm on vacation.\nYour mail regarding \"$SUBJECT\" will be read when I return.\n");
|
||||
}
|
||||
buf.appendData(text, strlen(text));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -286,7 +286,7 @@ _header_list(16)
|
||||
if (! isInitializedDefaultHeaderList)
|
||||
for (DefaultHeaders * hl = DefaultHeaderList; hl->dflt_label; hl++) {
|
||||
hl->label =
|
||||
GETMSG(DT_catd, hl->msg_set, hl->msg_number, hl->dflt_label);
|
||||
CATGETS(DT_catd, hl->msg_set, hl->msg_number, hl->dflt_label);
|
||||
|
||||
isInitializedDefaultHeaderList = TRUE;
|
||||
}
|
||||
@@ -694,7 +694,7 @@ SendMsgDialog::doAutoSave(char *filename)
|
||||
DtMailEnv error;
|
||||
|
||||
busyCursor();
|
||||
setStatus(GETMSG(DT_catd, 3, 70, "Writing dead letter..."));
|
||||
setStatus(CATGETS(DT_catd, 3, 70, "Writing dead letter..."));
|
||||
|
||||
updateMsgHnd();
|
||||
|
||||
@@ -945,16 +945,16 @@ SendMsgDialog::changeHeaderState(const char * name)
|
||||
if (!hl->value || strcmp(value, hl->value) != 0) {
|
||||
char *buf = new char[256];
|
||||
sprintf(buf,
|
||||
GETMSG(DT_catd, 2, 17,
|
||||
CATGETS(DT_catd, 2, 17,
|
||||
"You have edited \"%s\". Delete anyway?"),
|
||||
hl->label);
|
||||
_genDialog->setToWarningDialog(GETMSG(DT_catd, 3, 71,
|
||||
_genDialog->setToWarningDialog(CATGETS(DT_catd, 3, 71,
|
||||
"Mailer"),
|
||||
buf);
|
||||
char * helpId = DTMAILHELPERROR;
|
||||
int answer = _genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 3, 72, "OK"),
|
||||
GETMSG(DT_catd, 3, 73, "Cancel"),
|
||||
CATGETS(DT_catd, 3, 72, "OK"),
|
||||
CATGETS(DT_catd, 3, 73, "Cancel"),
|
||||
helpId);
|
||||
delete [] buf;
|
||||
if (answer == 2) {
|
||||
@@ -973,13 +973,13 @@ SendMsgDialog::changeHeaderState(const char * name)
|
||||
if (hl->show == SMD_SHOWN) {
|
||||
XtUnmanageChild(hl->form_widget);
|
||||
hl->show = SMD_HIDDEN;
|
||||
sprintf(label, "%s ", GETMSG(DT_catd, 1, 228, "Add"));
|
||||
sprintf(label, "%s ", CATGETS(DT_catd, 1, 228, "Add"));
|
||||
|
||||
}
|
||||
else {
|
||||
XtManageChild(hl->form_widget);
|
||||
hl->show = SMD_SHOWN;
|
||||
sprintf(label, "%s ", GETMSG(DT_catd, 1, 229, "Delete"));
|
||||
sprintf(label, "%s ", CATGETS(DT_catd, 1, 229, "Delete"));
|
||||
}
|
||||
|
||||
justifyHeaders();
|
||||
@@ -990,7 +990,7 @@ SendMsgDialog::changeHeaderState(const char * name)
|
||||
strcat(label, hl->label);
|
||||
strcat(label, ":");
|
||||
char *button_name = new char[100];
|
||||
sprintf(button_name, "%s ", GETMSG(DT_catd, 1, 228, "Add"));
|
||||
sprintf(button_name, "%s ", CATGETS(DT_catd, 1, 228, "Add"));
|
||||
strcat(button_name, hl->label);
|
||||
strcat(button_name, ":");
|
||||
|
||||
@@ -1061,7 +1061,7 @@ SendMsgDialog::sendmailErrorProc (int, int status, void *data)
|
||||
* There was an error in one or more of the email addresses.
|
||||
* Ask the user to type in a valid address and try again.
|
||||
*/
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 5,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 5,
|
||||
"Some of the addresses in the message are incorrect,\n\
|
||||
and do not refer to any known users in the system.\n\
|
||||
Please make sure all of the addresses are valid and try again."));
|
||||
@@ -1075,7 +1075,7 @@ Please make sure all of the addresses are valid and try again."));
|
||||
* applications so there will be more memory available.
|
||||
*/
|
||||
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 6,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 6,
|
||||
"Mailer does not have enough memory\n\
|
||||
available to send this message.\n\
|
||||
Try quitting other applications and\n\
|
||||
@@ -1090,7 +1090,7 @@ resend this message."));
|
||||
* There was an error from the mail transport (sendmail).
|
||||
*/
|
||||
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 7,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 7,
|
||||
"An error occurred while trying to send your message.\n\
|
||||
Check to make sure the message was received. If not,\n\
|
||||
you may have to resend this message."));
|
||||
@@ -1103,9 +1103,9 @@ you may have to resend this message."));
|
||||
smd->_close_button->activate();
|
||||
|
||||
// popup the error dialog
|
||||
smd->_genDialog->setToErrorDialog(GETMSG(DT_catd, 2, 21, "Mailer"),
|
||||
smd->_genDialog->setToErrorDialog(CATGETS(DT_catd, 2, 21, "Mailer"),
|
||||
(char *) buf);
|
||||
smd->_genDialog->post_and_return(GETMSG(DT_catd, 3, 76, "OK"), helpId);
|
||||
smd->_genDialog->post_and_return(CATGETS(DT_catd, 3, 76, "OK"), helpId);
|
||||
delete [] buf;
|
||||
}
|
||||
|
||||
@@ -1152,7 +1152,7 @@ SendMsgDialog::send_message(const char * trans_impl, int trans_type)
|
||||
if (!this->hasAddressee()) {
|
||||
// Message has no valid addressee. Pop up error dialog.
|
||||
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 8,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 8,
|
||||
"Try Send after specifying recipient(s) of the message in \nthe To:, Cc:, or Bcc: fields."));
|
||||
|
||||
helpId = DTMAILHELPNEEDADDRESSEE;
|
||||
@@ -1164,9 +1164,9 @@ SendMsgDialog::send_message(const char * trans_impl, int trans_type)
|
||||
_send_button->activate();
|
||||
_close_button->activate();
|
||||
|
||||
_genDialog->setToErrorDialog(GETMSG(DT_catd, 2, 21, "Mailer"),
|
||||
_genDialog->setToErrorDialog(CATGETS(DT_catd, 2, 21, "Mailer"),
|
||||
(char *) buf);
|
||||
_genDialog->post_and_return(GETMSG(DT_catd, 3, 76, "OK"), helpId);
|
||||
_genDialog->post_and_return(CATGETS(DT_catd, 3, 76, "OK"), helpId);
|
||||
|
||||
// Reset the flag before we return.
|
||||
_already_sending = FALSE;
|
||||
@@ -1196,7 +1196,7 @@ SendMsgDialog::send_message(const char * trans_impl, int trans_type)
|
||||
|
||||
|
||||
numPendingActions = attachArea->getNumPendingActions();
|
||||
sprintf(buf, "%s", GETMSG(
|
||||
sprintf(buf, "%s", CATGETS(
|
||||
DT_catd,
|
||||
3,
|
||||
77,
|
||||
@@ -1215,7 +1215,7 @@ SendMsgDialog::send_message(const char * trans_impl, int trans_type)
|
||||
*/
|
||||
|
||||
_genDialog->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 5, 1, "Mailer"),
|
||||
CATGETS(DT_catd, 5, 1, "Mailer"),
|
||||
buf);
|
||||
helpId = DTMAILHELPPENDINGACTIONS;
|
||||
|
||||
@@ -1329,7 +1329,7 @@ SendMsgDialog::popupMemoryError(DtMailEnv &error)
|
||||
* Mailer ran out of memory. Ask the user to quit some other
|
||||
* applications so there will be more memory available.
|
||||
*/
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 6,
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 6,
|
||||
"Mailer does not have enough memory\n\
|
||||
available to send this message.\n\
|
||||
Try quitting other applications and\n\
|
||||
@@ -1351,9 +1351,9 @@ resend this message."));
|
||||
_close_button->activate();
|
||||
|
||||
// popup the error dialog
|
||||
this->_genDialog->setToErrorDialog(GETMSG(DT_catd, 2, 21, "Mailer"),
|
||||
this->_genDialog->setToErrorDialog(CATGETS(DT_catd, 2, 21, "Mailer"),
|
||||
(char *) buf);
|
||||
this->_genDialog->post_and_return(GETMSG(DT_catd, 3, 76, "OK"),
|
||||
this->_genDialog->post_and_return(CATGETS(DT_catd, 3, 76, "OK"),
|
||||
helpId);
|
||||
}
|
||||
delete [] buf;
|
||||
@@ -1447,7 +1447,7 @@ SendMsgDialog::createWorkArea ( Widget parent )
|
||||
// Create the Send and Close buttons as children of rowCol
|
||||
|
||||
_send_button = new SendCmd ( "Send",
|
||||
GETMSG(DT_catd, 1, 230, "Send"),
|
||||
CATGETS(DT_catd, 1, 230, "Send"),
|
||||
TRUE,
|
||||
this,
|
||||
1);
|
||||
@@ -1466,7 +1466,7 @@ SendMsgDialog::createWorkArea ( Widget parent )
|
||||
|
||||
_close_button = new CloseCmd (
|
||||
"Close",
|
||||
GETMSG(DT_catd, 1, 118, "Close"),
|
||||
CATGETS(DT_catd, 1, 118, "Close"),
|
||||
TRUE,
|
||||
this->baseWidget(),
|
||||
this );
|
||||
@@ -1508,7 +1508,7 @@ SendMsgDialog::createWorkArea ( Widget parent )
|
||||
(void) XmProcessTraversal(hl->field_widget, XmTRAVERSE_CURRENT);
|
||||
|
||||
// Set the title to be New Message
|
||||
//char *ttl = GETMSG(DT_catd, 1, 119, "New Message");
|
||||
//char *ttl = CATGETS(DT_catd, 1, 119, "New Message");
|
||||
//this->setTitle(ttl);
|
||||
//this->setIconTitle(ttl);
|
||||
|
||||
@@ -1672,11 +1672,11 @@ SendMsgDialog::doDynamicHeaderMenus(void)
|
||||
|
||||
switch(hl->show) {
|
||||
case SMD_SHOWN:
|
||||
sprintf(label, "%s ", GETMSG(DT_catd, 1, 229, "Delete"));
|
||||
sprintf(label, "%s ", CATGETS(DT_catd, 1, 229, "Delete"));
|
||||
break;
|
||||
|
||||
case SMD_HIDDEN:
|
||||
sprintf(label, "%s ", GETMSG(DT_catd, 1, 228, "Add"));
|
||||
sprintf(label, "%s ", CATGETS(DT_catd, 1, 228, "Add"));
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -1740,7 +1740,7 @@ SendMsgDialog::include_file(
|
||||
// I don't need to open the file to see if it's readable if loadFile()
|
||||
// returns error status.
|
||||
if ( (fp = fopen(selection, "r")) == NULL ) {
|
||||
sprintf(buf, GETMSG(DT_catd, 2, 18, "Error: Cannot include file %s"),
|
||||
sprintf(buf, CATGETS(DT_catd, 2, 18, "Error: Cannot include file %s"),
|
||||
selection);
|
||||
theInfoDialogManager->post(
|
||||
"Mailer",
|
||||
@@ -1785,10 +1785,10 @@ SendMsgDialog::confirm_add_attachment(char *file, int size)
|
||||
int answer;
|
||||
|
||||
format =
|
||||
GETMSG(DT_catd, 1, 263,
|
||||
CATGETS(DT_catd, 1, 263,
|
||||
"The attachment '%s' is %d kilobytes.\nAdd as attachment?");
|
||||
sprintf(buf, format, file, size/1024);
|
||||
_genDialog->setToQuestionDialog(GETMSG(DT_catd, 5, 2, "Mailer"), buf);
|
||||
_genDialog->setToQuestionDialog(CATGETS(DT_catd, 5, 2, "Mailer"), buf);
|
||||
answer = _genDialog->post_and_return(NULL);
|
||||
return (answer==1);
|
||||
}
|
||||
@@ -1877,11 +1877,11 @@ SendMsgDialog::save_selected_attachment(
|
||||
|
||||
|
||||
_genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 1, 120, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 19, "An attachment needs to be selected before issuing the\n\"Save As\" command to save to a file.") );
|
||||
CATGETS(DT_catd, 1, 120, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 19, "An attachment needs to be selected before issuing the\n\"Save As\" command to save to a file.") );
|
||||
helpId = DTMAILHELPSELECTATTACH;
|
||||
answer = _genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 3, 74, "OK"), helpId );
|
||||
CATGETS(DT_catd, 3, 74, "OK"), helpId );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2013,15 +2013,15 @@ SendMsgDialog::createMenuPanes()
|
||||
_separator = new SeparatorCmd( "Separator","Separator", TRUE );
|
||||
|
||||
// File
|
||||
cmdList = new CmdList( "File", GETMSG(DT_catd, 1, 121, "File") );
|
||||
cmdList = new CmdList( "File", CATGETS(DT_catd, 1, 121, "File") );
|
||||
|
||||
// Default directory is set below at the same time as the default
|
||||
// directory for att_add.
|
||||
_file_include = new UnifiedSelectFileCmd (
|
||||
"Include...",
|
||||
GETMSG(DT_catd, 1, 122, "Include..."),
|
||||
GETMSG(DT_catd, 1, 123, "Mailer - Include"),
|
||||
GETMSG(DT_catd, 1, 124, "Include"),
|
||||
CATGETS(DT_catd, 1, 122, "Include..."),
|
||||
CATGETS(DT_catd, 1, 123, "Mailer - Include"),
|
||||
CATGETS(DT_catd, 1, 124, "Include"),
|
||||
TRUE,
|
||||
SendMsgDialog::include_file_cb,
|
||||
this,
|
||||
@@ -2030,12 +2030,12 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
// Remap OK button to Include
|
||||
// XtVaSetValues(_file_include->fileBrowser,
|
||||
// XmNokLabelString, GETMSG(DT_catd,
|
||||
// XmNokLabelString, CATGETS(DT_catd,
|
||||
// 1, 77, "Include"), NULL);
|
||||
_file_save_as = new SaveAsTextCmd(
|
||||
"Save As Text...",
|
||||
GETMSG(DT_catd, 1, 125, "Save As Text..."),
|
||||
GETMSG(DT_catd, 1, 126, "Mailer - Save As Text"),
|
||||
CATGETS(DT_catd, 1, 125, "Save As Text..."),
|
||||
CATGETS(DT_catd, 1, 126, "Mailer - Save As Text"),
|
||||
TRUE,
|
||||
get_editor()->textEditor(),
|
||||
this,
|
||||
@@ -2043,13 +2043,13 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
_file_log = new LogMsgCmd (
|
||||
"Log Message",
|
||||
GETMSG(DT_catd, 1, 127, "Log Message"), TRUE, this);
|
||||
CATGETS(DT_catd, 1, 127, "Log Message"), TRUE, this);
|
||||
|
||||
// 1 for default transport.
|
||||
|
||||
_file_send = new SendCmd (
|
||||
"Send",
|
||||
GETMSG(DT_catd, 1, 117, "Send"),
|
||||
CATGETS(DT_catd, 1, 117, "Send"),
|
||||
TRUE,
|
||||
this,
|
||||
1 );
|
||||
@@ -2066,7 +2066,7 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
CmdList *subcmdList1 = new CmdList (
|
||||
"Send As",
|
||||
GETMSG(DT_catd, 1, 128, "Send As") );
|
||||
CATGETS(DT_catd, 1, 128, "Send As") );
|
||||
|
||||
d_session = theRoamApp.session()->session();
|
||||
const char **impls = d_session->enumerateImpls(error);
|
||||
@@ -2090,7 +2090,7 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
_file_close = new CloseCmd (
|
||||
"Close",
|
||||
GETMSG(DT_catd, 1, 129, "Close"),
|
||||
CATGETS(DT_catd, 1, 129, "Close"),
|
||||
TRUE,
|
||||
_menuBar->baseWidget(),
|
||||
this );
|
||||
@@ -2116,56 +2116,56 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
// Edit
|
||||
|
||||
cmdList = new CmdList( "Edit", GETMSG(DT_catd, 1, 130, "Edit") );
|
||||
cmdList = new CmdList( "Edit", CATGETS(DT_catd, 1, 130, "Edit") );
|
||||
|
||||
_edit_undo = new EditUndoCmd ( "Undo",
|
||||
GETMSG(DT_catd, 1, 131, "Undo"),
|
||||
CATGETS(DT_catd, 1, 131, "Undo"),
|
||||
TRUE, this );
|
||||
_edit_cut = new EditCutCmd ( "Cut",
|
||||
GETMSG(DT_catd, 1, 132, "Cut"),
|
||||
CATGETS(DT_catd, 1, 132, "Cut"),
|
||||
TRUE, this );
|
||||
_edit_copy = new EditCopyCmd ( "Copy",
|
||||
GETMSG(DT_catd, 1, 133, "Copy"),
|
||||
CATGETS(DT_catd, 1, 133, "Copy"),
|
||||
TRUE, this );
|
||||
_edit_paste = new EditPasteCmd ( "Paste",
|
||||
GETMSG(DT_catd, 1, 134 , "Paste"),
|
||||
CATGETS(DT_catd, 1, 134 , "Paste"),
|
||||
TRUE,
|
||||
this );
|
||||
|
||||
// Begin Paste Special submenu
|
||||
subcmdList1 = new CmdList ( "Paste Special", GETMSG(DT_catd, 1, 135 , "Paste Special") );
|
||||
subcmdList1 = new CmdList ( "Paste Special", CATGETS(DT_catd, 1, 135 , "Paste Special") );
|
||||
_edit_paste_special[0] = new EditPasteSpecialCmd (
|
||||
"Bracketed",
|
||||
GETMSG(DT_catd, 1, 136 , "Bracketed"),
|
||||
CATGETS(DT_catd, 1, 136 , "Bracketed"),
|
||||
TRUE, this, Editor::IF_BRACKETED
|
||||
);
|
||||
subcmdList1->add(_edit_paste_special[0]);
|
||||
_edit_paste_special[1] = new EditPasteSpecialCmd (
|
||||
"Indented",
|
||||
GETMSG(DT_catd, 1, 137 , "Indented"),
|
||||
CATGETS(DT_catd, 1, 137 , "Indented"),
|
||||
TRUE, this, Editor::IF_INDENTED );
|
||||
subcmdList1->add(_edit_paste_special[1]);
|
||||
// End Paste Special submenu
|
||||
|
||||
_edit_clear = new EditClearCmd ( "Clear", GETMSG(DT_catd, 1, 138, "Clear"),
|
||||
_edit_clear = new EditClearCmd ( "Clear", CATGETS(DT_catd, 1, 138, "Clear"),
|
||||
TRUE,
|
||||
this );
|
||||
_edit_delete = new EditDeleteCmd ( "Delete", GETMSG(DT_catd, 1, 139, "Delete"),
|
||||
_edit_delete = new EditDeleteCmd ( "Delete", CATGETS(DT_catd, 1, 139, "Delete"),
|
||||
TRUE,
|
||||
this );
|
||||
_edit_select_all = new EditSelectAllCmd (
|
||||
"Select All",
|
||||
GETMSG(DT_catd, 1, 140, "Select All"),
|
||||
CATGETS(DT_catd, 1, 140, "Select All"),
|
||||
TRUE,
|
||||
this );
|
||||
_format_find_change = new FindChangeCmd (
|
||||
"Find/Change...",
|
||||
GETMSG(DT_catd, 1, 155, "Find/Change..."),
|
||||
CATGETS(DT_catd, 1, 155, "Find/Change..."),
|
||||
TRUE,
|
||||
this );
|
||||
_format_spell = new SpellCmd (
|
||||
"Check Spelling...",
|
||||
GETMSG(DT_catd, 1, 156, "Check Spelling..."),
|
||||
CATGETS(DT_catd, 1, 156, "Check Spelling..."),
|
||||
TRUE,
|
||||
this );
|
||||
|
||||
@@ -2210,13 +2210,13 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
cmdList = new CmdList(
|
||||
"Attachments",
|
||||
GETMSG(DT_catd, 1, 141, "Attachments"));
|
||||
CATGETS(DT_catd, 1, 141, "Attachments"));
|
||||
|
||||
_att_add = new UnifiedSelectFileCmd (
|
||||
"Add File...",
|
||||
GETMSG(DT_catd, 1, 142, "Add File..."),
|
||||
GETMSG(DT_catd, 1, 143, "Mailer - Add"),
|
||||
GETMSG(DT_catd, 1, 144, "Add"),
|
||||
CATGETS(DT_catd, 1, 142, "Add File..."),
|
||||
CATGETS(DT_catd, 1, 143, "Mailer - Add"),
|
||||
CATGETS(DT_catd, 1, 144, "Add"),
|
||||
TRUE,
|
||||
SendMsgDialog::add_att_cb,
|
||||
this,
|
||||
@@ -2224,8 +2224,8 @@ SendMsgDialog::createMenuPanes()
|
||||
|
||||
_att_save = new SaveAttachCmd (
|
||||
"Save As...",
|
||||
GETMSG(DT_catd, 1, 145, "Save As..."),
|
||||
GETMSG(DT_catd, 1, 146,
|
||||
CATGETS(DT_catd, 1, 145, "Save As..."),
|
||||
CATGETS(DT_catd, 1, 146,
|
||||
"Mailer - Attachments - Save As"),
|
||||
FALSE,
|
||||
SendMsgDialog::save_att_cb,
|
||||
@@ -2233,23 +2233,23 @@ SendMsgDialog::createMenuPanes()
|
||||
this->baseWidget());
|
||||
_att_delete = new DeleteAttachCmd (
|
||||
"Delete",
|
||||
GETMSG(DT_catd, 1, 147, "Delete"),
|
||||
CATGETS(DT_catd, 1, 147, "Delete"),
|
||||
FALSE,
|
||||
this);
|
||||
_att_undelete = new UndeleteAttachCmd (
|
||||
"Undelete",
|
||||
GETMSG(DT_catd, 1, 148, "Undelete"),
|
||||
CATGETS(DT_catd, 1, 148, "Undelete"),
|
||||
FALSE,
|
||||
this);
|
||||
_att_rename = new RenameAttachCmd(
|
||||
"Rename",
|
||||
GETMSG(DT_catd, 1, 149, "Rename"),
|
||||
CATGETS(DT_catd, 1, 149, "Rename"),
|
||||
FALSE,
|
||||
this);
|
||||
|
||||
_att_select_all = new SelectAllAttachsCmd(
|
||||
"Select All",
|
||||
GETMSG(DT_catd, 1, 150, "Select All"),
|
||||
CATGETS(DT_catd, 1, 150, "Select All"),
|
||||
this);
|
||||
|
||||
/* NL_COMMENT
|
||||
@@ -2259,7 +2259,7 @@ SendMsgDialog::createMenuPanes()
|
||||
*/
|
||||
_att_show_pane = new ShowAttachPaneCmd(
|
||||
"Show List",
|
||||
GETMSG(DT_catd, 1, 226, "Show List"),
|
||||
CATGETS(DT_catd, 1, 226, "Show List"),
|
||||
this
|
||||
);
|
||||
cmdList->add( _att_add );
|
||||
@@ -2298,22 +2298,22 @@ SendMsgDialog::createMenuPanes()
|
||||
createFormatMenu();
|
||||
|
||||
_overview = new OnAppCmd("Overview",
|
||||
GETMSG(DT_catd, 1, 71, "Overview"),
|
||||
CATGETS(DT_catd, 1, 71, "Overview"),
|
||||
TRUE, this);
|
||||
_tasks = new TasksCmd("Tasks", GETMSG(DT_catd, 1, 72, "Tasks"),
|
||||
_tasks = new TasksCmd("Tasks", CATGETS(DT_catd, 1, 72, "Tasks"),
|
||||
TRUE, this);
|
||||
_reference = new ReferenceCmd("Reference",
|
||||
GETMSG(DT_catd, 1, 73, "Reference"),
|
||||
CATGETS(DT_catd, 1, 73, "Reference"),
|
||||
TRUE, this);
|
||||
_on_item = new OnItemCmd("On Item", GETMSG(DT_catd, 1, 74, "On Item"),
|
||||
_on_item = new OnItemCmd("On Item", CATGETS(DT_catd, 1, 74, "On Item"),
|
||||
TRUE, this);
|
||||
_using_help = new UsingHelpCmd("Using Help",
|
||||
GETMSG(DT_catd, 1, 75, "Using Help"),
|
||||
CATGETS(DT_catd, 1, 75, "Using Help"),
|
||||
TRUE, this);
|
||||
_about_mailer = new RelNoteCmd("About Mailer...",
|
||||
GETMSG(DT_catd, 1, 77, "About Mailer..."),
|
||||
CATGETS(DT_catd, 1, 77, "About Mailer..."),
|
||||
TRUE, this);
|
||||
cmdList = new CmdList("Help", GETMSG(DT_catd, 1, 76, "Help"));
|
||||
cmdList = new CmdList("Help", CATGETS(DT_catd, 1, 76, "Help"));
|
||||
cmdList->add(_overview);
|
||||
cmdList->add(_separator);
|
||||
cmdList->add(_tasks);
|
||||
@@ -2335,7 +2335,7 @@ SendMsgDialog::construct_attachment_popup(void)
|
||||
|
||||
LabelCmd *title = new LabelCmd (
|
||||
"Mailer - Attachments",
|
||||
GETMSG(DT_catd, 1, 158, "Mailer - Attachments"), TRUE);
|
||||
CATGETS(DT_catd, 1, 158, "Mailer - Attachments"), TRUE);
|
||||
SeparatorCmd *separator = new SeparatorCmd( "Separator","Separator", TRUE );
|
||||
|
||||
_attachmentPopupMenuList->add(title);
|
||||
@@ -2362,7 +2362,7 @@ SendMsgDialog::construct_text_popup(void)
|
||||
|
||||
LabelCmd *title = new LabelCmd (
|
||||
"Mailer - Compose",
|
||||
GETMSG(DT_catd, 1, 159, "Mailer - Compose"), TRUE);
|
||||
CATGETS(DT_catd, 1, 159, "Mailer - Compose"), TRUE);
|
||||
SeparatorCmd *separator = new SeparatorCmd("Separator", "Separator", TRUE );
|
||||
|
||||
_textPopupMenuList->add(title);
|
||||
@@ -2511,13 +2511,13 @@ SendMsgDialog::createAliasPopupMenu(
|
||||
OtherAliasesCmd *otherAliases =
|
||||
new OtherAliasesCmd(
|
||||
"Other Aliases...",
|
||||
GETMSG(DT_catd, 1, 247, "Other Aliases..."),
|
||||
CATGETS(DT_catd, 1, 247, "Other Aliases..."),
|
||||
TRUE);
|
||||
#if defined(USE_TITLED_ALIAS_POPUPS)
|
||||
LabelCmd *title =
|
||||
new LabelCmd(
|
||||
"Mailer - Aliases",
|
||||
GETMSG(DT_catd, 1, 248, "Mailer - Aliases"),
|
||||
CATGETS(DT_catd, 1, 248, "Mailer - Aliases"),
|
||||
TRUE);
|
||||
#endif
|
||||
SeparatorCmd *separator =
|
||||
@@ -2666,15 +2666,15 @@ SendMsgDialog::createFormatMenu()
|
||||
CmdList *cmdList;
|
||||
_format_separator = new SeparatorCmd( "Separator","Separator", TRUE );
|
||||
|
||||
cmdList = new CmdList( "Format", GETMSG(DT_catd, 1, 152,"Format") );
|
||||
cmdList = new CmdList( "Format", CATGETS(DT_catd, 1, 152,"Format") );
|
||||
|
||||
_format_word_wrap = new WordWrapCmd (
|
||||
"Word Wrap",
|
||||
GETMSG(DT_catd, 1, 153, "Word Wrap"),
|
||||
CATGETS(DT_catd, 1, 153, "Word Wrap"),
|
||||
TRUE,
|
||||
this );
|
||||
_format_settings = new FormatCmd ( "Settings...",
|
||||
GETMSG(DT_catd, 1, 154, "Settings..."),
|
||||
CATGETS(DT_catd, 1, 154, "Settings..."),
|
||||
TRUE,
|
||||
this );
|
||||
|
||||
@@ -2682,7 +2682,7 @@ SendMsgDialog::createFormatMenu()
|
||||
cmdList->add( _format_settings );
|
||||
cmdList->add( _format_separator);
|
||||
|
||||
_templates = new CmdList ( "Templates", GETMSG(DT_catd, 1, 157, "Templates") );
|
||||
_templates = new CmdList ( "Templates", CATGETS(DT_catd, 1, 157, "Templates") );
|
||||
addTemplates(_templates);
|
||||
|
||||
cmdList->add(_templates);
|
||||
@@ -2756,7 +2756,7 @@ SendMsgDialog::initialize()
|
||||
XmRepTypeInstallTearOffModelConverter();
|
||||
MenuWindow::initialize();
|
||||
|
||||
char *ttl = GETMSG(DT_catd, 1, 160, "New Message");
|
||||
char *ttl = CATGETS(DT_catd, 1, 160, "New Message");
|
||||
setTitle(ttl);
|
||||
|
||||
XtSetArg(args[n], XmNdeleteResponse, XmDO_NOTHING); n++;
|
||||
@@ -3394,11 +3394,11 @@ SendMsgDialog::renameAttachmentOK()
|
||||
if (attachArea->getIconSelectedCount() > 1) {
|
||||
char *buf = new char[512];
|
||||
|
||||
sprintf(buf, "%s", GETMSG(DT_catd, 5, 4, "Select only one attachment\n\
|
||||
sprintf(buf, "%s", CATGETS(DT_catd, 5, 4, "Select only one attachment\n\
|
||||
and then choose rename"));
|
||||
|
||||
_genDialog->setToQuestionDialog(
|
||||
GETMSG(DT_catd, 5, 2, "Mailer"),
|
||||
CATGETS(DT_catd, 5, 2, "Mailer"),
|
||||
buf);
|
||||
|
||||
char * helpId = DTMAILHELPSELECTONEATTACH;
|
||||
@@ -3618,12 +3618,12 @@ SendMsgDialog::handleQuitDialog()
|
||||
DtMailGenDialog *dialog = this->genDialog();
|
||||
|
||||
dialog->setToQuestionDialog(
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd,
|
||||
1,
|
||||
99,
|
||||
"Mailer - Close"),
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd,
|
||||
3,
|
||||
58,
|
||||
@@ -3634,12 +3634,12 @@ Close the Compose window?")
|
||||
);
|
||||
helpId = DTMAILHELPCLOSECOMPOSEWINDOW;
|
||||
if ( dialog->post_and_return(
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd,
|
||||
1,
|
||||
100,
|
||||
"OK"),
|
||||
GETMSG(
|
||||
CATGETS(
|
||||
DT_catd,
|
||||
1,
|
||||
101,
|
||||
@@ -3843,7 +3843,7 @@ Compose::getWin()
|
||||
|
||||
// Get new Message Handle
|
||||
newsend->setMsgHnd();
|
||||
char *ttl = GETMSG(DT_catd, 1, 160, "New Message");
|
||||
char *ttl = CATGETS(DT_catd, 1, 160, "New Message");
|
||||
newsend->setTitle(ttl);
|
||||
newsend->setIconTitle(ttl);
|
||||
return newsend;
|
||||
@@ -3854,7 +3854,7 @@ void
|
||||
SendMsgDialog::setTitle(char *subject)
|
||||
{
|
||||
char *format = "%s - %s";
|
||||
char *prefix = GETMSG(DT_catd, 1, 6, "Mailer");
|
||||
char *prefix = CATGETS(DT_catd, 1, 6, "Mailer");
|
||||
char *new_title;
|
||||
int len;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ SortCmd::doit()
|
||||
DtMail::MailBox *mbox;
|
||||
int current_msg;
|
||||
|
||||
theRoamApp.busyAllWindows(GETMSG(DT_catd, 1, 219, "Sorting..."));
|
||||
theRoamApp.busyAllWindows(CATGETS(DT_catd, 1, 219, "Sorting..."));
|
||||
|
||||
// Get Mailbox
|
||||
mbox = _sortparent->mailbox();
|
||||
|
||||
@@ -313,7 +313,7 @@ UndelFromListDialog::createWorkArea ( Widget parent )
|
||||
XmNentryAlignment, XmALIGNMENT_CENTER,
|
||||
NULL);
|
||||
|
||||
labelStr = XmStringCreateLocalized(GETMSG(DT_catd, 1, 14,
|
||||
labelStr = XmStringCreateLocalized(CATGETS(DT_catd, 1, 14,
|
||||
"Sender"));
|
||||
|
||||
l1 = XtVaCreateManagedWidget("Label1", xmLabelGadgetClass,
|
||||
@@ -327,7 +327,7 @@ UndelFromListDialog::createWorkArea ( Widget parent )
|
||||
// XtAddCallback(l1, XmNhelpCallback, HelpCB, helpId);
|
||||
|
||||
|
||||
labelStr = XmStringCreateLocalized(GETMSG(DT_catd, 1, 15,
|
||||
labelStr = XmStringCreateLocalized(CATGETS(DT_catd, 1, 15,
|
||||
"Subject"));
|
||||
l2 = XtVaCreateManagedWidget("Label2",
|
||||
xmLabelGadgetClass, rowOfLabels,
|
||||
@@ -341,7 +341,7 @@ UndelFromListDialog::createWorkArea ( Widget parent )
|
||||
/* add help callback */
|
||||
// XtAddCallback(l2, XmNhelpCallback, HelpCB, helpId);
|
||||
|
||||
labelStr = XmStringCreateLocalized(GETMSG(DT_catd, 1, 16,
|
||||
labelStr = XmStringCreateLocalized(CATGETS(DT_catd, 1, 16,
|
||||
"Date and Time"));
|
||||
l3 = XtVaCreateManagedWidget("Label3",
|
||||
xmLabelGadgetClass, rowOfLabels,
|
||||
@@ -353,7 +353,7 @@ UndelFromListDialog::createWorkArea ( Widget parent )
|
||||
/* add help callback */
|
||||
// XtAddCallback(l3, XmNhelpCallback, HelpCB, helpId);
|
||||
|
||||
labelStr = XmStringCreateLocalized(GETMSG(DT_catd, 1, 17,
|
||||
labelStr = XmStringCreateLocalized(CATGETS(DT_catd, 1, 17,
|
||||
"Size"));
|
||||
l4 = XtVaCreateManagedWidget("Label4",
|
||||
xmLabelGadgetClass, rowOfLabels,
|
||||
@@ -506,7 +506,7 @@ UndelFromListDialog::addToRowOfButtons()
|
||||
|
||||
_undelete_button = new DoUndeleteCmd(
|
||||
"Undelete",
|
||||
GETMSG(DT_catd, 1, 115, "Undelete"),
|
||||
CATGETS(DT_catd, 1, 115, "Undelete"),
|
||||
TRUE,
|
||||
this);
|
||||
ci = new ButtonInterface (rowOfButtons, _undelete_button);
|
||||
@@ -522,7 +522,7 @@ UndelFromListDialog::addToRowOfButtons()
|
||||
|
||||
_close_button = new CloseUndelCmd(
|
||||
"Close",
|
||||
GETMSG(DT_catd, 1, 116, "Close"),
|
||||
CATGETS(DT_catd, 1, 116, "Close"),
|
||||
TRUE,
|
||||
this);
|
||||
ci = new ButtonInterface (rowOfButtons, _close_button);
|
||||
|
||||
@@ -356,19 +356,19 @@ ViewMsgDialog::construct_edit_menu()
|
||||
|
||||
_edit_copy = new EditCopyCmd(
|
||||
"Copy",
|
||||
GETMSG(DT_catd, 1, 161, "Copy"),
|
||||
CATGETS(DT_catd, 1, 161, "Copy"),
|
||||
TRUE,
|
||||
this
|
||||
);
|
||||
|
||||
_edit_select_all = new EditSelectAllCmd(
|
||||
"Select All",
|
||||
GETMSG(DT_catd, 1, 162, "Select All"),
|
||||
CATGETS(DT_catd, 1, 162, "Select All"),
|
||||
TRUE,
|
||||
this
|
||||
);
|
||||
|
||||
cmdList = new CmdList("Edit", GETMSG(DT_catd, 1, 163, "Edit"));
|
||||
cmdList = new CmdList("Edit", CATGETS(DT_catd, 1, 163, "Edit"));
|
||||
cmdList->add(_edit_copy);
|
||||
cmdList->add(_edit_select_all);
|
||||
|
||||
@@ -385,8 +385,8 @@ ViewMsgDialog::construct_attachment_menu()
|
||||
|
||||
_attach_save_as = new SaveAttachCmd (
|
||||
"Save As...",
|
||||
GETMSG(DT_catd, 1, 164, "Save As..."),
|
||||
GETMSG(DT_catd, 1, 165, "Mailer - Attachments - Save As"),
|
||||
CATGETS(DT_catd, 1, 164, "Save As..."),
|
||||
CATGETS(DT_catd, 1, 165, "Mailer - Attachments - Save As"),
|
||||
FALSE,
|
||||
ViewMsgDialog::save_attachment_callback,
|
||||
this,
|
||||
@@ -394,12 +394,12 @@ ViewMsgDialog::construct_attachment_menu()
|
||||
|
||||
_attach_select_all = new SelectAllAttachsCmd(
|
||||
"Select All",
|
||||
GETMSG(DT_catd, 1, 166, "Select All"),
|
||||
CATGETS(DT_catd, 1, 166, "Select All"),
|
||||
this);
|
||||
|
||||
_attachmentMenuList = new CmdList(
|
||||
"Attachments",
|
||||
GETMSG(DT_catd, 1, 167, "Attachments") );
|
||||
CATGETS(DT_catd, 1, 167, "Attachments") );
|
||||
|
||||
_attachmentMenuList->add(_attach_save_as);
|
||||
_attachmentMenuList->add(_attach_select_all);
|
||||
@@ -415,7 +415,7 @@ ViewMsgDialog::construct_attachment_popup(void)
|
||||
|
||||
LabelCmd *title = new LabelCmd (
|
||||
"Mailer - Attachments",
|
||||
GETMSG(DT_catd, 1, 168, "Mailer - Attachments"), TRUE);
|
||||
CATGETS(DT_catd, 1, 168, "Mailer - Attachments"), TRUE);
|
||||
SeparatorCmd *separator = new SeparatorCmd("Separator","Separator", TRUE );
|
||||
|
||||
_attachmentPopupMenuList->add(title);
|
||||
@@ -438,7 +438,7 @@ ViewMsgDialog::construct_text_popup(void)
|
||||
|
||||
LabelCmd *title = new LabelCmd (
|
||||
"Mailer - Text",
|
||||
GETMSG(DT_catd, 1, 169, "Mailer - Text"), TRUE);
|
||||
CATGETS(DT_catd, 1, 169, "Mailer - Text"), TRUE);
|
||||
SeparatorCmd *separator = new SeparatorCmd("Separator", "Separator", TRUE );
|
||||
|
||||
_textPopupMenuList->add(title);
|
||||
@@ -462,20 +462,20 @@ ViewMsgDialog::construct_help_menu()
|
||||
// Separator for menu items
|
||||
|
||||
SeparatorCmd *separator= new SeparatorCmd("Separator", "Separator", TRUE );
|
||||
_overview = new OnAppCmd("Overview", GETMSG(DT_catd, 1, 170, "Overview"),
|
||||
_overview = new OnAppCmd("Overview", CATGETS(DT_catd, 1, 170, "Overview"),
|
||||
TRUE, this);
|
||||
_tasks = new TasksCmd("Tasks", GETMSG(DT_catd, 1, 171, "Tasks"),
|
||||
_tasks = new TasksCmd("Tasks", CATGETS(DT_catd, 1, 171, "Tasks"),
|
||||
TRUE, this);
|
||||
_reference = new ReferenceCmd("Reference",
|
||||
GETMSG(DT_catd, 1, 172, "Reference"),
|
||||
CATGETS(DT_catd, 1, 172, "Reference"),
|
||||
TRUE, this);
|
||||
_on_item = new OnItemCmd("On Item",
|
||||
GETMSG(DT_catd, 1, 173, "On Item"),
|
||||
CATGETS(DT_catd, 1, 173, "On Item"),
|
||||
TRUE, this);
|
||||
_using_help = new UsingHelpCmd("Using Help",
|
||||
GETMSG(DT_catd, 1, 174, "Using Help"),
|
||||
CATGETS(DT_catd, 1, 174, "Using Help"),
|
||||
TRUE, this);
|
||||
cmdList = new CmdList( "Help", GETMSG(DT_catd, 1, 175, "Help") );
|
||||
cmdList = new CmdList( "Help", CATGETS(DT_catd, 1, 175, "Help") );
|
||||
cmdList->add ( _overview );
|
||||
cmdList->add ( separator );
|
||||
cmdList->add ( _tasks );
|
||||
@@ -487,7 +487,7 @@ ViewMsgDialog::construct_help_menu()
|
||||
cmdList->add ( separator );
|
||||
|
||||
_about_mailer = new RelNoteCmd("About Mailer",
|
||||
GETMSG(DT_catd, 1, 176, "About Mailer..."),
|
||||
CATGETS(DT_catd, 1, 176, "About Mailer..."),
|
||||
TRUE, this);
|
||||
cmdList->add ( _about_mailer );
|
||||
|
||||
@@ -535,11 +535,11 @@ ViewMsgDialog::save_selected_attachment(
|
||||
|
||||
|
||||
_genDialog->setToErrorDialog(
|
||||
GETMSG(DT_catd, 1, 177, "Mailer"),
|
||||
GETMSG(DT_catd, 2, 20, "An attachment needs to be selected before issuing the\n\"Save As\" command to save to a file.") );
|
||||
CATGETS(DT_catd, 1, 177, "Mailer"),
|
||||
CATGETS(DT_catd, 2, 20, "An attachment needs to be selected before issuing the\n\"Save As\" command to save to a file.") );
|
||||
helpId = DTMAILHELPSELECTATTACH;
|
||||
answer = _genDialog->post_and_return(
|
||||
GETMSG(DT_catd, 3, 75, "OK"), helpId );
|
||||
CATGETS(DT_catd, 3, 75, "OK"), helpId );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -781,10 +781,10 @@ XmTextEditor::modifyPasteData(
|
||||
{
|
||||
|
||||
if( !begin_ins_bracket)
|
||||
begin_ins_bracket = GETMSG(DT_catd, 1, 199,
|
||||
begin_ins_bracket = CATGETS(DT_catd, 1, 199,
|
||||
"\n------------- Begin Included Message -------------\n");
|
||||
if(!end_ins_bracket)
|
||||
end_ins_bracket = GETMSG(DT_catd, 1, 200,
|
||||
end_ins_bracket = CATGETS(DT_catd, 1, 200,
|
||||
"\n------------- End Included Message -------------\n");
|
||||
|
||||
size_t begin_len = strlen(begin_ins_bracket);
|
||||
|
||||
@@ -1637,7 +1637,7 @@ dtb_options_dialog_create(
|
||||
if (instance->dialog == NULL) {
|
||||
n = 0;
|
||||
XtSetArg(args[n], XmNallowShellResize, True); ++n;
|
||||
XtSetArg(args[n], XmNtitle, GETMSG(Dtb_project_catd, 2, 1, "Mailer - Mail Options")); ++n;
|
||||
XtSetArg(args[n], XmNtitle, CATGETS(Dtb_project_catd, 2, 1, "Mailer - Mail Options")); ++n;
|
||||
XtSetArg(args[n], XmNbackground, dtb_cvt_string_to_pixel(parent, "white")); ++n;
|
||||
instance->dialog =
|
||||
XmCreateDialogShell(parent,
|
||||
@@ -1845,7 +1845,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 2, "Category:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 2, "Category:"));
|
||||
instance->category_opmenu_label =
|
||||
XtVaCreateWidget("dtb_options_category_opmenu_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -1872,7 +1872,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Message_Header_List_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 3, "Message Header List"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 3, "Message Header List"));
|
||||
instance->category_opmenu_items.Message_Header_List_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_message_header_list_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1886,7 +1886,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Message_View_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 4, "Message View"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 4, "Message View"));
|
||||
instance->category_opmenu_items.Message_View_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_message_view_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1900,7 +1900,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Compose_Window_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 5, "Compose Window"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 5, "Compose Window"));
|
||||
instance->category_opmenu_items.Compose_Window_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_compose_window_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1914,7 +1914,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Message_Filing_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 6, "Message Filing"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 6, "Message Filing"));
|
||||
instance->category_opmenu_items.Message_Filing_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_message_filing_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1928,7 +1928,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Vacation_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 7, "Vacation"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 7, "Vacation"));
|
||||
instance->category_opmenu_items.Vacation_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_vacation_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1942,7 +1942,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Templates_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 8, "Templates"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 8, "Templates"));
|
||||
instance->category_opmenu_items.Templates_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_templates_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1956,7 +1956,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Aliases_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 9, "Aliases"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 9, "Aliases"));
|
||||
instance->category_opmenu_items.Aliases_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_aliases_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1970,7 +1970,7 @@ dtb_options_category_opmenu_create(
|
||||
return -1;
|
||||
|
||||
if (instance->category_opmenu_items.Advanced_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 10, "Advanced"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 10, "Advanced"));
|
||||
instance->category_opmenu_items.Advanced_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_advanced_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -1985,7 +1985,7 @@ dtb_options_category_opmenu_create(
|
||||
|
||||
if (instance->category_opmenu_items.Printing_item == NULL) {
|
||||
label_xmstring =
|
||||
XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 92, "Printing"));
|
||||
XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 92, "Printing"));
|
||||
instance->category_opmenu_items.Printing_item =
|
||||
XtVaCreateManagedWidget("dtb_options_category_opmenu_printing_item",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -2001,7 +2001,7 @@ dtb_options_category_opmenu_create(
|
||||
if (instance->category_opmenu_items.MailRetrieval_item == NULL) {
|
||||
label_xmstring =
|
||||
XmStringCreateLocalized(
|
||||
GETMSG(Dtb_project_catd, 2, 93, "Mail Retrieval"));
|
||||
CATGETS(Dtb_project_catd, 2, 93, "Mail Retrieval"));
|
||||
instance->category_opmenu_items.MailRetrieval_item =
|
||||
XtVaCreateManagedWidget(
|
||||
"dtb_options_category_opmenu_mailretrieval_item",
|
||||
@@ -2415,7 +2415,7 @@ dtb_options_checkbox_create(
|
||||
return -1;
|
||||
|
||||
if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
|
||||
instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item =
|
||||
XtVaCreateManagedWidget("dtb_options_checkbox_show_to_recipient_when_mail_is_from_me_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -2430,7 +2430,7 @@ dtb_options_checkbox_create(
|
||||
return -1;
|
||||
|
||||
if (instance->checkbox_items.Display_message_numbers_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 12, "Display message numbers"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 12, "Display message numbers"));
|
||||
instance->checkbox_items.Display_message_numbers_item =
|
||||
XtVaCreateManagedWidget("dtb_options_checkbox_display_message_numbers_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -2552,7 +2552,7 @@ dtb_options_destroy_del_msg_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->destroy_del_msg_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
|
||||
instance->destroy_del_msg_lbl =
|
||||
XtVaCreateWidget("dtb_options_destroy_del_msg_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -2615,7 +2615,7 @@ dtb_options_deleted_msg_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 21, "When I close the mailbox"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 21, "When I close the mailbox"));
|
||||
instance->deleted_msg_cb_items.When_I_close_the_mailbox_item =
|
||||
XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_when_i_close_the_mailbox_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -2630,7 +2630,7 @@ dtb_options_deleted_msg_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 22, "Show confirmation notice"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 22, "Show confirmation notice"));
|
||||
instance->deleted_msg_cb_items.Show_confirmation_notice_item =
|
||||
XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_show_confirmation_notice_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -2782,7 +2782,7 @@ dtb_options_mail_check_sb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->mail_check_sb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 13, "Check for new mail every:"));
|
||||
instance->mail_check_sb_label =
|
||||
XtVaCreateWidget("dtb_options_mail_check_sb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -2827,7 +2827,7 @@ dtb_options_seconds_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->seconds_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 14, "Seconds"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 14, "Seconds"));
|
||||
instance->seconds_lbl =
|
||||
XtVaCreateWidget("dtb_options_seconds_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -2888,7 +2888,7 @@ dtb_options_signal_sb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->signal_sb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 15, "Signal new mail with:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 15, "Signal new mail with:"));
|
||||
instance->signal_sb_label =
|
||||
XtVaCreateWidget("dtb_options_signal_sb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -2933,7 +2933,7 @@ dtb_options_beeps_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->beeps_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 16, "Beep(s)"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 16, "Beep(s)"));
|
||||
instance->beeps_lbl =
|
||||
XtVaCreateWidget("dtb_options_beeps_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -2994,7 +2994,7 @@ dtb_options_spinbox2_create(
|
||||
return -1;
|
||||
|
||||
if (instance->spinbox2_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 91, " "));
|
||||
instance->spinbox2_label =
|
||||
XtVaCreateWidget("dtb_options_spinbox2_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3039,7 +3039,7 @@ dtb_options_flashes_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->flashes_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 17, "Flash(es)"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 17, "Flash(es)"));
|
||||
instance->flashes_lbl =
|
||||
XtVaCreateWidget("dtb_options_flashes_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3100,7 +3100,7 @@ dtb_options_display_sb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->display_sb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 18, "Display"));
|
||||
instance->display_sb_label =
|
||||
XtVaCreateWidget("dtb_options_display_sb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3145,7 +3145,7 @@ dtb_options_headers_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->headers_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 19, "Headers"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 19, "Headers"));
|
||||
instance->headers_lbl =
|
||||
XtVaCreateWidget("dtb_options_headers_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3215,7 +3215,7 @@ dtb_options_abr_header_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->abr_header_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
|
||||
instance->abr_header_lbl =
|
||||
XtVaCreateWidget("dtb_options_abr_header_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3420,7 +3420,7 @@ dtb_options_display_row_sb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->display_row_sb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 18, "Display"));
|
||||
instance->display_row_sb_label =
|
||||
XtVaCreateWidget("dtb_options_display_row_sb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3465,7 +3465,7 @@ dtb_options_rows_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->rows_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 33, "Rows"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 33, "Rows"));
|
||||
instance->rows_lbl =
|
||||
XtVaCreateWidget("dtb_options_rows_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3526,7 +3526,7 @@ dtb_options_characters_wide_sb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->characters_wide_sb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 91, " "));
|
||||
instance->characters_wide_sb_label =
|
||||
XtVaCreateWidget("dtb_options_characters_wide_sb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3571,7 +3571,7 @@ dtb_options_char_wide_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->char_wide_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 34, "Characters Wide"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 34, "Characters Wide"));
|
||||
instance->char_wide_lbl =
|
||||
XtVaCreateWidget("dtb_options_char_wide_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3679,9 +3679,9 @@ dtb_options_hidden_fields_list_create(
|
||||
/*
|
||||
* Convert char* strings to XmStrings
|
||||
*/
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 25, "x-lines"));
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 26, "email-version"));
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 27, "expires"));
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 25, "x-lines"));
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 26, "email-version"));
|
||||
hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 27, "expires"));
|
||||
if (instance->hidden_fields_list == NULL) {
|
||||
n = 0;
|
||||
XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
|
||||
@@ -3720,7 +3720,7 @@ dtb_options_hidden_fields_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->hidden_fields_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 28, "Hidden Fields:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 28, "Hidden Fields:"));
|
||||
instance->hidden_fields_lbl =
|
||||
XtVaCreateWidget("dtb_options_hidden_fields_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3757,7 +3757,7 @@ dtb_options_header_fields_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->header_fields_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 24, "Header Field:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 24, "Header Field:"));
|
||||
instance->header_fields_lbl =
|
||||
XtVaCreateWidget("dtb_options_header_fields_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -3794,7 +3794,7 @@ dtb_options_h_field_add_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->h_field_add == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->h_field_add =
|
||||
XtVaCreateWidget("dtb_options_h_field_add",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -3831,7 +3831,7 @@ dtb_options_h_field_delete_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->h_field_delete == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->h_field_delete =
|
||||
XtVaCreateWidget("dtb_options_h_field_delete",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -3868,7 +3868,7 @@ dtb_options_h_field_change_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->h_field_change == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->h_field_change =
|
||||
XtVaCreateWidget("dtb_options_h_field_change",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -3932,7 +3932,7 @@ dtb_options_wrap_checkbox_create(
|
||||
return -1;
|
||||
|
||||
if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 36, "Show Attachment List"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 36, "Show Attachment List"));
|
||||
instance->wrap_checkbox_items.Show_Attachment_List_item =
|
||||
XtVaCreateManagedWidget("dtb_options_wrap_checkbox_show_attachment_list_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -4014,7 +4014,7 @@ dtb_options_confirm_attachment_create(
|
||||
if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
|
||||
{
|
||||
label_xmstring = XmStringCreateLocalized(
|
||||
GETMSG(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
|
||||
CATGETS(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
|
||||
|
||||
instance->cfrm_att_checkbox_items.Confirm_Attachment_item =
|
||||
XtVaCreateManagedWidget(
|
||||
@@ -4061,7 +4061,7 @@ dtb_options_confirm_attachment_create(
|
||||
if (instance->visit_mailb_lbl == NULL)
|
||||
{
|
||||
label_xmstring =
|
||||
XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 95, "kilobytes"));
|
||||
XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 95, "kilobytes"));
|
||||
instance->cfrm_att_size_mb_lbl =
|
||||
XtVaCreateManagedWidget("dtb_options_cfrm_att_size_mb_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4192,7 +4192,7 @@ dtb_options_deadletter_field_create(
|
||||
return -1;
|
||||
|
||||
if (instance->deadletter_field_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
|
||||
instance->deadletter_field_label =
|
||||
XtVaCreateWidget("dtb_options_deadletter_field_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4263,7 +4263,7 @@ dtb_options_format_menu_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->format_menu_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
|
||||
instance->format_menu_lbl =
|
||||
XtVaCreateWidget("dtb_options_format_menu_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4371,7 +4371,7 @@ dtb_options_indent_str_tf_create(
|
||||
XtSetArg(args[n], XmNleftOffset, 4); ++n;
|
||||
XtSetArg(args[n], XmNleftAttachment, XmATTACH_WIDGET); ++n;
|
||||
XtSetArg(args[n], XmNtopAttachment, XmATTACH_NONE); ++n;
|
||||
XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 37, ">")); ++n;
|
||||
XtSetArg(args[n], XmNvalue, CATGETS(Dtb_project_catd, 2, 37, ">")); ++n;
|
||||
XtSetArg(args[n], XmNmaxLength, 80); ++n;
|
||||
XtSetArg(args[n], XmNeditable, True); ++n;
|
||||
XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
|
||||
@@ -4428,7 +4428,7 @@ dtb_options_indent_str_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->indent_str_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 52, "Indent string"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 52, "Indent string"));
|
||||
instance->indent_str_lbl =
|
||||
XtVaCreateWidget("dtb_options_indent_str_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4458,7 +4458,7 @@ dtb_options_reply_include_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->reply_include_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 53, "for Reply Include:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 53, "for Reply Include:"));
|
||||
instance->reply_include_lbl =
|
||||
XtVaCreateWidget("dtb_options_reply_include_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4526,8 +4526,8 @@ dtb_options_list_create(
|
||||
/*
|
||||
* Convert char* strings to XmStrings
|
||||
*/
|
||||
list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 40, "bcc"));
|
||||
list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 41, "return-receipt"));
|
||||
list_list_xmstrings[i++] = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 40, "bcc"));
|
||||
list_list_xmstrings[i++] = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 41, "return-receipt"));
|
||||
if (instance->list == NULL) {
|
||||
n = 0;
|
||||
XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
|
||||
@@ -4566,7 +4566,7 @@ dtb_options_menu_labels_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->menu_labels_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 42, "Menu Labels:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 42, "Menu Labels:"));
|
||||
instance->menu_labels_lbl =
|
||||
XtVaCreateWidget("dtb_options_menu_labels_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4669,7 +4669,7 @@ dtb_options_hdr_field_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->hdr_field_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 50, "Header Field:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 50, "Header Field:"));
|
||||
instance->hdr_field_lbl =
|
||||
XtVaCreateWidget("dtb_options_hdr_field_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4707,7 +4707,7 @@ dtb_options_def_value_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->def_value_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 51, "Default Value:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 51, "Default Value:"));
|
||||
instance->def_value_lbl =
|
||||
XtVaCreateWidget("dtb_options_def_value_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -4745,7 +4745,7 @@ dtb_options_add_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->add_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->add_button =
|
||||
XtVaCreateWidget("dtb_options_add_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -4782,7 +4782,7 @@ dtb_options_del_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->del_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->del_button =
|
||||
XtVaCreateWidget("dtb_options_del_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -4819,7 +4819,7 @@ dtb_options_change_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->change_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->change_button =
|
||||
XtVaCreateWidget("dtb_options_change_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -4948,7 +4948,7 @@ dtb_options_mailb_for_sent_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->mailb_for_sent_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
|
||||
instance->mailb_for_sent_lbl =
|
||||
XtVaCreateWidget("dtb_options_mailb_for_sent_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5068,7 +5068,7 @@ dtb_options_dpy_up_mbox_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 59, "Display up to:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 59, "Display up to:"));
|
||||
instance->dpy_up_mbox_cb_items.Display_up_to_item =
|
||||
XtVaCreateManagedWidget("dtb_options_dpy_up_mbox_cb_display_up_to_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -5128,7 +5128,7 @@ dtb_options_visit_mailb_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->visit_mailb_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
|
||||
instance->visit_mailb_lbl =
|
||||
XtVaCreateWidget("dtb_options_visit_mailb_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5212,7 +5212,7 @@ dtb_options_log_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->log_cb_items.Log_all_sent_messages_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 62, "Log all sent messages"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 62, "Log all sent messages"));
|
||||
instance->log_cb_items.Log_all_sent_messages_item =
|
||||
XtVaCreateManagedWidget("dtb_options_log_cb_log_all_sent_messages_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -5374,7 +5374,7 @@ dtb_options_move_menu_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->move_menu_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 57, "Move Menu"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 57, "Move Menu"));
|
||||
instance->move_menu_lbl =
|
||||
XtVaCreateWidget("dtb_options_move_menu_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5411,7 +5411,7 @@ dtb_options_move_menu_lbl2_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->move_menu_lbl2 == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
|
||||
instance->move_menu_lbl2 =
|
||||
XtVaCreateWidget("dtb_options_move_menu_lbl2",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5448,7 +5448,7 @@ dtb_options_path_file_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->path_file_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 54, "Path / File Name:"));
|
||||
instance->path_file_lbl =
|
||||
XtVaCreateWidget("dtb_options_path_file_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5486,7 +5486,7 @@ dtb_options_start_look_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->start_look_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 55, "Start looking in:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 55, "Start looking in:"));
|
||||
instance->start_look_lbl =
|
||||
XtVaCreateWidget("dtb_options_start_look_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5524,7 +5524,7 @@ dtb_options_mm_add_butt_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->mm_add_butt == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->mm_add_butt =
|
||||
XtVaCreateWidget("dtb_options_mm_add_butt",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -5561,7 +5561,7 @@ dtb_options_mm_delete_butt_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->mm_delete_butt == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->mm_delete_butt =
|
||||
XtVaCreateWidget("dtb_options_mm_delete_butt",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -5598,7 +5598,7 @@ dtb_options_mm_change_butt_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->mm_change_butt == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->mm_change_butt =
|
||||
XtVaCreateWidget("dtb_options_mm_change_butt",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -5635,7 +5635,7 @@ dtb_options_vacation_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->vacation_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
|
||||
instance->vacation_lbl =
|
||||
XtVaCreateWidget("dtb_options_vacation_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5730,7 +5730,7 @@ dtb_options_vacation_rb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->vacation_rb_items.On_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 64, "On"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 64, "On"));
|
||||
instance->vacation_rb_items.On_item =
|
||||
XtVaCreateManagedWidget("dtb_options_vacation_rb_on_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -5745,7 +5745,7 @@ dtb_options_vacation_rb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->vacation_rb_items.Off_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 65, "Off"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 65, "Off"));
|
||||
instance->vacation_rb_items.Off_item =
|
||||
XtVaCreateManagedWidget("dtb_options_vacation_rb_off_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -5822,7 +5822,7 @@ dtb_options_subject_tf_create(
|
||||
XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
|
||||
XtSetArg(args[n], XmNtopOffset, 4); ++n;
|
||||
XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
|
||||
XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office")); ++n;
|
||||
XtSetArg(args[n], XmNvalue, CATGETS(Dtb_project_catd, 2, 68, "Out of the office")); ++n;
|
||||
XtSetArg(args[n], XmNmaxLength, 80); ++n;
|
||||
XtSetArg(args[n], XmNeditable, True); ++n;
|
||||
XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
|
||||
@@ -5847,7 +5847,7 @@ dtb_options_msg_list_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->msg_list_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 69, "Message:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 69, "Message:"));
|
||||
instance->msg_list_lbl =
|
||||
XtVaCreateWidget("dtb_options_msg_list_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5884,7 +5884,7 @@ dtb_options_subject_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->subject_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 67, "Subject:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 67, "Subject:"));
|
||||
instance->subject_lbl =
|
||||
XtVaCreateWidget("dtb_options_subject_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -5922,7 +5922,7 @@ dtb_options_vacation_rb_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->vacation_rb_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 63, "Vacation:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 63, "Vacation:"));
|
||||
instance->vacation_rb_lbl =
|
||||
XtVaCreateWidget("dtb_options_vacation_rb_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6127,7 +6127,7 @@ dtb_options_templates_list_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->templates_list_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 72, "Templates:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 72, "Templates:"));
|
||||
instance->templates_list_lbl =
|
||||
XtVaCreateWidget("dtb_options_templates_list_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6164,7 +6164,7 @@ dtb_options_menu_label_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->menu_label_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 71, "Menu Label:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 71, "Menu Label:"));
|
||||
instance->menu_label_lbl =
|
||||
XtVaCreateWidget("dtb_options_menu_label_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6202,7 +6202,7 @@ dtb_options_path_filename_label_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->path_filename_label_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 54, "Path / File Name:"));
|
||||
instance->path_filename_label_lbl =
|
||||
XtVaCreateWidget("dtb_options_path_filename_label_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6240,7 +6240,7 @@ dtb_options_tem_add_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->tem_add_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->tem_add_but =
|
||||
XtVaCreateWidget("dtb_options_tem_add_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6277,7 +6277,7 @@ dtb_options_tem_del_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->tem_del_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->tem_del_but =
|
||||
XtVaCreateWidget("dtb_options_tem_del_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6314,7 +6314,7 @@ dtb_options_tem_change_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->tem_change_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->tem_change_but =
|
||||
XtVaCreateWidget("dtb_options_tem_change_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6518,7 +6518,7 @@ dtb_options_alias_list_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->alias_list_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 75, "Aliases:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 75, "Aliases:"));
|
||||
instance->alias_list_lbl =
|
||||
XtVaCreateWidget("dtb_options_alias_list_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6555,7 +6555,7 @@ dtb_options_alias_tf_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->alias_tf_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 73, "Alias:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 73, "Alias:"));
|
||||
instance->alias_tf_lbl =
|
||||
XtVaCreateWidget("dtb_options_alias_tf_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6593,7 +6593,7 @@ dtb_options_address_tf_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->address_tf_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 74, "Addresses:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 74, "Addresses:"));
|
||||
instance->address_tf_lbl =
|
||||
XtVaCreateWidget("dtb_options_address_tf_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6631,7 +6631,7 @@ dtb_options_alias_add_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->alias_add_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->alias_add_but =
|
||||
XtVaCreateWidget("dtb_options_alias_add_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6668,7 +6668,7 @@ dtb_options_alias_delete_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->alias_delete_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->alias_delete_but =
|
||||
XtVaCreateWidget("dtb_options_alias_delete_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6705,7 +6705,7 @@ dtb_options_al_change_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->al_change_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->al_change_but =
|
||||
XtVaCreateWidget("dtb_options_al_change_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -6780,7 +6780,7 @@ dtb_options_update_mailb_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->update_mailb_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 76, "Update mailbox state:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 76, "Update mailbox state:"));
|
||||
instance->update_mailb_lbl =
|
||||
XtVaCreateWidget("dtb_options_update_mailb_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6816,7 +6816,7 @@ dtb_options_frequently_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->frequently_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 77, "Frequently"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 77, "Frequently"));
|
||||
instance->frequently_lbl =
|
||||
XtVaCreateWidget("dtb_options_frequently_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6852,7 +6852,7 @@ dtb_options_seldom_lbl_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->seldom_lbl == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 78, "Seldom"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 78, "Seldom"));
|
||||
instance->seldom_lbl =
|
||||
XtVaCreateWidget("dtb_options_seldom_lbl",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6947,7 +6947,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_label == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 79, "Defaults:"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 79, "Defaults:"));
|
||||
instance->adv_def_cb_label =
|
||||
XtVaCreateWidget("dtb_options_adv_def_cb_label",
|
||||
xmLabelWidgetClass,
|
||||
@@ -6980,7 +6980,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 80, "Show confirmation notices"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 80, "Show confirmation notices"));
|
||||
instance->adv_def_cb_items.Show_confirmation_notices_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_show_confirmation_notices_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -6995,7 +6995,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
|
||||
instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_strict_m_i_m_e_character_encoding_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -7010,7 +7010,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
|
||||
instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_network_aware_mail_file_locking_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -7025,7 +7025,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
|
||||
instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_ignore_host_name_in_address_allnet_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -7040,7 +7040,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
|
||||
instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_include_me_when_i_reply_to_all_metoo_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -7055,7 +7055,7 @@ dtb_options_adv_def_cb_create(
|
||||
return -1;
|
||||
|
||||
if (instance->adv_def_cb_items.Use_local_name_username_item == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 85, "Use local name: username ="));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 85, "Use local name: username ="));
|
||||
instance->adv_def_cb_items.Use_local_name_username_item =
|
||||
XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_local_name_username_item",
|
||||
xmToggleButtonWidgetClass,
|
||||
@@ -7214,7 +7214,7 @@ dtb_options_local_name_add_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->local_name_add_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 29, "Add"));
|
||||
instance->local_name_add_but =
|
||||
XtVaCreateWidget("dtb_options_local_name_add_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7251,7 +7251,7 @@ dtb_options_local_name_del_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->local_name_del_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 30, "Delete"));
|
||||
instance->local_name_del_but =
|
||||
XtVaCreateWidget("dtb_options_local_name_del_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7288,7 +7288,7 @@ dtb_options_local_name_chg_but_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->local_name_chg_but == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 31, "Change"));
|
||||
instance->local_name_chg_but =
|
||||
XtVaCreateWidget("dtb_options_local_name_chg_but",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7325,7 +7325,7 @@ dtb_options_ok_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->ok_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 86, "OK"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 86, "OK"));
|
||||
instance->ok_button =
|
||||
XtVaCreateWidget("dtb_options_ok_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7365,7 +7365,7 @@ dtb_options_reset_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->reset_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 87, "Reset"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 87, "Reset"));
|
||||
instance->reset_button =
|
||||
XtVaCreateWidget("dtb_options_reset_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7405,7 +7405,7 @@ dtb_options_cancel_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->cancel_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 88, "Cancel"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 88, "Cancel"));
|
||||
instance->cancel_button =
|
||||
XtVaCreateWidget("dtb_options_cancel_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7476,7 +7476,7 @@ dtb_options_apply_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->apply_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 89, "Apply"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 89, "Apply"));
|
||||
instance->apply_button =
|
||||
XtVaCreateWidget("dtb_options_apply_button",
|
||||
xmPushButtonWidgetClass,
|
||||
@@ -7516,7 +7516,7 @@ dtb_options_help_button_create(
|
||||
XmString label_xmstring = NULL;
|
||||
|
||||
if (instance->help_button == NULL) {
|
||||
label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 90, "Help"));
|
||||
label_xmstring = XmStringCreateLocalized(CATGETS(Dtb_project_catd, 2, 90, "Help"));
|
||||
instance->help_button =
|
||||
XtVaCreateWidget("dtb_options_help_button",
|
||||
xmPushButtonWidgetClass,
|
||||
|
||||
Reference in New Issue
Block a user