You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve a few complex strings now that we have shifted to .xcstrings
This also introduces a new manually-maintained lookup for localizable strings to replace swiftgen. This manual system allows us to organize the strings as much as we want and is much less work than maintaining the swiftgen system used to be.
Contributes to IOS-582
Copy file name to clipboardExpand all lines: Mastodon/In Progress New Layout and Datamodel/Common Components/Views/TimelineRowViews/MastodonPostViewModel.swift
Copy file name to clipboardExpand all lines: Mastodon/In Progress New Layout and Datamodel/Common Components/Views/TimelineRowViews/Molecules/EmbeddedPostView.swift
Copy file name to clipboardExpand all lines: Mastodon/In Progress New Layout and Datamodel/Common Components/Views/TimelineRowViews/NotificationRowView.swift
returnL10n.tr("Localizable","Scene.Notification.GroupedNotificationDescription.MultiplePeopleFollowedYou",String(describing: p1), fallback:"%@ followed you")
returnL10n.tr("Localizable","Scene.Notification.GroupedNotificationDescription.SomeoneReportedPostsFromAccountForSpam",String(describing: p1),String(describing: p2), fallback:"Someone reported %@ from %@ for spam.")
1184
-
}
1185
1157
/// Your poll has ended
1186
1158
publicstaticletyourPollHasEnded=L10n.tr("Localizable","Scene.Notification.GroupedNotificationDescription.YourPollHasEnded", fallback:"Your poll has ended")
returnL10n.tr("Localizable","Scene.Notification.NotificationDescription.RelationshipSeverance",String(describing: p1),String(describing: p2),String(describing: p3), fallback:"An admin from %@ has blocked %@, including %@.")
@@ -2356,21 +2318,9 @@ public enum L10n {
2356
2318
returnL10n.tr("Localizable","plural.count.people_boosted", p1, fallback:"Plural format key: \"%#@count_people@\"")
/// This bridge seems to be necessary for now because our localizations are contained within a Swift package. Also, nesting inside meaningful structs is helpful for organization and the automatic symbol generation is limited in that regard.
11
+
///
12
+
/// To add new strings:
13
+
/// 1. Add the entry in .xcstrings with the English string and any pluralization variants
14
+
/// 2. Use the "Convert Strings to Symbols" option in .xcstrings to create the function name and set the argument labels
15
+
/// 3. Add a function here (in the expected nested struct) that matches the new function signature and looks up the new key.
16
+
///
17
+
/// NOTE: Take care not to modify existing keys without checking to maintain agreement here and on CrowdIn.
0 commit comments