Remove extraneous carriage returns from text that will be put into a

GtkLabel (since labels know how to wrap text).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13046 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2006-01-30 03:13:28 +00:00
parent 7620b1918d
commit f990299ddb
29 changed files with 88 additions and 84 deletions
+3
View File
@@ -1,5 +1,8 @@
2006-01-29 David Hampton <hampton@employees.org>
* various: Remove extraneous carriage returns from text that will
be put into a GtkLabel (since labels know how to wrap text).
* src/report/stylesheets/stylesheet-fancy.scm : Dave Herman's
patch to suppresses extraneous entries table entries in reports
when there are no files specified for the "logo pix" file or the
@@ -287,7 +287,7 @@ new_billterm_ok_cb (NewBillTerm *nbt)
}
if (gncBillTermLookupByName (btw->book, name)) {
message = g_strdup_printf(_(
"You must provide a unique name for this Billing Term.\n"
"You must provide a unique name for this Billing Term. "
"Your choice \"%s\" is already in use."), name);
gnc_error_dialog (nbt->dialog, "%s", message);
g_free (message);
@@ -265,7 +265,7 @@ gnc_customer_window_ok_cb (GtkWidget *widget, gpointer data)
/* Check for valid company name */
if (check_entry_nonempty (cw->dialog, cw->company_entry,
_("You must enter a company name.\n"
_("You must enter a company name. "
"If this customer is an individual (and not a company) "
"you should set the \"company name\" and \"contact name\" "
"the same.")))
+2 -2
View File
@@ -284,8 +284,8 @@ gnc_order_window_close_order_cb (GtkWidget *widget, gpointer data)
* close this order!
*/
message = _("This order contains entries that have not been invoiced.\n"
"Are you sure you want to close it out before\n"
message = _("This order contains entries that have not been invoiced. "
"Are you sure you want to close it out before "
"you invoice all the entries?");
if (gnc_verify_dialog (ow->dialog, FALSE, message) == FALSE)
+1 -1
View File
@@ -202,7 +202,7 @@ gnc_vendor_window_ok_cb (GtkWidget *widget, gpointer data)
/* Check for valid company name */
if (check_entry_nonempty (vw->dialog, vw->company_entry,
_("You must enter a company name.\n"
_("You must enter a company name. "
"If this vendor is an individual (and not a company) "
"you should set the \"company name\" and \"contact name\" "
"the same.")))
@@ -80,8 +80,8 @@ Account *
gnc_entry_ledger_get_account_by_name (GncEntryLedger *ledger, BasicCell * bcell,
const char *name, gboolean *new)
{
const char *placeholder = _("The account %s does not allow transactions.\n");
const char *missing = _("The account %s does not exist.\n"
const char *placeholder = _("The account %s does not allow transactions.");
const char *missing = _("The account %s does not exist. "
"Would you like to create it?");
char *fullname;
ComboCell *cell = (ComboCell *) bcell;
@@ -373,7 +373,7 @@ static gboolean gnc_entry_ledger_traverse (VirtualLocation *p_new_virt_loc,
break;
{
const char *format = _("The tax table %s does not exist.\n"
const char *format = _("The tax table %s does not exist. "
"Would you like to create it?");
if (!gnc_verify_dialog (ledger->parent, TRUE, format, name))
break;
@@ -588,7 +588,7 @@ gnc_entry_ledger_check_close_internal (GtkWidget *parent,
GncEntryLedger *ledger,
gboolean dontask)
{
const char *message = _("The current entry has been changed.\n"
const char *message = _("The current entry has been changed. "
"Would you like to save it?");
VirtualLocation virt_loc;
@@ -105,7 +105,7 @@ new_tax_table_ok_cb (NewTaxTable *ntt)
}
if (gncTaxTableLookupByName (ttw->book, name)) {
message = g_strdup_printf(_(
"You must provide a unique name for this Tax Table.\n"
"You must provide a unique name for this Tax Table. "
"Your choice \"%s\" is already in use."), name);
gnc_error_dialog (ntt->dialog, "%s", message);
g_free (message);
@@ -592,7 +592,7 @@ tax_table_delete_entry_cb (GtkButton *button, TaxTableWindow *ttw)
return;
if (g_list_length (gncTaxTableGetEntries (ttw->current_table)) <= 1) {
char *message = _("You cannot remove the last entry from the tax table.\n"
char *message = _("You cannot remove the last entry from the tax table. "
"Try deleting the tax table if you want to do that.");
gnc_error_dialog (ttw->dialog, message);
return;
+3 -3
View File
@@ -239,9 +239,9 @@ GetOrMakeLotOrphanAccount (AccountGroup *root, gnc_commodity * currency)
xaccAccountSetType (acc, INCOME);
xaccAccountSetDescription (acc, _("Realized Gain/Loss"));
xaccAccountSetNotes (acc,
_("Realized Gains or Losses from\n"
"Commodity or Trading Accounts\n"
"that haven't been recorded elsewhere.\n"));
_("Realized Gains or Losses from "
"Commodity or Trading Accounts "
"that haven't been recorded elsewhere."));
/* Hang the account off the root. */
xaccGroupInsertAccount (root, acc);
+1 -1
View File
@@ -963,7 +963,7 @@ gnc_new_account_ok (AccountWindow *aw)
if (!transfer)
{
const char *message = _("You must select a transfer account or choose"
"\nthe opening balances equity account.");
" the opening balances equity account.");
gnc_error_dialog(aw->dialog, message);
LEAVE(" ");
return;
+2 -2
View File
@@ -477,7 +477,7 @@ gnc_ui_select_commodity_response_cb (GtkDialog * dialog, gint response, gpointer
gnc_ui_select_commodity_destroy (w);
} else {
gnc_warning_dialog (dialog,
_("You must select a commodity.\n"
_("You must select a commodity. "
"To create a new one, click \"New\""));
}
break;
@@ -1175,7 +1175,7 @@ gnc_ui_commodity_dialog_to_object(CommodityWindow * w)
else {
gnc_warning_dialog(w->dialog,
_("You must enter a non-empty \"Full name\", "
"\"Symbol/abbreviation\",\n"
"\"Symbol/abbreviation\", "
"and \"Type\" for the commodity."));
return FALSE;
}
+3 -3
View File
@@ -1359,8 +1359,8 @@ gnc_xfer_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data)
{
if ((from_account == NULL) || (to_account == NULL))
{
const char *message = _("You must specify an account to transfer from,\n"
"or to, or both, for this transaction.\n"
const char *message = _("You must specify an account to transfer from, "
"or to, or both, for this transaction. "
"Otherwise, it will not be recorded.");
gnc_error_dialog(xferData->dialog, message);
LEAVE("bad account");
@@ -1380,7 +1380,7 @@ gnc_xfer_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data)
xaccAccountGetPlaceholder(to_account))
{
const char *placeholder_format =
_("The account %s\ndoes not allow transactions.\n");
_("The account %s does not allow transactions.");
char *name;
if (xaccAccountGetPlaceholder(from_account))
+2 -2
View File
@@ -882,7 +882,7 @@ gnc_file_export_file(const char * newfile)
/* oops ... file already exists ... ask user what to do... */
if (qof_session_save_may_clobber_data (new_session))
{
const char *format = _("The file \n %s\n already exists.\n"
const char *format = _("The file %s already exists. "
"Are you sure you want to overwrite it?");
/* if user says cancel, we should break out */
@@ -1073,7 +1073,7 @@ gnc_file_save_as (void)
/* oops ... file already exists ... ask user what to do... */
if (qof_session_save_may_clobber_data (new_session))
{
const char *format = _("The file \n %s\n already exists.\n"
const char *format = _("The file %s already exists. "
"Are you sure you want to overwrite it?");
/* if user says cancel, we should break out */
+8 -8
View File
@@ -602,8 +602,8 @@ gnc_html_load_to_stream(gnc_html * html, GtkHTMLStream * handle,
if (!safe_strcmp (type, URL_TYPE_SECURE)) {
if(!https_allowed()) {
gnc_error_dialog( html->window,
_("Secure HTTP access is disabled.\n"
"You can enable it in the Network section of\n"
_("Secure HTTP access is disabled. "
"You can enable it in the Network section of "
"the Preferences dialog."));
break;
}
@@ -611,8 +611,8 @@ gnc_html_load_to_stream(gnc_html * html, GtkHTMLStream * handle,
if(!http_allowed()) {
gnc_error_dialog( html->window,
_("Network HTTP access is disabled.\n"
"You can enable it in the Network section of\n"
_("Network HTTP access is disabled. "
"You can enable it in the Network section of "
"the Preferences dialog."));
} else {
char *fullurl;
@@ -1061,8 +1061,8 @@ gnc_html_show_url(gnc_html * html, URLType type,
if (!safe_strcmp (type, URL_TYPE_SECURE)) {
if(!https_allowed()) {
gnc_error_dialog( html->window,
_("Secure HTTP access is disabled.\n"
"You can enable it in the Network section of\n"
_("Secure HTTP access is disabled. "
"You can enable it in the Network section of "
"the Preferences dialog."));
break;
}
@@ -1071,8 +1071,8 @@ gnc_html_show_url(gnc_html * html, URLType type,
if (safe_strcmp (type, URL_TYPE_FILE)) {
if(!http_allowed()) {
gnc_error_dialog( html->window,
_("Network HTTP access is disabled.\n"
"You can enable it in the Network section of\n"
_("Network HTTP access is disabled. "
"You can enable it in the Network section of "
"the Preferences dialog."));
break;
}
+2 -2
View File
@@ -123,8 +123,8 @@ remove_clicked (CommoditiesDialog *cd)
if (!can_delete)
{
const char *message = _("That commodity is currently used by\n"
"at least one of your accounts. You may\n"
const char *message = _("That commodity is currently used by "
"at least one of your accounts. You may "
"not delete it.");
gnc_warning_dialog (cd->dialog, message);
+7 -7
View File
@@ -825,7 +825,7 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
&& !gnc_verify_dialog( sxed->dialog, FALSE,
"%s",
_("The Scheduled Transaction Editor "
"cannot automatically\nbalance "
"cannot automatically balance "
"this transaction. "
"Should it still be "
"entered?") ) ) {
@@ -870,7 +870,7 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
if ( nameHasChanged && nameExists ) {
const char *sx_has_existing_name_msg =
_( "A Scheduled Transaction with the "
"name \"%s\" already exists.\n"
"name \"%s\" already exists. "
"Are you sure you want to name "
"this one the same?" );
if ( ! gnc_verify_dialog( sxed->dialog, FALSE,
@@ -897,7 +897,7 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
if ( (ttVarCount > 0) && autocreateState ) {
gnc_warning_dialog( sxed->dialog,
_("Scheduled Transactions with variables\n"
_("Scheduled Transactions with variables "
"cannot be automatically created.") );
return FALSE;
}
@@ -906,7 +906,7 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
* only valid if there's actually a transaction to create. */
if ( autocreateState && splitCount == 0 ) {
gnc_warning_dialog( sxed->dialog,
_("Scheduled Transactions without a template\n"
_("Scheduled Transactions without a template "
"transaction cannot be automatically created.") );
return FALSE;
}
@@ -980,7 +980,7 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
&& (g_date_compare( &nextDate, &endDate ) > 0)) ) {
const char *invalid_sx_check_msg =
_( "You have attempted to create a Scheduled "
"Transaction which will never run.\nDo you "
"Transaction which will never run. Do you "
"really want to do this?" );
if ( ! gnc_verify_dialog( sxed->dialog, FALSE,
invalid_sx_check_msg) ) {
@@ -1782,7 +1782,7 @@ delete_button_clicked( GtkButton *b, gpointer d )
GList *sel, *sxList, *beingEditedList, *l;
SchedXactionDialog *sxd;
char *beingEditedMessage =
_( "The following transactions are presently being edited;\n"
_( "The following transactions are presently being edited; "
"are you sure you want to delete them?" );
char *confirmMessage =
_( "Delete the selected Scheduled Transactions?" );
@@ -2127,7 +2127,7 @@ gnc_sxed_reg_check_close(SchedXactionEditorDialog *sxed)
SplitRegister *reg;
const char *message =
_("The current template transaction "
"has been changed.\n"
"has been changed. "
"Would you like to record the changes?");
reg = gnc_ledger_display_get_split_register (sxed->ledger);
+3 -3
View File
@@ -267,7 +267,7 @@ sxftd_add_template_trans(SXFromTransInfo *sxfti)
&& !gnc_verify_dialog( (gncUIWidget)sxfti->dialog,
FALSE, "%s",
_("The Scheduled Transaction Editor "
"cannot automatically\nbalance "
"cannot automatically balance "
"this transaction. "
"Should it still be "
"entered?") ) ) {
@@ -563,7 +563,7 @@ sxftd_ok_clicked(SXFromTransInfo *sxfti)
if ( sx_error == SXFTD_ERRNO_UNBALANCED_XACTION ) {
gnc_error_dialog( gnc_ui_get_toplevel(),
_( "The Scheduled Transaction is unbalanced.\n"
_( "The Scheduled Transaction is unbalanced. "
"You are strongly encouraged to correct this situation." ) );
}
book = gnc_get_current_book ();
@@ -806,7 +806,7 @@ gnc_sx_create_from_trans( Transaction *trans )
{
gnc_error_dialog( gnc_ui_get_toplevel(),
_( "Cannot create a Scheduled Transaction "
"from a Transaction currently\n"
"from a Transaction currently "
"being edited. Please Enter the "
"Transaction before Scheduling." ) );
sxftd_close( sxfti, TRUE );
+5 -5
View File
@@ -420,9 +420,9 @@ gnc_sx_sxsincelast_book_opened (void)
gnc_info_dialog
(NULL,
ngettext
("There are no Scheduled Transactions to be entered at this time.\n"
("There are no Scheduled Transactions to be entered at this time. "
"(%d transaction automatically created)",
"There are no Scheduled Transactions to be entered at this time.\n"
"There are no Scheduled Transactions to be entered at this time. "
"(%d transactions automatically created)",
-(ret)),
-(ret));
@@ -1435,7 +1435,7 @@ cancel_check( GnomeDruidPage *druid_page,
sxSinceLastData *sxsld = (sxSinceLastData*)ud;
char *lastrun_cancel_check_msg =
_( "Cancelling the Since-Last-Run dialog "
"will revert all changes.\n"
"will revert all changes. "
"Are you sure you want to lose all "
"Scheduled Transaction changes?" );
@@ -3536,8 +3536,8 @@ inform_or_add( sxSinceLastData *sxsld, reminderTuple *rt, gboolean okFlag,
userMsg = g_string_sized_new( 128 );
g_string_printf( userMsg,
"You cannot skip instances of "
"Scheduled Transactions.\n"
"The following instances of \"%s\"\n"
"Scheduled Transactions. "
"The following instances of \"%s\" "
"must be selected as well:\n\n",
xaccSchedXactionGetName( rt->sx ) );
g_list_foreach( badList, create_bad_reminders_msg, userMsg );
+1 -1
View File
@@ -286,7 +286,7 @@ show_book_details (AcctPeriodInfo *info)
period_text =
_("You have asked for a book to be created. This book "
"will contain all transactions up to midnight %s "
"(for a total of %d transactions spread over %d accounts).\n"
"(for a total of %d transactions spread over %d accounts). "
"Click on 'Next' to create this book. "
"Click on 'Back' to adjust the dates.");
str = g_strdup_printf (period_text, close_date_str, ntrans, nacc);
+4 -4
View File
@@ -310,7 +310,7 @@ gnc_stock_split_druid_details_next (GnomeDruidPage *druidpage,
if (!gnc_amount_edit_evaluate (GNC_AMOUNT_EDIT (info->price_edit)))
{
gnc_parse_error_dialog (info,
_("You must either enter a valid price\n"
_("You must either enter a valid price "
"or leave it blank."));
return TRUE;
}
@@ -357,7 +357,7 @@ gnc_stock_split_druid_cash_next (GnomeDruidPage *druidpage,
if (!gnc_amount_edit_evaluate (GNC_AMOUNT_EDIT (info->cash_edit)))
{
gnc_parse_error_dialog (info,
_("You must either enter a valid cash amount\n"
_("You must either enter a valid cash amount "
"or leave it blank."));
return TRUE;
}
@@ -378,7 +378,7 @@ gnc_stock_split_druid_cash_next (GnomeDruidPage *druidpage,
account = gnc_tree_view_account_get_selected_account (GNC_TREE_VIEW_ACCOUNT(info->income_tree));
if (!account)
{
const char *message = _("You must select an income account\n"
const char *message = _("You must select an income account "
"for the cash distribution.");
gnc_error_dialog (info->window, message);
return TRUE;
@@ -387,7 +387,7 @@ gnc_stock_split_druid_cash_next (GnomeDruidPage *druidpage,
account = gnc_tree_view_account_get_selected_account (GNC_TREE_VIEW_ACCOUNT(info->asset_tree));
if (!account)
{
const char *message = _("You must select an asset account\n"
const char *message = _("You must select an asset account "
"for the cash distribution.");
gnc_error_dialog (info->window, message);
return TRUE;
+2 -2
View File
@@ -426,9 +426,9 @@ gnc_main_window_cmd_actions_since_last_run (GtkAction *action, GncMainWindowActi
gnc_info_dialog (GTK_WIDGET(&window->gtk_window), ngettext
/* Translators: %d is the number of transactions. This is a
ngettext(3) message. */
("There are no Scheduled Transactions to be entered at this time.\n"
("There are no Scheduled Transactions to be entered at this time. "
"(%d transaction automatically created)",
"There are no Scheduled Transactions to be entered at this time.\n"
"There are no Scheduled Transactions to be entered at this time. "
"(%d transactions automatically created)",
-(ret)),
-(ret));
+2 -2
View File
@@ -2029,7 +2029,7 @@ recnFinishCB (GtkWidget *w, gpointer data)
if (!gnc_numeric_zero_p (recnRecalculateBalance(recnData)))
{
const char *message = _("The account is not balanced.\n"
const char *message = _("The account is not balanced. "
"Are you sure you want to finish?");
if (!gnc_verify_dialog (recnData->window, FALSE, message))
return;
@@ -2121,7 +2121,7 @@ recnCancelCB (GtkWidget *w, gpointer data)
if (changed)
{
const char *message = _("You have made changes to this reconcile "
"window.\nAre you sure you want to cancel?");
"window. Are you sure you want to cancel?");
if (!gnc_verify_dialog(recnData->window, FALSE, message))
return;
}
@@ -266,8 +266,8 @@ make_commodity_druid_page(gnc_commodity * comm)
info_label =
gtk_label_new(_("Pick the type of the currency or security. For "
"national currencies, \nuse \"CURRENCY\". "
"Enter a new type in the box if the ones in the\n"
"national currencies, use \"CURRENCY\". "
"Enter a new type in the box if the ones in the "
"pick list are inappropriate."));
gtk_label_set_justify (GTK_LABEL(info_label), GTK_JUSTIFY_LEFT);
@@ -288,7 +288,7 @@ make_commodity_druid_page(gnc_commodity * comm)
info_label =
gtk_label_new(_("Enter a descriptive name for the currency or stock, "
"such as \n\"US Dollar\" or \"Red Hat Stock\""));
"such as \"US Dollar\" or \"Red Hat Stock\""));
gtk_label_set_justify (GTK_LABEL(info_label), GTK_JUSTIFY_LEFT);
gtk_box_pack_start(GTK_BOX(top_vbox), info_label, TRUE, TRUE, 0);
@@ -307,7 +307,7 @@ make_commodity_druid_page(gnc_commodity * comm)
info_label =
gtk_label_new(_("Enter the ticker symbol (such as \"RHAT\"), "
"national currency symbol \n(such as \"USD\"), or "
"national currency symbol (such as \"USD\"), or "
"other unique abbreviation for the name."));
gtk_label_set_justify (GTK_LABEL(info_label), GTK_JUSTIFY_LEFT);
@@ -326,7 +326,7 @@ make_commodity_druid_page(gnc_commodity * comm)
gtk_box_pack_start(GTK_BOX(top_vbox), temp, FALSE, FALSE, 5);
next_label = gtk_label_new(_("Click \"Next\" to accept the information "
"and move \nto the next currency or stock."));
"and move to the next currency or stock."));
gtk_label_set_justify (GTK_LABEL(next_label), GTK_JUSTIFY_LEFT);
gtk_box_pack_start(GTK_BOX(top_vbox), next_label, TRUE, TRUE, 0);
@@ -407,7 +407,7 @@ gnc_ui_commodity_druid_comm_check_cb(GnomeDruidPage * page, gpointer druid,
(strlen(new_name) == 0) ||
(strlen(new_mnemonic) == 0)) {
gnc_warning_dialog(cd->window,
_("You must put values for the type, name,\n"
_("You must put values for the type, name, "
"and abbreviation of the currency/stock."));
return TRUE;
+3 -6
View File
@@ -155,8 +155,7 @@ gnc_verify_exist_or_new_file (GtkWidget *parent, const char *filename)
return gnc_verify_dialog
(parent, TRUE,
_("The file %s does not exist. \n"
"Would you like to create it now?"),
_("The file %s does not exist. Would you like to create it now?"),
filename ? filename : _("(null)"));
}
@@ -169,10 +168,8 @@ gnc_test_dir_exist_error (GtkWindow *parent, const char *filename)
if (!dirtest) {
gnc_error_dialog
(GTK_WIDGET (parent),
_("The directory for file\n"
"%s\n"
"does not exist. \n"
"Please choose another place for this file."),
_("The directory for file %s does not exist. "
"Please choose another place for this file."),
filename ? filename : _("(null)"));
return FALSE;
}
+1 -1
View File
@@ -298,7 +298,7 @@ gnc_hbci_Error_retry (GtkWidget *parent, int error,
GNCInteractor_hide (inter);
gnc_error_dialog
(parent,
_("Unfortunately you entered a wrong PIN for too many times.\n"
_("Unfortunately you entered a wrong PIN for too many times. "
"Your chip card is therefore destroyed. Aborting."));
return FALSE;
case AB_ERROR_FILE_NOT_FOUND:
+5 -1
View File
@@ -110,10 +110,14 @@ gnc_commodity * gnc_import_select_commodity(char * exchange_code,
if(retval==NULL && auto_create != 0)
{
const gchar *message =
_("Please select a commodity to match the following exchange "
"specific code. Please note that the exchange code of the "
"commodity you select will be overwritten.");
retval=gnc_ui_select_commodity_modal_full(NULL,
NULL,
DIAG_COMM_ALL,
_("Please select a commodity to match the following exchange specific code.\nPlease note that the exchange code of the commodity you select will be overwritten.\n"),
message,
exchange_code,
default_fullname,
default_mnemonic);
@@ -447,13 +447,13 @@ gnc_ui_qif_import_load_file_next_cb(GnomeDruidPage * page,
/* check a few error conditions before we get started */
if(strlen(path_to_load) == 0) {
/* stay here if no file specified */
gnc_error_dialog(wind->window, _("Please select a file to load.\n"));
gnc_error_dialog(wind->window, _("Please select a file to load."));
return TRUE;
}
else if ((strlen(path_to_load) > 0) && access(path_to_load, R_OK) < 0) {
/* stay here if bad file */
gnc_error_dialog(wind->window,
_("File not found or read permission denied.\n"
_("File not found or read permission denied. "
"Please select another file."));
return TRUE;
}
@@ -465,7 +465,7 @@ gnc_ui_qif_import_load_file_next_cb(GnomeDruidPage * page,
if(scm_call_2(qif_file_loaded, scm_filename, wind->imported_files)
== SCM_BOOL_T) {
gnc_error_dialog(wind->window,
_("That QIF file is already loaded.\n"
_("That QIF file is already loaded. "
"Please select another file."));
return TRUE;
}
@@ -492,7 +492,7 @@ gnc_ui_qif_import_load_file_next_cb(GnomeDruidPage * page,
(SCM_CAR(load_return) == SCM_BOOL_T)) {
const gchar *warn_str = SCM_STRING_CHARS(SCM_CADR(load_return));
gnc_warning_dialog(GTK_WIDGET(wind->window),
_("QIF file load warning:\n%s"),
_("QIF file load warning: %s"),
warn_str ? warn_str : "(null)");
}
@@ -507,7 +507,7 @@ gnc_ui_qif_import_load_file_next_cb(GnomeDruidPage * page,
(SCM_CAR(load_return) != SCM_BOOL_T))) {
const gchar *warn_str = SCM_STRING_CHARS(SCM_CADR(load_return));
gnc_error_dialog(wind->window,
_("QIF file load failed:\n%s"),
_("QIF file load failed: %s"),
warn_str ? warn_str : "(null)");
imported_files =
@@ -575,7 +575,7 @@ gnc_ui_qif_import_load_file_next_cb(GnomeDruidPage * page,
(SCM_CAR(parse_return) != SCM_BOOL_T))) {
const gchar *warn_str = SCM_STRING_CHARS(SCM_CDADR(parse_return));
gnc_error_dialog(wind->window,
_("QIF file parse failed:\n%s"),
_("QIF file parse failed: %s"),
warn_str ? warn_str : "(null)");
imported_files =
+5 -5
View File
@@ -726,7 +726,7 @@ gnc_split_register_paste_current (SplitRegister *reg)
if (cursor_class == CURSOR_CLASS_SPLIT)
{
const char *message = _("You are about to overwrite an existing split.\n"
const char *message = _("You are about to overwrite an existing split. "
"Are you sure you want to do that?");
gboolean result;
@@ -758,7 +758,7 @@ gnc_split_register_paste_current (SplitRegister *reg)
else
{
const char *message = _("You are about to overwrite an existing "
"transaction.\n"
"transaction. "
"Are you sure you want to do that?");
gboolean result;
@@ -1517,8 +1517,8 @@ Account *
gnc_split_register_get_account_by_name (SplitRegister *reg, BasicCell * bcell,
const char *name, gboolean *refresh)
{
const char *placeholder = _("The account %s does not allow transactions.\n");
const char *missing = _("The account %s does not exist.\n"
const char *placeholder = _("The account %s does not allow transactions.");
const char *missing = _("The account %s does not exist. "
"Would you like to create it?");
char *fullname;
ComboCell *cell = (ComboCell *) bcell;
@@ -1729,7 +1729,7 @@ gnc_split_register_auto_calc (SplitRegister *reg, Split *split)
GList *radio_list = NULL;
const char *title = _("Recalculate Transaction");
const char *message = _("The values entered for this transaction "
"are inconsistent.\nWhich value would you "
"are inconsistent. Which value would you "
"like to have recalculated?");
if (shares_changed)
@@ -1206,7 +1206,7 @@ gnc_get_export_filename (SCM choice)
if (rc == 0)
{
const char *format = _("The file \n %s\n already exists.\n"
const char *format = _("The file %s already exists. "
"Are you sure you want to overwrite it?");
if (!gnc_verify_dialog (NULL, FALSE, format, filepath)) {
@@ -1278,8 +1278,8 @@ gnc_plugin_page_report_export_cb( GtkAction *action, GncPluginPageReport *report
if (!result)
{
const char *fmt = _("Could not open the file\n"
" %s\n%s");
const char *fmt = _("Could not open the file %s. "
"The error is: %s");
gnc_error_dialog( NULL, fmt, filepath ? filepath : "(null)",
strerror (errno) ? strerror (errno) : "" );
}