Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version short string should be shorter #1583

Closed
cyberduck opened this issue Jan 12, 2008 · 2 comments
Closed

Version short string should be shorter #1583

cyberduck opened this issue Jan 12, 2008 · 2 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

anonymous created the issue

Now that Leopard supports a "always open in...' where you can (finally) define the view, I've set my Applications folder to open in 'list' view, showing only the 'name' and 'version number'.

CyberDuck stands out because it includes "Version" in the ShortVersionString field.

Can you shorten this to just the number?


Attachments

@cyberduck
Copy link
Collaborator Author

@dkocher commented

''Obwohl er immer in einer Spalte "Version" oder hinter einem Label "Version:" auftaucht, beginnt er zusätzlich mit "Version ", wodurch das dupliziert ist, bzw. die Versionnummer in der Spalten (Listenansicht Finder) abgeschnitten wird.

Das sollte nur die nackte Nummer "2.8.2" sein, die Build-Nummer gehört ebenso nur in den Get Info String - das wird sonst einfach zu lang.

Also, aus der Zeile in der InfoPlist.strings in jedem xxxx.lproj folder

CFBundleShortVersionString = "Version 2.8.2 (3346)";

sollte nur

CFBundleShortVersionString = "2.8.2";

werden.

Noch besser:

Da die Strings in jedem Ordner xxxx.lproj eh komplett identisch sind, sollte man die InfoPlist.strings alle einsparen und stattdessen die drei Keys nur in der info.plist platzieren - das spart das Aktualisieren jeder Kopie:

<key>CFBundleGetInfoString</key>
<string>2.8.2 (3346), Copyright 2001-2007 David V. Kocher</string>

<key>CFBundleShortVersionString</key>
<string>2.8.2</string>

<key>NSHumanReadableCopyright</key>
<string>Copyright 2001-2007 David V. Kocher</string>

Hinweis hierzu noch: da der Get Info String im gleichnamigen Fenster ebenfalls hinter "Version:" erscheint, sollte er gleich mit der Versionsnummer beginnen (s.o.) und nicht den Programmnamen wiederholen.
''

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fixed in d0d56bf.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants