Add new strings to Localization folder
This commit is contained in:
parent
022f8c1115
commit
549739b6cb
|
@ -68,6 +68,26 @@
|
||||||
<string>%ld characters</string>
|
<string>%ld characters</string>
|
||||||
</dict>
|
</dict>
|
||||||
</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>
|
<key>plural.count.followed_by_and_mutual</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSStringLocalizedFormatKey</key>
|
<key>NSStringLocalizedFormatKey</key>
|
||||||
|
|
|
@ -405,7 +405,9 @@
|
||||||
"custom_emoji_picker": "Custom Emoji Picker",
|
"custom_emoji_picker": "Custom Emoji Picker",
|
||||||
"enable_content_warning": "Enable Content Warning",
|
"enable_content_warning": "Enable Content Warning",
|
||||||
"disable_content_warning": "Disable 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": {
|
"keyboard": {
|
||||||
"discard_post": "Discard Post",
|
"discard_post": "Discard Post",
|
||||||
|
@ -686,4 +688,4 @@
|
||||||
"accessibility_hint": "Double tap to dismiss this wizard"
|
"accessibility_hint": "Double tap to dismiss this wizard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ struct ComposeContentToolbarView: View {
|
||||||
Text("\(remains)")
|
Text("\(remains)")
|
||||||
.foregroundColor(Color(isOverflow ? UIColor.systemRed : UIColor.secondaryLabel))
|
.foregroundColor(Color(isOverflow ? UIColor.systemRed : UIColor.secondaryLabel))
|
||||||
.font(.system(size: isOverflow ? 18 : 16, weight: isOverflow ? .medium : .regular))
|
.font(.system(size: isOverflow ? 18 : 16, weight: isOverflow ? .medium : .regular))
|
||||||
// TODO: i18n
|
// TODO: i18n (a11y.plural.count.characters_left)
|
||||||
.accessibilityLabel("\(remains) characters left")
|
.accessibilityLabel("\(remains) characters left")
|
||||||
}
|
}
|
||||||
.padding(.leading, 4) // 4 + 12 = 16
|
.padding(.leading, 4) // 4 + 12 = 16
|
||||||
|
@ -95,7 +95,7 @@ struct ComposeContentToolbarView: View {
|
||||||
.frame(height: ComposeContentToolbarView.toolbarHeight)
|
.frame(height: ComposeContentToolbarView.toolbarHeight)
|
||||||
.background(Color(viewModel.backgroundColor))
|
.background(Color(viewModel.backgroundColor))
|
||||||
.accessibilityElement(children: .contain)
|
.accessibilityElement(children: .contain)
|
||||||
// TODO: i18n
|
// TODO: i18n (scene.compose.accessibility.post_options)
|
||||||
.accessibilityLabel("Post Options")
|
.accessibilityLabel("Post Options")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,8 +148,8 @@ extension ComposeContentView {
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
.accessibilityElement(children: .ignore)
|
.accessibilityElement(children: .ignore)
|
||||||
// TODO: i18n
|
// TODO: i18n (scene.compose.accessibility.posting_as)
|
||||||
.accessibilityLabel("Posting as \(viewModel.name.string), \(viewModel.username)")
|
.accessibilityLabel("Posting as \([viewModel.name.string, viewModel.username].joined(separator: ", "))")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue