int const chars_blanks = countChars(from, to, true);
docstring message;
if (cur.selection())
int const chars_blanks = countChars(from, to, true);
docstring message;
if (cur.selection())
- message = _("Statistics for the selection:\n");
+ message = _("Statistics for the selection:");
- message = _("Statistics for the document:\n");
+ message = _("Statistics for the document:");
+ message += "\n\n";
- message += bformat(_("\n%1$d words"), words);
+ message += bformat(_("%1$d words"), words);
- message += _("\nOne word");
+ message += _("One word");
+ message += "\n";
- message += bformat(_("\n%1$d characters (including blanks)"),
+ message += bformat(_("%1$d characters (including blanks)"),
- message += _("\nOne character (including blanks)");
+ message += _("One character (including blanks)");
+ message += "\n";
- message += bformat(_("\n%1$d characters (excluding blanks)"),
+ message += bformat(_("%1$d characters (excluding blanks)"),
- message += _("\nOne character (excluding blanks)");
+ message += _("One character (excluding blanks)");
Alert::information(_("Statistics"), message);
}
Alert::information(_("Statistics"), message);
}