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 740510 - Localization String Updates
Localization String Updates
Status: RESOLVED FIXED
Product: gtk-mac-integration
Classification: Other
Component: General
2.0.5
Other Mac OS
: Normal normal
: ---
Assigned To: GTK Mac Integration Maintainers
GTK Mac Integration Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-11-21 20:37 UTC by Joshua Pettus
Modified: 2019-02-22 05:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
update localization (86.87 KB, patch)
2014-11-21 20:37 UTC, Joshua Pettus
none Details | Review
Just the strings and string file update by itself (40.87 KB, patch)
2014-11-23 05:20 UTC, Joshua Pettus
none Details | Review
Just the strings and string file update by itself (16.87 KB, patch)
2014-11-23 06:24 UTC, Joshua Pettus
none Details | Review
Just the strings and string file update by itself (40.62 KB, patch)
2014-11-23 06:29 UTC, Joshua Pettus
committed Details | Review
update localization table name (1.35 KB, patch)
2014-11-30 01:01 UTC, Kevin Bernhagen
committed Details | Review

Description Joshua Pettus 2014-11-21 20:37:10 UTC
Created attachment 291202 [details] [review]
update localization

OSX is now case sensitive, so .string files must be named "GtkosxApplication." Also changes must be made to Quit and Hide items to account for the automatic adding of the application name in a way that word order can be accounted for in the given language.

Updated strings come from GIMP.

Thanks to Kevin Berningham who did the code.

If this patch is in an incorrect format please let me know, I tried my best, but I'm very much a novice with this sort of thing.
Comment 1 John Ralls 2014-11-22 18:04:26 UTC
It's not, but I can work with it.

OSX is not now case sensitive by default. It is and always has been case preserving unless one deliberately formats a partition as case sensitive, which a few people do in order to make it a little more like traditional unix.
Comment 2 Joshua Pettus 2014-11-22 18:29:59 UTC
Believe it or not I just got the email from bugzilla, The mailing list came a lot faster.  Anyway, strange that my filing system wasn't case sensitive, but it was ignoring the .iproj folders until we renamed them.
Comment 3 Joshua Pettus 2014-11-22 18:30:56 UTC
Er..the .string files inside them to be more accurate.
Comment 4 Kevin Bernhagen 2014-11-22 19:03:23 UTC
I think the localization API ends up using CFCopyLocalizedStringFromTable, which is case sensitive.
https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFBundleRef/#//apple_ref/c/macro/CFCopyLocalizedStringFromTable

Rather than rename the files, you could change the source to use "GtkOSXApplication".
The first Services title lookup still does.

I would not format an HFS boot disk as case sensitive. It is likely to cause trouble.

My understanding is that file content changes should be committed separately from renames anyway.
Comment 5 Joshua Pettus 2014-11-22 19:25:57 UTC
That would sound good to me, whatever John wants to do.
Comment 6 Joshua Pettus 2014-11-23 05:20:42 UTC
Created attachment 291293 [details] [review]
Just the strings and string file update by itself
Comment 7 Joshua Pettus 2014-11-23 05:22:56 UTC
If it's any help I made a diff patch with just the string update by itself.  I fear I do not know enough about the code to change what the string file title should be in the source code.  Better for me not to mess with things I don't understand.
Comment 8 Joshua Pettus 2014-11-23 06:19:00 UTC
Excellent! I finally found a proper tutorial on how to create a patch with git, It's quite a bit more involved then I thought.  I hope this still helps. John if it's ok with you I'll let the decision to either change the name of the string files or change the code rest with you.
Comment 9 Joshua Pettus 2014-11-23 06:24:10 UTC
Created attachment 291296 [details] [review]
Just the strings and string file update by itself
Comment 10 Joshua Pettus 2014-11-23 06:27:59 UTC
Dang it!  I should have looked at the patch after running 'git format-patch HEAD^'  it thought the string files were binaries again.  Sorry for the clutter.
Comment 11 Joshua Pettus 2014-11-23 06:29:26 UTC
Created attachment 291297 [details] [review]
Just the strings and string file update by itself
Comment 12 Joshua Pettus 2014-11-28 20:22:42 UTC
I'm sure people are busy, but is there any word on this? Is there anything else needed?
Comment 13 John Ralls 2014-11-28 22:37:43 UTC
Yes, I've been busy. Tested today, seems to work, pushed.
Comment 14 Joshua Pettus 2014-11-28 22:48:01 UTC
Ok thanks! Github it claims the string files are binary files, but they seem to be ok.  Also I don't know if you want to change the name in the source, or change the name of the files.  Either would be fine.
Comment 15 John Ralls 2014-11-29 16:59:27 UTC
It thinks that because they use wchars, which git doesn't understand. It's not important.

I need to experiment with the filenames in git. I can easily accomplish the change in Linux, which is case sensitive, but I'm worried that it will cause problems when pulled into a repo on an HFS+ partition; if that's the case then I'll have to change the code instead; but I've some concern that that will cause trouble for gobject-introspection. It shouldn't, the filenames should be introspected as plain strings, but again it needs to be tested.
Comment 16 John Ralls 2014-11-29 18:48:31 UTC
I got the rename to work by doing it in two stages. That's now pushed as well.
Comment 17 Kevin Bernhagen 2014-11-30 01:01:33 UTC
Created attachment 291811 [details] [review]
update localization table name
Comment 18 Kevin Bernhagen 2014-11-30 01:02:51 UTC
File names need to be updated in strings/Makefile.am
Comment 19 Joshua Pettus 2014-12-02 02:27:35 UTC
I checked, Kevin is right.  The file names in strings/Makefile.am is still the old ones.
Comment 20 John Ralls 2014-12-21 19:29:17 UTC
Kevin's patch is applied and strings/Makefile.am fixed. Anything else?
Comment 21 Joshua Pettus 2014-12-21 19:47:02 UTC
Nope, I think that's it. Happy Holidays to you!