Commit e5a13880 authored by Morten Welinder's avatar Morten Welinder

s/can not/cannot/

parent f43d7260
......@@ -98,7 +98,7 @@ main (int argc, char *argv[])
NULL, "GOADID:GNOME:Gnumeric:Workbook:1.0", 0, NULL);
if (workbook == CORBA_OBJECT_NIL){
printf ("Can not bind workbook");
printf ("Cannot bind workbook");
exit (1);
}
......
......@@ -273,7 +273,7 @@ create_test (BonoboUIHandler *uih)
object = bonobo_object_activate ("GOADID:embeddable:Graph:Layout", 0);
#endif
if (!object) {
printf ("Can not activate object\n");
printf ("Cannot activate object\n");
exit (1);
}
......
......@@ -172,7 +172,7 @@ cellspan_is_empty (int col, ColRowInfo const *ri, Cell const *ok_span_cell)
return FALSE;
tmp = sheet_cell_get (ok_span_cell->base.sheet, col, ri->pos);
/* FIXME : can not use cell_is_blank until expressions can span.
/* FIXME : cannot use cell_is_blank until expressions can span.
* because cells with expressions start out with value Empty
* existing spans continue to flow through, but never get removed
* because we don't respan expression results.
......
......@@ -30,7 +30,7 @@ dialog_choose_cols_vs_rows (WorkbookControlGUI *wbcg, const char *title,
dialog = GNOME_DIALOG (glade_xml_get_widget (gui, "dialog1"));
if (dialog == NULL){
g_warning ("Can not find the `dialog1' widget in colrow.glade");
g_warning ("Cannot find the `dialog1' widget in colrow.glade");
gtk_object_destroy (GTK_OBJECT (gui));
return FALSE;
}
......@@ -71,7 +71,7 @@ dialog_get_number (WorkbookControlGUI *wbcg,
dialog = GNOME_DIALOG (glade_xml_get_widget (gui, "dialog1"));
if (dialog == NULL){
g_warning ("Can not find the `dialog1' widget in %s", glade_file);
g_warning ("Cannot find the `dialog1' widget in %s", glade_file);
gtk_object_destroy (GTK_OBJECT (gui));
return FALSE;
}
......@@ -119,7 +119,7 @@ dialog_get_sheet_name (WorkbookControlGUI *wbcg, const char *current)
dialog = GNOME_DIALOG (glade_xml_get_widget (gui, "dialog"));
if (dialog == NULL){
g_warning ("Can not find the `dialog' widget in sheet-rename.glade");
g_warning ("Cannot find the `dialog' widget in sheet-rename.glade");
gtk_object_destroy (GTK_OBJECT (gui));
return NULL;
}
......
......@@ -395,9 +395,10 @@ ask_for_file_saver (WorkbookControlGUI *wbcg, WorkbookView *wb_view)
return (fs);
}
void gui_file_save_to_stream (BonoboStream *stream, WorkbookControlGUI *wbcg,
WorkbookView *wb_view, const gchar *mime_type,
CORBA_Environment *ev)
void
gui_file_save_to_stream (BonoboStream *stream, WorkbookControlGUI *wbcg,
WorkbookView *wb_view, const gchar *mime_type,
CORBA_Environment *ev)
{
GnumFileSaver *fs = NULL;
IOContext *io_context;
......
......@@ -111,6 +111,36 @@ handle_paint_events (void)
gtk_main_iteration_do (FALSE);
}
static void
warn_about_ancient_gnumerics (const char *binary, WorkbookControl *wbc)
{
struct stat buf;
time_t now = time (NULL);
int days = 180;
if (binary &&
stat (binary, &buf) != -1 &&
buf.st_mtime != -1 &&
now - buf.st_mtime > days * 24 * 60 * 60) {
handle_paint_events ();
gnumeric_error_system (COMMAND_CONTEXT (wbc),
_("Thank you for using Gnumeric!\n"
"\n"
"The version of Gnumeric you are using is quite old\n"
"by now. It is likely that many bugs have been fixed\n"
"and that new features have been added in the meantime.\n"
"\n"
"Please consider upgrading before reporting any bugs.\n"
"Consult http://www.gnumeric.org/ for details.\n"
"\n"
"-- The Gnumeric Team."));
}
}
#if 0
static void
gnumeric_check_for_components (void)
......@@ -242,27 +272,7 @@ gnumeric_main (void *closure, int argc, char *argv [])
handle_paint_events ();
}
if (gnumeric_binary) {
struct stat buf;
time_t now = time (NULL);
int days = 180;
if (stat (gnumeric_binary, &buf) != -1 &&
buf.st_mtime != -1 &&
now - buf.st_mtime > days * 24 * 60 * 60) {
gnumeric_error_system (COMMAND_CONTEXT (wbc),
_("Thank you for using Gnumeric!\n"
"\n"
"The version of Gnumeric you are using is quite old\n"
"by now. It is likely that many bugs have been fixed\n"
"and that new features have been added in the meantime.\n"
"\n"
"Please consider upgrading before reporting any bugs.\n"
"Consult http://www.gnumeric.org/ for details.\n"
"\n"
"-- The Gnumeric Team."));
}
}
warn_about_ancient_gnumerics (gnumeric_binary, wbc);
gtk_main ();
}
......
......@@ -111,6 +111,36 @@ handle_paint_events (void)
gtk_main_iteration_do (FALSE);
}
static void
warn_about_ancient_gnumerics (const char *binary, WorkbookControl *wbc)
{
struct stat buf;
time_t now = time (NULL);
int days = 180;
if (binary &&
stat (binary, &buf) != -1 &&
buf.st_mtime != -1 &&
now - buf.st_mtime > days * 24 * 60 * 60) {
handle_paint_events ();
gnumeric_error_system (COMMAND_CONTEXT (wbc),
_("Thank you for using Gnumeric!\n"
"\n"
"The version of Gnumeric you are using is quite old\n"
"by now. It is likely that many bugs have been fixed\n"
"and that new features have been added in the meantime.\n"
"\n"
"Please consider upgrading before reporting any bugs.\n"
"Consult http://www.gnumeric.org/ for details.\n"
"\n"
"-- The Gnumeric Team."));
}
}
#if 0
static void
gnumeric_check_for_components (void)
......@@ -242,27 +272,7 @@ gnumeric_main (void *closure, int argc, char *argv [])
handle_paint_events ();
}
if (gnumeric_binary) {
struct stat buf;
time_t now = time (NULL);
int days = 180;
if (stat (gnumeric_binary, &buf) != -1 &&
buf.st_mtime != -1 &&
now - buf.st_mtime > days * 24 * 60 * 60) {
gnumeric_error_system (COMMAND_CONTEXT (wbc),
_("Thank you for using Gnumeric!\n"
"\n"
"The version of Gnumeric you are using is quite old\n"
"by now. It is likely that many bugs have been fixed\n"
"and that new features have been added in the meantime.\n"
"\n"
"Please consider upgrading before reporting any bugs.\n"
"Consult http://www.gnumeric.org/ for details.\n"
"\n"
"-- The Gnumeric Team."));
}
}
warn_about_ancient_gnumerics (gnumeric_binary, wbc);
gtk_main ();
}
......
......@@ -584,7 +584,7 @@ array_row: array_exp {
} else {
return gnumeric_parse_error (
state, PERR_INVALID_ARRAY_SEPARATOR,
g_strdup_printf (_("The character %c can not be used to separate array elements"),
g_strdup_printf (_("The character %c cannot be used to separate array elements"),
state->array_col_separator), state->expr_text - state->expr_backup + 1, 1);
}
}
......@@ -598,7 +598,7 @@ array_row: array_exp {
/* FIXME: Is this the right error to display? */
return gnumeric_parse_error (
state, PERR_INVALID_ARRAY_SEPARATOR,
g_strdup_printf (_("The character %c can not be used to separate array elements"),
g_strdup_printf (_("The character %c cannot be used to separate array elements"),
state->array_col_separator), state->expr_text - state->expr_backup + 1, 1);
}
}
......
......@@ -843,7 +843,7 @@ scg_make_cell_visible (SheetControlGUI *scg, int col, int row,
} else if (couple_panes) { /* pane 2 */
/* FIXME : We may need to change the way this routine
* is used to fix this. Because we only know what the
* target cell is we can not absolutely differentiate
* target cell is we cannot absolutely differentiate
* between col & row scrolling. For now use the
* heuristic that if the col was visible this is a
* vertical jump.
......
......@@ -1163,7 +1163,7 @@ cb_sheet_get_extent (gpointer ignored, gpointer value, gpointer data)
if (!res->spans_and_merges_extend)
return;
/* Can not span AND merge */
/* Cannot span AND merge */
if (cell_is_merged (cell)) {
Range const *merged =
sheet_merge_is_corner (cell->base.sheet, &cell->pos);
......@@ -2247,7 +2247,7 @@ sheet_range_contains_region (Sheet const *sheet, Range const *r,
if (merged != NULL) {
if (wbc != NULL)
gnumeric_error_invalid (COMMAND_CONTEXT (wbc), cmd,
_("can not operate on merged cells"));
_("cannot operate on merged cells"));
g_slist_free (merged);
return TRUE;
}
......@@ -2258,7 +2258,7 @@ sheet_range_contains_region (Sheet const *sheet, Range const *r,
cb_cell_is_array, NULL)) {
if (wbc != NULL)
gnumeric_error_invalid (COMMAND_CONTEXT (wbc), cmd,
_("can not operate on array formulae"));
_("cannot operate on array formulae"));
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment