gnucash maint: Use more precise strings in gnc-split-reg.c

Frank H.Ellenberger fell at code.gnucash.org
Wed May 6 11:50:33 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/dc8f1057 (commit)
	from  https://github.com/Gnucash/gnucash/commit/404357a8 (commit)



commit dc8f1057cecb3ed7c74001a7b9de9506acd91324
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Wed May 6 17:48:25 2020 +0200

    Use more precise strings in gnc-split-reg.c
    
    You can edit the account very well, but not its transactions.

diff --git a/gnucash/gnome/gnc-split-reg.c b/gnucash/gnome/gnc-split-reg.c
index 0506932e3..d8218d6a2 100644
--- a/gnucash/gnome/gnc-split-reg.c
+++ b/gnucash/gnome/gnc-split-reg.c
@@ -2622,10 +2622,11 @@ gnc_split_reg_determine_read_only( GNCSplitReg *gsr )
         reg = gnc_ledger_display_get_split_register( gsr->ledger );
         if(reg->mismatched_commodities)
         {
-            string = _("This account may not be edited because its"
-                       " subaccounts have mismatched commodities or currencies."
-                       "You need to open each account individually to "
-                       "edit transactions.");
+            string = _("The transactions of this account may not be edited "
+                       "because its subaccounts have mismatched commodities "
+                       "or currencies.\n"
+                       "You need to open each account individually to edit "
+                       "transactions.");
         }
         else
         {
@@ -2636,19 +2637,19 @@ gnc_split_reg_determine_read_only( GNCSplitReg *gsr )
                 return;
 
             case PLACEHOLDER_THIS:
-                string = _("This account may not be edited. If you want "
-                                 "to edit transactions in this register, please "
-                                 "open the account options and turn off the "
-                                 "placeholder checkbox.");
+                string = _("The transactions of this account may not be edited.\n"
+                           "If you want to edit transactions in this register, "
+                           "please open the account options and turn off the "
+                           "placeholder checkbox.");
                 break;
 
             default:
-                string = _("One of the sub-accounts selected may not be "
-                                 "edited. If you want to edit transactions in "
-                                 "this register, please open the sub-account "
-                                 "options and turn off the placeholder checkbox. "
-                                 "You may also open an individual account instead "
-                                 "of a set of accounts.");
+                string = _("The transactions in one of the selected "
+                           "sub-accounts may not be edited.\n"
+                           "If you want to edit transactions in this register, please open "
+                           "the sub-account options and turn off the placeholder checkbox.\n"
+                           "You may also open an individual account instead "
+                           "of a set of accounts.");
                 break;
             }
         }



Summary of changes:
 gnucash/gnome/gnc-split-reg.c | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)



More information about the gnucash-changes mailing list