Change the text string 'Accounts Selected:' to include number

This is a follow up on the previous commit to change a couple of
translatable text strings to include the placement of the number using
%d
This commit is contained in:
Robert Fewell 2025-01-16 11:24:01 +00:00
parent 0a212f5b98
commit 7a17d329ec
4 changed files with 3 additions and 33 deletions

View File

@ -868,8 +868,7 @@ gnc_tax_info_update_accounts (TaxInfoDialog *ti_dialog)
num_accounts = gtk_tree_selection_count_selected_rows (selection);
label = ti_dialog->num_acct_label;
string = g_strdup_printf ("%d", num_accounts);
string = g_strdup_printf (_("Accounts Selected: %d"), num_accounts);
gtk_label_set_text (GTK_LABEL (label), string);
g_free (string);

View File

@ -313,24 +313,10 @@ Select the type of Export required and the separator that will be used.
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label847733">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Accounts Selected:</property>
<property name="justify">center</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="num_accounts_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label">0</property>
<property name="justify">center</property>
</object>
<packing>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<!-- Generated with glade 3.40.0 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkAdjustment" id="copy_spin_adj">
@ -369,24 +369,10 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label847733">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Accounts Selected:</property>
<property name="justify">center</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="num_accounts_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label">0</property>
<property name="justify">center</property>
</object>
<packing>

View File

@ -398,8 +398,7 @@ update_accounts_tree (CsvExportInfo *info)
num_accounts = gtk_tree_selection_count_selected_rows (selection);
label = info->csva.num_acct_label;
string = g_strdup_printf ("%d", num_accounts);
string = g_strdup_printf (_("Accounts Selected: %d"), num_accounts);
gtk_label_set_text (GTK_LABEL (label), string);
g_free (string);
}