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 528257 - File selector and stock string problems
File selector and stock string problems
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.90.x
Other Linux
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-04-15 17:25 UTC by Philip Withnall
Modified: 2010-08-29 18:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix file selector and stock string problems (1.85 KB, patch)
2008-10-21 22:30 UTC, Philip Withnall
committed Details | Review
Miscellaneous string fixes (4.94 KB, patch)
2009-09-23 21:00 UTC, Philip Withnall
needs-work Details | Review
Miscellaneous string fixes (updated) (4.98 KB, patch)
2010-08-22 11:31 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2008-04-15 17:25:21 UTC
A string in the file selector has an extraneous full stop after "UTF-8", and the CD-ROM stock item should be "CD-ROM", rather than "CD-Rom".

gtkfilesel.c:3047

"The filename \"%s\" couldn't be converted to UTF-8. (try setting the "
"environment variable G_FILENAME_ENCODING): %s"

"The filename \"%s\" couldn't be converted to UTF-8 (try setting the "
"environment variable G_FILENAME_ENCODING): %s"

gtkstock.c:301

"_CD-Rom"

"_CD-ROM"
Comment 1 Philip Withnall 2008-10-21 22:30:09 UTC
Created attachment 121068 [details] [review]
Fix file selector and stock string problems

Trivial patch to fix the problem (and another similar one with a "harddisk" stock item string).
Comment 2 Philip Withnall 2009-09-23 21:00:38 UTC
Created attachment 143837 [details] [review]
Miscellaneous string fixes

Here are some more string fixes. Most are capitalisation fixes (e.g. "PID" vs "pid", "ID" vs "id"). The other notable fixes:

Printer '%s' is currently off-line. -> Printer '%s' is currently offline.

Couldn't allocate memory for paletted data -> Couldn't allocate memory for palette data
Comment 3 Javier Jardón (IRC: jjardon) 2010-08-22 00:29:17 UTC
Comment on attachment 121068 [details] [review]
Fix file selector and stock string problems

Could you update the patch and commit the gtkstock part (GtkFileSelection was deprecated and removed)?
Comment 4 Javier Jardón (IRC: jjardon) 2010-08-22 00:30:15 UTC
Comment on attachment 143837 [details] [review]
Miscellaneous string fixes

Could you update the patch? gdk-pixbuf is now a separate module
Comment 5 Philip Withnall 2010-08-22 11:31:04 UTC
commit 12e83244b10e31daa06e611fa9ddb2692117c75b
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Aug 22 12:24:00 2010 +0100

    Bug 528257 — File selector and stock string problems
    
    Fix some stock item strings. Helps: bgo#528257

 gtk/gtkstock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 Philip Withnall 2010-08-22 11:31:59 UTC
Created attachment 168493 [details] [review]
Miscellaneous string fixes (updated)

I'll open a new bug for the string changes to gdk-pixbuf.
Comment 7 Philip Withnall 2010-08-22 11:43:13 UTC
(In reply to comment #6)
> I'll open a new bug for the string changes to gdk-pixbuf.

Bug #627639.
Comment 8 Javier Jardón (IRC: jjardon) 2010-08-22 13:08:40 UTC
Review of attachment 168493 [details] [review]:

looks good
Comment 9 Philip Withnall 2010-08-22 14:07:31 UTC
Comment on attachment 168493 [details] [review]
Miscellaneous string fixes (updated)

commit 5fa4a05cccc818d60bb773cc51056436e16694af
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Aug 22 15:06:45 2010 +0100

    Miscellaneous string fixes
    
    Mostly capitalisation fixes. Closes: bgo#528257

 gdk/gdk.c                                        |    4 ++--
 gtk/gtkbuilderparser.c                           |    2 +-
 gtk/gtkmountoperation-stub.c                     |    2 +-
 gtk/gtkmountoperation-x11.c                      |    2 +-
 gtk/gtkmountoperation.c                          |    2 +-
 gtk/gtktextbufferserialize.c                     |    2 +-
 modules/printbackends/cups/gtkprintbackendcups.c |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
Comment 10 Philip Withnall 2010-08-22 14:08:14 UTC
Do you want either of these patches cherry-picking to gtk-2-22? Note that a string change notification e-mail would have to be sent out.
Comment 11 Philip Withnall 2010-08-28 16:01:14 UTC
(In reply to comment #10)
> Do you want either of these patches cherry-picking to gtk-2-22? Note that a
> string change notification e-mail would have to be sent out.

Ping? String freeze is approaching fast.
Comment 12 Javier Jardón (IRC: jjardon) 2010-08-29 16:32:02 UTC
Sorry, Philip. Yeah a patch for gtk-2-22 would be great
Comment 13 Philip Withnall 2010-08-29 18:07:29 UTC
It cherry-picked without conflicts. Pushed to gtk-2-22.

I'll send out a notification e-mail for these changes and the ones in bug #628198 shortly.

commit 818ef9aaf6d89d964a18ed66b9048c719d698e3f
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Aug 22 15:06:45 2010 +0100

    Miscellaneous string fixes
    
    Mostly capitalisation fixes. Closes: bgo#528257

 gdk/gdk.c                                        |    4 ++--
 gtk/gtkbuilderparser.c                           |    2 +-
 gtk/gtkmountoperation-stub.c                     |    2 +-
 gtk/gtkmountoperation-x11.c                      |    2 +-
 gtk/gtkmountoperation.c                          |    2 +-
 gtk/gtktextbufferserialize.c                     |    2 +-
 modules/printbackends/cups/gtkprintbackendcups.c |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)