Update strings.

This commit is contained in:
Michelle Tang
2025-12-10 12:41:18 -05:00
parent a967cd8541
commit d75e9b7a4b
3 changed files with 13 additions and 9 deletions

View File

@@ -345,7 +345,7 @@ class CallLogAdapter(
}
private fun presentCallInfo(call: CallLogRow.Call, date: Long) {
val callState = context.getString(getCallStateStringRes(call.record))
val callState = context.getString(getCallStateStringRes(call.record, call.children.size))
binding.callInfo.text = context.getString(
R.string.CallLogAdapter__s_dot_s,
if (call.children.size > 1) {
@@ -467,14 +467,15 @@ class CallLogAdapter(
}
@StringRes
private fun getCallStateStringRes(call: CallTable.Call): Int {
private fun getCallStateStringRes(call: CallTable.Call, missedCalls: Int): Int {
return when (call.messageType) {
MessageTypes.MISSED_VIDEO_CALL_TYPE, MessageTypes.MISSED_AUDIO_CALL_TYPE -> if (call.event == CallTable.Event.MISSED) R.string.CallLogAdapter__missed else R.string.CallLogAdapter__missed_notification_profile
MessageTypes.OUTGOING_AUDIO_CALL_TYPE -> R.string.CallLogAdapter__outgoing
MessageTypes.OUTGOING_VIDEO_CALL_TYPE -> R.string.CallLogAdapter__outgoing
MessageTypes.GROUP_CALL_TYPE -> when {
call.type == CallTable.Type.AD_HOC_CALL -> R.string.CallLogAdapter__call_link
call.event == CallTable.Event.MISSED_NOTIFICATION_PROFILE -> R.string.CallLogAdapter__missed_notification_profile
call.event == CallTable.Event.MISSED_NOTIFICATION_PROFILE && missedCalls == 1 -> R.string.CallLogAdapter__missed_notification_profile
call.event == CallTable.Event.MISSED_NOTIFICATION_PROFILE -> R.string.CallLogAdapter__missed_notification_profile_multiple
call.isDisplayedAsMissedCallInUi -> R.string.CallLogAdapter__missed
call.event == CallTable.Event.GENERIC_GROUP_CALL || call.event == CallTable.Event.JOINED -> R.string.CallPreference__group_call
call.direction == CallTable.Direction.INCOMING -> R.string.CallLogAdapter__incoming

View File

@@ -111,7 +111,7 @@ public class ChatWallpaperFragment extends Fragment {
if (viewModel.isGlobal()) {
resetAllWallpaper.setOnClickListener(unused -> {
new MaterialAlertDialogBuilder(requireContext())
.setTitle(R.string.ChatWallpaperFragment__reset_wallpaper)
.setTitle(R.string.ChatWallpaperFragment__reset_wallpapers)
.setMessage(R.string.ChatWallpaperFragment__would_you_like_to_override_all_wallpapers)
.setPositiveButton(R.string.ChatWallpaperFragment__reset_default_wallpaper, (dialog, which) -> {
viewModel.setWallpaper(null);

View File

@@ -5278,7 +5278,7 @@
<string name="ChatWallpaperFragment__wallpaper_preview_description">Wallpaper preview</string>
<string name="ChatWallpaperFragment__would_you_like_to_override_all_chat_colors">Would you like to override all chat colors?</string>
<string name="ChatWallpaperFragment__would_you_like_to_override_all_wallpapers">Would you like to override all wallpapers?</string>
<string name="ChatWallpaperFragment__reset_default_colors">Reset default colors</string>
<string name="ChatWallpaperFragment__reset_default_colors">Reset default color</string>
<string name="ChatWallpaperFragment__reset_all_colors">Reset all colors</string>
<string name="ChatWallpaperFragment__reset_default_wallpaper">Reset default wallpaper</string>
<string name="ChatWallpaperFragment__reset_all_wallpapers">Reset all wallpapers</string>
@@ -6221,7 +6221,8 @@
<!-- Label for Donation Receipts button -->
<string name="ManageDonationsFragment__donation_receipts">Donation Receipts</string>
<string name="ManageDonationsFragment__badges">Badges</string>
<string name="ManageDonationsFragment__subscription_faq">Subscription FAQ</string>
<!-- Label that externally links to Signal Donor FAQ page -->
<string name="ManageDonationsFragment__subscription_faq">Donor FAQ</string>
<!-- Preference heading for other ways to donate -->
<string name="ManageDonationsFragment__other_ways_to_give">Other ways to give</string>
<!-- Preference label to launch badge gifting -->
@@ -7502,8 +7503,10 @@
<string name="CallLogAdapter__outgoing">Outgoing</string>
<!-- Displayed for missed calls -->
<string name="CallLogAdapter__missed">Missed</string>
<!-- Displayed for missed calls declined by notification profile -->
<!-- Displayed for one missed call declined by notification profile -->
<string name="CallLogAdapter__missed_notification_profile">Missed while notification profile on</string>
<!-- Displayed for multiple missed calls declined by notification profile -->
<string name="CallLogAdapter__missed_notification_profile_multiple">Missed while notification profile on</string>
<!-- Displayed on Group Call button if user is not in the call -->
<string name="CallLogAdapter__join">Join</string>
<!-- Displayed on Group Call button if user is in the call -->
@@ -8591,7 +8594,7 @@
<!-- Verify your key title -->
<string name="VerifyBackupPinScreen__enter_your_backup_key">Enter your recovery key</string>
<!-- Verify your key subtitle -->
<string name="VerifyBackupPinScreen__enter_the_backup_key_that_you_recorded">Enter the 64-digit code you recorded when you enabled backups.</string>
<string name="VerifyBackupPinScreen__enter_the_backup_key_that_you_recorded">Enter the 64-character code you recorded when you enabled backups.</string>
<!-- Button text when you forget your recovery key -->
<string name="VerifyBackupPinScreen__forgot_key">Forgot key?</string>
@@ -9020,7 +9023,7 @@
<!-- Link text to view debug log -->
<string name="CallQualitySheet__view_your_debug_log">view your debug log</string>
<!-- Last part of description about viewing debug log before submitting -->
<string name="CallQualitySheet__help_us_improve_description_suffix"> before submitting</string>
<string name="CallQualitySheet__help_us_improve_description_suffix"> before submitting.</string>
<!-- Toggle label for sharing debug log -->
<string name="CallQualitySheet__share_debug_log">Share debug log</string>
<!-- Privacy notice explaining what debug logs contain and why they are helpful -->