Add new strings to Localization folder

This commit is contained in:
Jed Fox 2022-11-07 06:26:20 -05:00
parent 022f8c1115
commit 549739b6cb
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
4 changed files with 28 additions and 6 deletions

View File

@ -68,6 +68,26 @@
<string>%ld characters</string>
</dict>
</dict>
<key>a11y.plural.count.characters_left</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@character_count@</string>
<key>character_count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>zero</key>
<string>no characters left</string>
<key>one</key>
<string>1 character left</string>
<key>few</key>
<string>%ld characters left</string>
<key>many</key>
<string>%ld characters left</string>
<key>other</key>
<string>%ld characters left</string>
</dict>
</dict>
<key>plural.count.followed_by_and_mutual</key>
<dict>
<key>NSStringLocalizedFormatKey</key>

View File

@ -405,7 +405,9 @@
"custom_emoji_picker": "Custom Emoji Picker",
"enable_content_warning": "Enable Content Warning",
"disable_content_warning": "Disable Content Warning",
"post_visibility_menu": "Post Visibility Menu"
"post_visibility_menu": "Post Visibility Menu",
"post_options": "Post Options",
"posting_as": "Posting as %s"
},
"keyboard": {
"discard_post": "Discard Post",
@ -686,4 +688,4 @@
"accessibility_hint": "Double tap to dismiss this wizard"
}
}
}
}

View File

@ -87,7 +87,7 @@ struct ComposeContentToolbarView: View {
Text("\(remains)")
.foregroundColor(Color(isOverflow ? UIColor.systemRed : UIColor.secondaryLabel))
.font(.system(size: isOverflow ? 18 : 16, weight: isOverflow ? .medium : .regular))
// TODO: i18n
// TODO: i18n (a11y.plural.count.characters_left)
.accessibilityLabel("\(remains) characters left")
}
.padding(.leading, 4) // 4 + 12 = 16
@ -95,7 +95,7 @@ struct ComposeContentToolbarView: View {
.frame(height: ComposeContentToolbarView.toolbarHeight)
.background(Color(viewModel.backgroundColor))
.accessibilityElement(children: .contain)
// TODO: i18n
// TODO: i18n (scene.compose.accessibility.post_options)
.accessibilityLabel("Post Options")
}

View File

@ -148,8 +148,8 @@ extension ComposeContentView {
Spacer()
}
.accessibilityElement(children: .ignore)
// TODO: i18n
.accessibilityLabel("Posting as \(viewModel.name.string), \(viewModel.username)")
// TODO: i18n (scene.compose.accessibility.posting_as)
.accessibilityLabel("Posting as \([viewModel.name.string, viewModel.username].joined(separator: ", "))")
}
}