2009-12-08 11:33:40 +01:00
|
|
|
--- gtk+-2.10.1/gtk/gtkfontbutton.c
|
|
|
|
+++ gtk+-2.10.1/gtk/gtkfontbutton.c
|
|
|
|
@@ -888,7 +888,7 @@
|
2007-01-05 16:49:44 +01:00
|
|
|
if (style == NULL || !g_ascii_strcasecmp (style, "Regular"))
|
|
|
|
family_style = g_strdup (family);
|
|
|
|
else
|
|
|
|
- family_style = g_strdup_printf ("%s %s", family, style);
|
|
|
|
+ family_style = g_strdup_printf ("%s %s", family, _(style));
|
|
|
|
|
|
|
|
gtk_label_set_text (GTK_LABEL (font_button->priv->font_label), family_style);
|
|
|
|
|
2009-12-08 11:33:40 +01:00
|
|
|
--- gtk+-2.10.1/gtk/gtkfontsel.c
|
|
|
|
+++ gtk+-2.10.1/gtk/gtkfontsel.c
|
|
|
|
@@ -73,6 +73,21 @@
|
|
|
|
can set it. Remember that some fonts only have capital letters. */
|
|
|
|
#define PREVIEW_TEXT N_("abcdefghijk ABCDEFGHIJK")
|
2007-01-05 16:49:44 +01:00
|
|
|
|
|
|
|
+/* These are the commonly used font styles, listed here only for
|
|
|
|
+ translations. */
|
|
|
|
+#define FONT_STYLE_ULTRA_LIGHT N_("Ultra-Light")
|
|
|
|
+#define FONT_STYLE_LIGHT N_("Light")
|
|
|
|
+#define FONT_STYLE_MEDIUM N_("Medium")
|
|
|
|
+#define FONT_STYLE_NORMAL N_("Normal")
|
|
|
|
+#define FONT_STYLE_REGULAR N_("Regular")
|
|
|
|
+#define FONT_STYLE_ITALIC N_("Italic")
|
|
|
|
+#define FONT_STYLE_OBLIQUE N_("Oblique")
|
|
|
|
+#define FONT_STYLE_SEMI_BOLD N_("Semi-Bold")
|
|
|
|
+#define FONT_STYLE_BOLD N_("Bold")
|
|
|
|
+#define FONT_STYLE_ULTRA_BOLD N_("Ultra-Bold")
|
|
|
|
+#define FONT_STYLE_HEAVY N_("Heavy")
|
|
|
|
+#define FONT_STYLE_BOLD_ITALIC N_("Bold Italic")
|
|
|
|
+
|
|
|
|
/* This is the initial and maximum height of the preview entry (it expands
|
|
|
|
when large font sizes are selected). Initial height is also the minimum. */
|
|
|
|
#define INITIAL_PREVIEW_HEIGHT 44
|
2009-12-08 11:33:40 +01:00
|
|
|
@@ -801,7 +816,7 @@
|
2007-01-05 16:49:44 +01:00
|
|
|
gtk_list_store_append (model, &iter);
|
|
|
|
gtk_list_store_set (model, &iter,
|
|
|
|
FACE_COLUMN, faces[i],
|
|
|
|
- FACE_NAME_COLUMN, str,
|
|
|
|
+ FACE_NAME_COLUMN, _(str),
|
|
|
|
-1);
|
|
|
|
|
|
|
|
if (i == 0)
|