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 95436 - gweather should display temperature scale
gweather should display temperature scale
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: gweather
2.0.x
Other Linux
: Normal trivial
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-10 20:28 UTC by Evert Verhellen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Evert Verhellen 2002-10-10 20:28:24 UTC
The gweather applet should display either "ºC" (Celsius scale) or "ºF"
(Fahrenheit scale) instead of just the degree symbol.
Comment 1 Christian Rose 2003-03-11 19:16:33 UTC
The correct use would probably be "°C" and "°F", respectively.
Comment 2 Kevin Vandersloot 2003-06-09 02:33:56 UTC
Fixed in cvs
Comment 3 Christian Rose 2003-06-09 12:36:28 UTC
They were marked for translation, which breaks gettext since the
degree symbol (°) is not ASCII
(http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#use-ascii):

The messages containing those symbols ("°C" and "°F") should probably
not be marked for translation because of this.
Comment 4 Kevin Vandersloot 2003-06-09 17:20:22 UTC
Only the C and F are marked for translation. The degree is displayed
from it's unicode value I think.

Here's the relevant code:

degree = N_("C");
tmp = g_strdup_printf ("%d/%d\302\260%s", high, low, degree);
gtk_label_set_text (GTK_LABEL (applet->labels[i]), tmp);

So the \302\260 gives the degree symbol. Let me know if the F and C
should not be translated.
Comment 5 Christian Rose 2003-06-09 19:02:48 UTC
Sorry, yes the warnings come from these two messages:

  tmp = g_strdup_printf (_("%s\nToday: %s\nCurrent temperature
%d\302\260%s"), 
                applet->gweather_pref.city, get_conditions(info->wid),
                info->curtemp, degree);

  tmp = g_strdup_printf (_("%s\n%s: %s\nLow %d\302\260%s, High
%d\302\260%s"),
                applet->gweather_pref.city,
                forecast->day, 
                get_conditions (forecast->wid), forecast->low, degree,
                forecast->high, degree);

Including non-ASCII characters in messages marked for translation, be
they octal escaped or not, doesn't work.
Comment 6 Evert Verhellen 2003-06-09 19:34:54 UTC
I think that °C and °F should not (or cannot) be translated because
both symbols are derived from a person's name (Celsius and Fahrenheit).
Comment 7 Kevin Vandersloot 2003-06-10 00:09:04 UTC
Fixed now. It's no longer translated.