After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 57010 - Default font name should be gettextized.
Default font name should be gettextized.
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
0.9.6
Other All
: Normal normal
: ---
Assigned To: Chema Celorio
Chema Celorio
Depends on:
Blocks:
 
 
Reported: 2001-07-03 11:59 UTC by ynakai
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ynakai 2001-07-03 11:59:46 UTC
Gedit's default font should be gettextized.
CJK people can never be satisfied with the current default
font.

There is a font setting dialog in gedit, but it is not enough.
Users should be able to start to use gedit without learning
any special knowledge.

Index: src/prefs.c
===================================================================
RCS file: /cvs/gnome/gedit/src/prefs.c,v
retrieving revision 1.40
diff -u -r1.40 prefs.c
--- src/prefs.c	2001/05/10 10:11:03	1.40
+++ src/prefs.c	2001/06/27 12:07:40
@@ -39,8 +39,7 @@
 
 Preferences *settings = NULL;
 
-#define DEFAULT_FONT (const gchar*)
"-adobe-courier-medium-r-normal-*-*-120-*-*-m-*-iso8859-1"
-#define DEFAULT_FONTSET "-*-*-medium-r-normal-*-14-*-*-*-*-*-*-*,*"
+#define DEFAULT_FONT (const gchar*)
N_("-adobe-courier-medium-r-normal-*-*-120-*-*-m-*-iso8859-1")
 
 void 
 gedit_prefs_save_settings (void)
@@ -177,7 +176,7 @@
 #endif
 	settings->font = gnome_config_get_string ("font");
 	if (settings->font == NULL)
-		settings->font = g_strdup (DEFAULT_FONT);
+		settings->font = g_strdup (_(DEFAULT_FONT));
 	
 	if (mdi)
 		tab_pos (settings->tab_pos);
Comment 1 Chema Celorio 2001-09-11 04:52:59 UTC
Fixed in CVS, will be on gedit 0.9.8.

Thanks for filing this bug report