<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
+ <property name="orientation">vertical</property>
<child>
<object class="GtkNotebook" id="prefs_notebook">
<property name="visible">True</property>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="border_width">12</property>
+ <property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="label3">
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes"><span weight="bold">Units</span></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Units</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes"><span weight="bold">Default page size</span></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Default page size</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<object class="GtkVBox" id="vbox4">
<property name="visible">True</property>
<property name="border_width">12</property>
+ <property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="label8">
<object class="GtkImage" id="image6">
<property name="visible">True</property>
<property name="stock">gtk-bold</property>
- <property name="icon-size">4</property>
</object>
</child>
</object>
<object class="GtkImage" id="image7">
<property name="visible">True</property>
<property name="stock">gtk-italic</property>
- <property name="icon-size">4</property>
</object>
</child>
</object>
<object class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="stock">gtk-justify-left</property>
- <property name="icon-size">4</property>
</object>
</child>
</object>
<object class="GtkImage" id="image4">
<property name="visible">True</property>
<property name="stock">gtk-justify-center</property>
- <property name="icon-size">4</property>
</object>
</child>
</object>
<object class="GtkImage" id="image5">
<property name="visible">True</property>
<property name="stock">gtk-justify-right</property>
- <property name="icon-size">4</property>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label9">
<property name="visible">True</property>
- <property name="label" translatable="yes"><span weight="bold">Text</span></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Text</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
- <property name="label" translatable="yes"><span weight="bold">Line</span></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Line</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
- <property name="label" translatable="yes"><span weight="bold">Fill</span></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Fill</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Copies</b></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Copies</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Merge Control</b></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Merge Control</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
<child type="label">
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="label" translatable="yes"><b>Options</b></property>
- <property name="use_markup">True</property>
+ <property name="label" translatable="yes">Options</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
</object>
</child>
</object>
if ( frame->all.layouts && (frame->all.layouts->next == NULL) )
{
layout = (lglTemplateLayout *)frame->all.layouts->data;
- string = g_strdup_printf ("%d × %d (%d %s)", layout->nx, layout->ny, n_labels, _("per sheet"));
+ /*
+ * Translators: 1st %d = number of labels across a page,
+ * 2nd %d = number of labels down a page,
+ * 3rd %d = total number of labels on a page (sheet).
+ */
+ string = g_strdup_printf (_("%d × %d (%d per sheet)"), layout->nx, layout->ny, n_labels);
}
else
{
- string = g_strdup_printf ("%d %s", n_labels, _("per sheet"));
+ /* Translators: %d is the total number of labels on a page (sheet). */
+ string = g_strdup_printf (_("%d per sheet"), n_labels);
}
return string;
name_page_changed_cb (glTemplateDesigner *dialog)
{
gchar *brand, *part_num, *desc;
+ gchar *string;
brand = g_strstrip (gtk_editable_get_chars (GTK_EDITABLE(dialog->priv->brand_entry), 0, -1));
part_num = g_strstrip (gtk_editable_get_chars (GTK_EDITABLE(dialog->priv->part_num_entry), 0, -1));
gtk_image_set_from_stock (GTK_IMAGE (dialog->priv->name_warning_image),
GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_BUTTON);
- gtk_label_set_markup (GTK_LABEL (dialog->priv->name_warning_label),
- _("<span foreground='red' weight='bold'>Brand and part# match an existing template!</span>"));
+ string = g_strdup_printf ("<span foreground='red' weight='bold'>%s</span>",
+ _("Brand and part# match an existing template!"));
+ gtk_label_set_markup (GTK_LABEL (dialog->priv->name_warning_label), string);
+ g_free (string);
}
}