Skip to content

Commit 68356f7

Browse files
committed
App and Help menus name the app; plugin copyrights name Blendbyte too
1 parent 9531407 commit 68356f7

8 files changed

Lines changed: 43 additions & 6 deletions

File tree

‎App/Resources/Strings/en.lproj/BasicLanguage.strings‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@
9595

9696
/* A server going through a bouncer, on hover in the server list */
9797
"bnc-t1" = "Through %@";
98+
99+
/* The application and Help menus, with the app's name ("Textual", "Textual Dev") */
100+
"app-n1" = "About %@";
101+
"app-n2" = "Hide %@";
102+
"app-n3" = "Quit %@";
103+
"app-n4" = "%@ Help";

‎App/Sources/Application/TXMenuController.m‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
#import "TDCServerChangeNicknameSheetPrivate.h"
7171
#import "TDCServerPropertiesSheetPrivate.h"
7272
#import "TDCWelcomeSheetPrivate.h"
73+
#import "TPCApplicationInfo.h"
7374
#import "TPCPathInfoPrivate.h"
7475
#import "TPCPreferencesImportExport.h"
7576
#import "TPCPreferencesLocalPrivate.h"
@@ -96,6 +97,8 @@ - (void)prepareInitialState
9697

9798
[self.channelViewGeneralMenu itemWithTag:MTWKGeneralChannelMenu].submenu = [self.mainMenuChannelMenu copy];
9899

100+
[self nameMenuItemsAfterApplication];
101+
99102
[self setupOtherServices];
100103

101104
[RZNotificationCenter() addObserver:self selector:@selector(menuItemWillPerformedAction:) name:NSMenuWillSendActionNotification object:nil];
@@ -104,6 +107,34 @@ - (void)prepareInitialState
104107
[RZNotificationCenter() addObserver:self selector:@selector(mainWindowSelectionChanged:) name:TVCMainWindowSelectionChangedNotification object:nil];
105108
}
106109

110+
/* The interface file says "Textual": Textual Dev says its own name (the
111+
bundle's; the product name is "Textual" in both) */
112+
- (void)nameMenuItemsAfterApplication
113+
{
114+
NSString *applicationName = [RZMainBundle() objectForInfoDictionaryKey:@"CFBundleName"];
115+
116+
if (applicationName.length == 0) {
117+
applicationName = [TPCApplicationInfo applicationName];
118+
}
119+
120+
NSDictionary<NSNumber *, NSString *> *titles = @{
121+
@(MTMMAppAboutApp) : TXTLS(@"BasicLanguage[app-n1]", applicationName),
122+
@(MTMMAppHideApp) : TXTLS(@"BasicLanguage[app-n2]", applicationName),
123+
@(MTMMAppQuitApp) : TXTLS(@"BasicLanguage[app-n3]", applicationName),
124+
@(MTMMHelpTextualHelp) : TXTLS(@"BasicLanguage[app-n4]", applicationName)
125+
};
126+
127+
for (NSMenuItem *menuItem in NSApp.mainMenu.itemArray) {
128+
for (NSMenuItem *submenuItem in menuItem.submenu.itemArray) {
129+
NSString *title = titles[@(submenuItem.tag)];
130+
131+
if (title) {
132+
submenuItem.title = title;
133+
}
134+
}
135+
}
136+
}
137+
107138
- (void)setupOtherServices
108139
{
109140
[self.fileTransferController startUsingDownloadDestinationURL];

‎Frameworks/Cocoa Extensions/Resources/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
<key>CFBundleVersion</key>
1616
<string>1.0.1</string>
1717
<key>NSHumanReadableCopyright</key>
18-
<string>Copyright © 2015 - 2020 Codeux Software, LLC. All rights reserved.</string>
18+
<string>Copyright © 2015 - 2020 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1919
</dict>
2020
</plist>

‎Plugins/Chat Filter/Resources/Property Lists/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundleVersion</key>
1616
<string>1.0.0</string>
1717
<key>NSHumanReadableCopyright</key>
18-
<string>Copyright © 2015 - 2020 Codeux Software, LLC. All rights reserved.</string>
18+
<string>Copyright © 2015 - 2020 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1919
<key>MinimumTextualVersion</key>
2020
<string>7.2.4</string>
2121
<key>NSPrincipalClass</key>

‎Plugins/Smiley Converter/Resources/Property Lists/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleVersion</key>
1414
<string>1.0.1</string>
1515
<key>NSHumanReadableCopyright</key>
16-
<string>Copyright © 2013 - 2020 Codeux Software, LLC. All rights reserved.</string>
16+
<string>Copyright © 2013 - 2020 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1717
<key>MinimumTextualVersion</key>
1818
<string>7.2.4</string>
1919
<key>NSPrincipalClass</key>

‎Plugins/System Profiler/Resources/Property Lists/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleVersion</key>
1414
<string>1.0.1</string>
1515
<key>NSHumanReadableCopyright</key>
16-
<string>Copyright © 2012 - 2020 Codeux Software, LLC. All rights reserved.</string>
16+
<string>Copyright © 2012 - 2020 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1717
<key>MinimumTextualVersion</key>
1818
<string>7.2.4</string>
1919
<key>NSPrincipalClass</key>

‎Plugins/User Insights/Resources/Property Lists/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleVersion</key>
1414
<string>1.0.1</string>
1515
<key>NSHumanReadableCopyright</key>
16-
<string>Copyright © 2013 - 2018 Codeux Software, LLC. All rights reserved.</string>
16+
<string>Copyright © 2013 - 2018 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1717
<key>MinimumTextualVersion</key>
1818
<string>7.2.4</string>
1919
<key>NSPrincipalClass</key>

‎Plugins/ZNC Additions/Resources/Property Lists/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleVersion</key>
1414
<string>1.0.1</string>
1515
<key>NSHumanReadableCopyright</key>
16-
<string>Copyright © 2011 - 2018 Codeux Software, LLC. All rights reserved.</string>
16+
<string>Copyright © 2011 - 2018 Codeux Software, LLC; © 2026 Blendbyte GmbH. All rights reserved.</string>
1717
<key>MinimumTextualVersion</key>
1818
<string>7.2.4</string>
1919
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)