Revision: 26041
          http://sourceforge.net/p/bibdesk/svn/26041
Author:   hofman
Date:     2021-05-23 14:16:21 +0000 (Sun, 23 May 2021)
Log Message:
-----------
Use different box title for text and make it dependent on title

Modified Paths:
--------------
    trunk/bibdesk/BDSKToken.m
    trunk/bibdesk/de.lproj/Localizable.strings
    trunk/bibdesk/en.lproj/Localizable.strings
    trunk/bibdesk/fr.lproj/Localizable.strings

Modified: trunk/bibdesk/BDSKToken.m
===================================================================
--- trunk/bibdesk/BDSKToken.m   2021-05-23 06:30:28 UTC (rev 26040)
+++ trunk/bibdesk/BDSKToken.m   2021-05-23 14:16:21 UTC (rev 26041)
@@ -998,6 +998,13 @@
 @dynamic title;
 @synthesize field, altText;
 
++ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
+    NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
+    if ([key isEqualToString:@"boxTitle"])
+        keyPaths = [keyPaths setByAddingObjectsFromSet:[NSSet 
setWithObjects:@"title", nil]];
+    return keyPaths;
+}
+
 - (id)initWithTitle:(NSString *)aTitle {
     self = [super initWithTitle:aTitle];
     if (self) {
@@ -1065,6 +1072,10 @@
     }
 }
 
+- (NSString *)boxTitle {
+    return [NSString stringWithFormat:[self isInRepository] ? 
NSLocalizedString(@"Options for available text: %@", @"Title for template 
options") : NSLocalizedString(@"Options for text: %@", @"Title for template 
options"), [self title]];
+}
+
 - (NSString *)string {
     if ([field length]) {
         NSMutableString *string = [NSMutableString 
stringWithFormat:@"<$%@?>%@", field, title];

Modified: trunk/bibdesk/de.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/en.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/fr.lproj/Localizable.strings
===================================================================
(Binary files differ)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to