gnucash maint: [I18N] Unify placeholder warning
Frank H.Ellenberger
fell at code.gnucash.org
Tue Apr 16 13:49:45 EDT 2019
Updated via https://github.com/Gnucash/gnucash/commit/0ebb02e2 (commit)
from https://github.com/Gnucash/gnucash/commit/0251d044 (commit)
commit 0ebb02e2433afb8bc64823dacf55624fc5011139
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date: Tue Apr 16 19:43:21 2019 +0200
[I18N] Unify placeholder warning
https://lists.gnucash.org/pipermail/gnucash-devel/2019-March/043624.html
diff --git a/gnucash/gnome-utils/dialog-options.c b/gnucash/gnome-utils/dialog-options.c
index d1af0d8c1..4b22bdefe 100644
--- a/gnucash/gnome-utils/dialog-options.c
+++ b/gnucash/gnome-utils/dialog-options.c
@@ -855,14 +855,12 @@ gnc_option_changed_gain_loss_account_widget_cb (GtkTreeSelection *selection,
}
else /* new account, but placeholder */
{
- const char *message = _("You have selected a placeholder " \
- "account, which is shown so that child accounts " \
- "are displayed, but is invalid. Please select " \
- "another account. (You can expand the tree below " \
- "the placeholder account by clicking on the arrow " \
- "to the left.)");
-
- gnc_error_dialog (gnc_ui_get_gtk_window (book_currency_data->default_gain_loss_account_widget), "%s", message);
+ const char *message = _("The account %s is a placeholder account " \
+ "and does not allow transactions. " \
+ "Please choose a different account.");
+
+ gnc_error_dialog (gnc_ui_get_gtk_window (book_currency_data->default_gain_loss_account_widget),
+ message, xaccAccountGetName (account));
if (book_currency_data->prior_gain_loss_account)
{
(gnc_tree_view_account_set_selected_account
Summary of changes:
gnucash/gnome-utils/dialog-options.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
More information about the gnucash-changes
mailing list