From d7315773e1c1c0472325301df8f17cc1bdd02272 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 28 May 2026 17:15:41 +0200 Subject: [PATCH] fixed: syntax issues --- AppKit/CPRuleEditor/_CPRuleEditorLocalizer.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPRuleEditor/_CPRuleEditorLocalizer.j b/AppKit/CPRuleEditor/_CPRuleEditorLocalizer.j index a0fc8d264..db08bd739 100644 --- a/AppKit/CPRuleEditor/_CPRuleEditorLocalizer.j +++ b/AppKit/CPRuleEditor/_CPRuleEditorLocalizer.j @@ -120,7 +120,7 @@ var LocalizerStringsRegex = new RegExp("\"(.+)\"\\s*=\\s*\"(.+)\"\\s*;\\s*(//.+) } // Builds the current formatting lookup key (e.g. "%[property]@ %[is]@ %@") -- (CPString)formattingKeyForViews:(NSArray *)views +- (CPString)formattingKeyForViews:(CPArray)views { var keyParts = []; var count = [views count]; @@ -133,7 +133,7 @@ var LocalizerStringsRegex = new RegExp("\"(.+)\"\\s*=\\s*\"(.+)\"\\s*;\\s*(//.+) } // Localizes all popup menu options within the row under their proper context -- (void)localizeMenuItemsForViews:(NSArray *)views +- (void)localizeMenuItemsForViews:(CPArray)views { var count = [views count]; for (var i = 0; i < count; i++) @@ -189,7 +189,7 @@ var LocalizerStringsRegex = new RegExp("\"(.+)\"\\s*=\\s*\"(.+)\"\\s*;\\s*(//.+) } // Translates labels and reorders the active subviews based on positional formatting string -- (NSArray *)localizeAndReorderViews:(NSArray *)views +- (CPArray)localizeAndReorderViews:(CPArray)views { var key = [self formattingKeyForViews:views]; var localizedPattern = [self localizedStringForString:key];