mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2002-12-30 Christian Stimming <stimming@tuhh.de>
* src/business/business-gnome/dialog-invoice.c (gnc_invoice_id_changed_cb): More i18n fixes. Don't split up strings. * src/business/business-gnome/glade/*.glade: Correct spelling error. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7734 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
eb255d1ea2
commit
933bd3695a
@ -1546,37 +1546,49 @@ static void
|
||||
gnc_invoice_id_changed_cb (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
InvoiceWindow *iw = data;
|
||||
char *id, *wintype = NULL, *objtype = NULL, *title;
|
||||
char *id, *wintitle = NULL, *title;
|
||||
|
||||
if (!iw) return;
|
||||
|
||||
id = gtk_entry_get_text (GTK_ENTRY (iw->id_entry));
|
||||
|
||||
switch (iw->dialog_type) {
|
||||
case NEW_INVOICE:
|
||||
wintype = _("New");
|
||||
break;
|
||||
case MOD_INVOICE:
|
||||
case EDIT_INVOICE:
|
||||
wintype = _("Edit");
|
||||
break;
|
||||
case VIEW_INVOICE:
|
||||
wintype = _("View");
|
||||
break;
|
||||
}
|
||||
switch (gncOwnerGetType (&iw->owner))
|
||||
{
|
||||
case GNC_OWNER_CUSTOMER:
|
||||
switch (iw->dialog_type)
|
||||
{
|
||||
case NEW_INVOICE:
|
||||
wintitle = _("New Invoice");
|
||||
break;
|
||||
case MOD_INVOICE:
|
||||
case EDIT_INVOICE:
|
||||
wintitle = _("Edit Invoice");
|
||||
break;
|
||||
case VIEW_INVOICE:
|
||||
wintitle = _("View Invoice");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case GNC_OWNER_VENDOR:
|
||||
switch (iw->dialog_type)
|
||||
{
|
||||
case NEW_INVOICE:
|
||||
wintitle = _("New Bill");
|
||||
break;
|
||||
case MOD_INVOICE:
|
||||
case EDIT_INVOICE:
|
||||
wintitle = _("Edit Bill");
|
||||
break;
|
||||
case VIEW_INVOICE:
|
||||
wintitle = _("View Bill");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (gncOwnerGetType (&iw->owner)) {
|
||||
case GNC_OWNER_CUSTOMER:
|
||||
objtype = _("Invoice");
|
||||
break;
|
||||
case GNC_OWNER_VENDOR:
|
||||
objtype = _("Bill");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
title = g_strconcat (wintype, " ", objtype, " - ", id, NULL);
|
||||
title = g_strconcat (wintitle, " - ", id, NULL);
|
||||
gtk_window_set_title (GTK_WINDOW (iw->dialog), title);
|
||||
g_free (title);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<border_width>3</border_width>
|
||||
<label>Indentification</label>
|
||||
<label>Identification</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
|
@ -110,7 +110,7 @@
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<border_width>3</border_width>
|
||||
<label>Indentification</label>
|
||||
<label>Identification</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
|
@ -111,7 +111,7 @@
|
||||
<class>GtkFrame</class>
|
||||
<name>frame1</name>
|
||||
<border_width>3</border_width>
|
||||
<label>Indentification</label>
|
||||
<label>Identification</label>
|
||||
<label_xalign>0</label_xalign>
|
||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||
<child>
|
||||
|
Loading…
Reference in New Issue
Block a user