Re: About gtk+,gnome i18n - patch included



Hello,
OK. I think that using po file is a nonsense.
but, for the gtop, user can change the fontname via '$HOME/.gnome/gtop' 
but I cannot set my fontset in the 'gtop'. because it calls gdk_font_load().
How can I set my fontset such as:

[procview]
font_name=-misc-fixed-medium-r-*--13-*-*-*-*-60-iso8859-1,-some-kofont-*-...

For this, gdk_font_load() should check the font name.
  With my patch, gtop can display the translation message for
'Resident memory set size'.

It is an example. I hope I can change the fontname via rc file for the
all gtk+,gnome apps.

(My prev. mail rejected from the gtk-list. And I don't want to subscribe
 to the gtk-list. Sorry! I got too much mail from the gnome-list.
 So, cc: to the authors)

Best regards,

namsh

On Mon, 19 Oct 1998, Sung-Hyun Nam wrote:
> 
> Hello,
> I'm a translator for korean language (which is multibyte language).
> I cannot see my translation with some programs, because the
> fontnames are hardcoded and cannot change it via rc file.
> For example, gtop (such as 'Resident memory set size' in procview.c),
> gnomecal (gnome-canvas dependent), ...
> 
> Here is a idea to support multibyte language:
> 
>   1. User can select all the font (via po file)
>      You can see an example from the gimp po file(app/about_dialog.c)
>      And, next fix is needed for the multibyte language.
>   2. gdk_font_load() should check if the font_name includes
>      'comma' character. If the font_name includes 'comma',
>      gdk_font_load() should call gdk_fontset_load().
> 
>   This can be a very simple patch. I think it is not a
>   overhead and has no any side effect to the 1byte language.
> 
> I add my patch. I doubt why 'fontset_name' is not const. Because of
> this, I use g_strdup to match the type. it should not be const?
> 
> (I didn't subscribe to the gtk list. I'm not sure I can post this
>  to the gtk-list.)
> 
> Best wishes,
> 
> namsh
> 
> --- gdkfont.c.old       Tue Aug 18 12:59:28 1998
> +++ gdkfont.c   Mon Oct 19 16:38:26 1998
> @@ -27,6 +27,16 @@
>    GdkFont *font;
>    GdkFontPrivate *private;
> 
> +  if (font_name && strchr (font_name, ','))
> +    {
> +      gchar *fontset_name;
> +
> +      fontset_name = g_strdup (font_name);
> +      font = gdk_fontset_load (fontset_name);
> +      g_free (fontset_name);
> +      return font;
> +    }
> +
>    private = g_new (GdkFontPrivate, 1);
>    font = (GdkFont*) private;
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]