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 698933 - places sidebar: don't capitalize "file system"
places sidebar: don't capitalize "file system"
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal trivial
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-26 10:20 UTC by Adam Dingle
Modified: 2013-05-13 09:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Changed all ocurrences of "File System" to "file system". (35.28 KB, patch)
2013-05-03 12:09 UTC, trusktr
none Details | Review
Changed "File System" to "file system". (1.14 KB, patch)
2013-05-03 12:57 UTC, trusktr
none Details | Review
The previous patch changed unnecessary blank lines. This one just changes only the line in question. (809 bytes, patch)
2013-05-03 13:20 UTC, trusktr
needs-work Details | Review
Fixed my commit message, otherwise same as before. (944 bytes, patch)
2013-05-03 14:31 UTC, trusktr
needs-work Details | Review
resubmission. (854 bytes, patch)
2013-05-05 20:50 UTC, trusktr
none Details | Review
Fixed capitalization in tooltip (854 bytes, patch)
2013-05-05 20:52 UTC, trusktr
none Details | Review
Fixed capitalization in tooltip (2.42 KB, patch)
2013-05-12 06:27 UTC, trusktr
none Details | Review
GtkPlacesSidebar: Fixed tooltip capitalization (939 bytes, patch)
2013-05-12 20:40 UTC, trusktr
committed Details | Review

Description Adam Dingle 2013-04-26 10:20:29 UTC
The places sidebar currently provides this tooltip for the Computer item I see in Nautilus:

  Open the contents of the File System

There's no reason to capitalize "file system" here.  It's not a proper noun, and tooltips generally use sentence capitalization.
Comment 1 trusktr 2013-05-03 12:09:07 UTC
Created attachment 243175 [details] [review]
Changed all ocurrences of "File System" to "file system".
Comment 2 trusktr 2013-05-03 12:11:50 UTC
I agree with this one. I skimmed through the .po files and from all the languages I saw, only a small percentage of the languages used Upper Case while the vast majority all used lower case for their version of "file system".

As practice for my GSoC 2013 application, I've made and attached my first ever patch file. :>
Comment 3 trusktr 2013-05-03 12:57:26 UTC
Created attachment 243181 [details] [review]
Changed "File System" to "file system".

I just realized that the .po files are generated automatically, and that the functionality for this has recently been moved to gtk+. I've attached a patch for gtk+ to change "File System" to "file system".
Comment 4 trusktr 2013-05-03 12:59:57 UTC
What I meant to say in my previous comment was that this functionality has been moved from nautilus to gtk+ (my first patch was mistaken (horribly (I'm learning :]))).
Comment 5 trusktr 2013-05-03 13:20:37 UTC
Created attachment 243184 [details] [review]
The previous patch changed unnecessary blank lines. This one just changes only the line in question.

My vim set up was removing trailing white space on save when I made the last patch, so there was a few white spaces replaces with nothing in the previous patch. This one's fixed.
Comment 6 Adam Dingle 2013-05-03 13:34:05 UTC
Review of attachment 243184 [details] [review]:

trusktr,

note that usual practice in GNOME is not to include the bug number in the summary line, but rather to include the full URL of the bug later in the commit message.  You might want to glance at the git log for this repository for examples.  Also, we don't generally use a trailing period in the summary line.  See https://live.gnome.org/Git/CommitMessages .

Otherwise this looks fine to me, but you shouldn't push until you get an OK from one of the actual GTK developers (I am not one).
Comment 7 trusktr 2013-05-03 14:31:36 UTC
Created attachment 243187 [details] [review]
Fixed my commit message, otherwise same as before.

Thanks Adam. I've fixed it. How does this one look?
Comment 8 Adam Dingle 2013-05-03 14:35:10 UTC
Review of attachment 243187 [details] [review]:

trusktr,

Your summary line is too long - it should be at most 50 characters.  See https://live.gnome.org/Git/CommitMessages .  For such a trivial change you don't need to include much detail.  I think a summary such as 'Fixed capitalization in tooltip' would be fine.  If anyone wants to know more, they can just glance at the diff.
Comment 9 trusktr 2013-05-05 20:50:30 UTC
Created attachment 243355 [details] [review]
resubmission.

Thanks for the feedback Adam. How's this one?
Comment 10 trusktr 2013-05-05 20:52:09 UTC
Created attachment 243356 [details] [review]
Fixed capitalization in tooltip

Same file as before, but made a better attachment description. How does it look?
Comment 11 Adam Dingle 2013-05-05 20:55:34 UTC
Looks good to me.  Again, one of the GTK developers should give the OK to push this.
Comment 12 trusktr 2013-05-05 21:19:50 UTC
Cool. I don't have permission to push yet anyway. Now that I'm getting the hang of how patching and committing works, I'll try solving a bug that involves actual code changes.

Should I just leave this bug as is until a GTK developer reads it?
Comment 13 Adam Dingle 2013-05-05 21:21:05 UTC
Yes.  One of the GTK devs will probably push this when they get a moment to do so.
Comment 14 Adam Dingle 2013-05-10 00:39:19 UTC
One more point: you should have an actual first and last name listed as the author of this patch.  If you want to remain anonymous I suppose that might be possible - I don't know what GNOME's policy is on accepting anonymous contributions, actually.  But as you can see in our git logs normal GNOME practice is to record authors' full names.
Comment 15 trusktr 2013-05-12 06:27:23 UTC
Created attachment 243877 [details] [review]
Fixed capitalization in tooltip

K, I fixed my git user.name so it shows my name (Joe Pea), but when I created
the new commit, somehow Matthias Clasen's name shows up instead. Also, some
extra stuff has gotten in to the commit for configure.ac, gdk/Makefile.am, and
gtk/Makefile.am (somehow) though I've done git reset --hard and the commit
before I commited is 92597da3a02cd4c7b3847a517931453209ba075d (Add visibility
flags in gtk/a11y) by Matthias Clasen.
Comment 16 Adam Dingle 2013-05-12 07:19:37 UTC
Joe,

You must have made some sort of error when you merged in recent changes from git master with your own changes.  But don't feel bad - it's really easy to do that especially if you're still learning git.  Because this is a tiny change, I think the easiest path forward here will be to restore your git tree to a completely pristine state:

$ git reset --hard origin/master

Be warned that that will delete all changes you've made in your working copy *and* all changes you've committed locally.  Once you've done that, you can simply make this change again, then use git format-patch to create a new patch.
Comment 17 Matthias Clasen 2013-05-12 15:36:16 UTC
The code change in comment #10 looks fine to me. As Adam says, it would be great to have a patch that has your name on it, and has a meaningful summary and description. If I were to do it, I'd probably say something along the lines of:


GtkPlacesSidebar: Fix tooltip capitalization

Use sentence capitalization for the tooltip on the file system.
https://bugzilla.gnome.org/show_bug.cgi?id=698933
Comment 18 trusktr 2013-05-12 20:40:11 UTC
Created attachment 243951 [details] [review]
GtkPlacesSidebar: Fixed tooltip capitalization

Here's the patch, updated with my name.

@Adam, That's strange, I've done the exact same steps as before, but it simply worked this time.

@Matthias, Thanks, I took your advice on the description.
Comment 19 Matthias Clasen 2013-05-13 09:46:27 UTC
Attachment 243951 [details] pushed as 67c8ebc - GtkPlacesSidebar: Fixed tooltip capitalization