diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-12-08 21:41:55 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-12-08 21:41:55 +0000 |
commit | 35cd1dcf1420637aa41bae144d0a0c745d1634d4 (patch) | |
tree | 0fb14c3d5635cc5d0516769983d7dc7ee7739f05 /src/nautilus-property-browser.c | |
parent | fdd27bac586d04239142bed37442f65aacf6c475 (diff) | |
download | nautilus-35cd1dcf1420637aa41bae144d0a0c745d1634d4.tar.gz |
fixed bug 5045, browser assumes categories end in 's', by removing the
* src/nautilus-property-browser.c:
(nautilus_property_browser_update_contents):
fixed bug 5045, browser assumes categories end in 's', by removing
the offending code, which wasn't used anyway. fixed bug 5046,
shouldn't upper-case category names, by casing out instead.
Diffstat (limited to 'src/nautilus-property-browser.c')
-rw-r--r-- | src/nautilus-property-browser.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/nautilus-property-browser.c b/src/nautilus-property-browser.c index 4ad2e5cff..97670b330 100644 --- a/src/nautilus-property-browser.c +++ b/src/nautilus-property-browser.c @@ -2107,13 +2107,6 @@ nautilus_property_browser_update_contents (NautilusPropertyBrowser *property_bro } if (property_browser->details->remove_mode) { - char *temp_category = g_strdup (property_browser->details->category); - - /* FIXME bugzilla.eazel.com 5045: Not appropriate to assume the last - * character is 's' for all languages. A potential - * translation problem. - */ - temp_category[strlen(temp_category) - 1] = '\0'; /* strip trailing s */ switch (property_browser->details->category_type) { case NAUTILUS_PROPERTY_BACKGROUND: @@ -2129,16 +2122,21 @@ nautilus_property_browser_update_contents (NautilusPropertyBrowser *property_bro label_text = NULL; break; } - g_free (temp_category); } else { - label_text = g_strdup_printf ("%s:", property_browser->details->category); - - /* FIXME bugzilla.eazel.com 5046: Not appropriate to upper-case the - * first letter of the emblem names for all - * languages. A potential translation - * nightmare. - */ - label_text[0] = toupper ((guchar) label_text[0]); + switch (property_browser->details->category_type) { + case NAUTILUS_PROPERTY_BACKGROUND: + label_text = g_strdup (_("Backgrounds:")); + break; + case NAUTILUS_PROPERTY_COLOR: + label_text = g_strdup (_("Colors:")); + break; + case NAUTILUS_PROPERTY_EMBLEM: + label_text = g_strdup (_("Emblems:")); + break; + default: + label_text = NULL; + break; + } } if (label_text) { |