Skip to content

Commit 3b484b6

Browse files
committed
Fix violations found by the linter
1 parent f4403ea commit 3b484b6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

WordPress/Classes/Utility/FormattableContent/Actions/FormattableContentAction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public enum NotificationDeletionKind {
1212
public var legendText: String {
1313
switch self {
1414
case .deletion:
15-
return NSLocalizedString("Comment has been deleted", comment: "Displayed when a Comment is deleted")
15+
return AppLocalizedString("Comment has been deleted", comment: "Displayed when a Comment is deleted")
1616
case .spamming:
17-
return NSLocalizedString("Comment has been marked as Spam", comment: "Displayed when a Comment is spammed")
17+
return AppLocalizedString("Comment has been marked as Spam", comment: "Displayed when a Comment is spammed")
1818
}
1919
}
2020
}

WordPress/WordPress.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
098B8578275FF975004D299F /* AppLocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3F2656A025AF4DFA0073A832 /* AppLocalizedString.swift */; };
150150
098B8579275FFB21004D299F /* AppLocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3F2656A025AF4DFA0073A832 /* AppLocalizedString.swift */; };
151151
099D768327D14B8E00F77EDE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 099D768127D14B8E00F77EDE /* InfoPlist.strings */; };
152+
09DBEA55281336E10019724E /* AppLocalizedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3F2656A025AF4DFA0073A832 /* AppLocalizedString.swift */; };
152153
1702BBDC1CEDEA6B00766A33 /* BadgeLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1702BBDB1CEDEA6B00766A33 /* BadgeLabel.swift */; };
153154
1702BBE01CF3034E00766A33 /* DomainsService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1702BBDF1CF3034E00766A33 /* DomainsService.swift */; };
154155
1703D04C20ECD93800D292E9 /* Routes+Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1703D04B20ECD93800D292E9 /* Routes+Post.swift */; };
@@ -19356,6 +19357,7 @@
1935619357
C737554027C80F1300C6E9A1 /* String+CondenseWhitespace.swift in Sources */,
1935719358
7335AC6D21220F0F0012EF2D /* FormattableUserContent.swift in Sources */,
1935819359
7335AC6221220E690012EF2D /* FormattableContentFactory.swift in Sources */,
19360+
09DBEA55281336E10019724E /* AppLocalizedString.swift in Sources */,
1935919361
433ADC1A223B2A7D00ED9DE1 /* TextBundleWrapper.m in Sources */,
1936019362
7335AC6C21220F050012EF2D /* FormattableNoticonRange.swift in Sources */,
1936119363
73F6DD42212BA54700CE447D /* RichNotificationContentFormatter.swift in Sources */,

WordPress/WordPressNotificationServiceExtension/Sources/NotificationService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,5 +329,5 @@ private extension NotificationService {
329329
return content
330330
}
331331

332-
static let viewMilestoneTitle = NSLocalizedString("You hit a milestone 🚀", comment: "Title for a view milestone push notification")
332+
static let viewMilestoneTitle = AppLocalizedString("You hit a milestone 🚀", comment: "Title for a view milestone push notification")
333333
}

0 commit comments

Comments
 (0)