Re: Translatable propertiy descriptions in libgnomecanvas?



ERDI Gergo <cactus cactus rulez org> writes:
> 
> I noticed the following in gnome-canvas.c:
> 	g_object_class_install_property
> 	        (gobject_class, GROUP_PROP_Y,
> 		 g_param_spec_double ("y",   
>                                       _("Y"),
>                                       _("Y"),
>                                       -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
>                                       (G_PARAM_READABLE | G_PARAM_WRITABLE)));
> 
> (and likewise for `X')
> 
> Is it an actual decision to translate property descriptions, or is it a
> typo here?
> 

Yeah they should translate. Think of the two strings as:

 The label on the property editor.
 The tooltip on the property editor.

i.e. say I have a spin button for this "y" property in a GUI builder. 
The label of the spin button might say "Y", and the tooltip might say
"Y position of the canvas group in item coordinates" or something.

I think it's fair to say that simply "Y" is a crappy tooltip.

Havoc




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