diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/home/StartConversation.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/home/StartConversation.kt index 829e576340..eae3f42d4c 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/home/StartConversation.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/home/StartConversation.kt @@ -52,7 +52,7 @@ internal fun StartConversationScreen( ItemButton( textId = R.string.messageNew, icon = R.drawable.ic_message, - modifier = Modifier.contentDescription(R.string.AccessibilityId_new_direct_message), + modifier = Modifier.contentDescription(R.string.AccessibilityId_messageNew), onClick = delegate::onNewMessageSelected) Divider(startIndent = LocalDimensions.current.dividerIndent) ItemButton( diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index 7552551ace..b9e5c46079 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -1157,7 +1157,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe .put(NAME_KEY, recipient.name) .format() ) - dangerButton(R.string.block, R.string.AccessibilityId_block_confirm) { + dangerButton(R.string.block, R.string.AccessibilityId_blockConfirm) { viewModel.block() // Block confirmation toast added as per SS-64 @@ -1217,7 +1217,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe ) dangerButton( R.string.blockUnblock, - R.string.AccessibilityId_unblock_confirm + R.string.AccessibilityId_unblockConfirm ) { viewModel.unblock() diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt index 486d6aba87..d3e1de9912 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt @@ -43,7 +43,7 @@ class DownloadDialog(private val recipient: Recipient) : DialogFragment() { spannable.setSpan(StyleSpan(Typeface.BOLD), startIndex, startIndex + name.count(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE) text(spannable) - button(R.string.download, R.string.AccessibilityId_download_media) { trust() } + button(R.string.download, R.string.AccessibilityId_download) { trust() } cancelButton { dismiss() } } diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt index c8aacdeb6e..431e073703 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/input_bar/InputBar.kt @@ -79,7 +79,7 @@ class InputBar @JvmOverloads constructor( var voiceMessageDurationMS = 0L var voiceRecorderState = VoiceRecorderState.Idle - private val attachmentsButton = InputBarButton(context, R.drawable.ic_plus_24).apply { contentDescription = context.getString(R.string.AccessibilityId_attachments_button)} + private val attachmentsButton = InputBarButton(context, R.drawable.ic_plus_24).apply { contentDescription = context.getString(R.string.AccessibilityId_attachmentsButton)} val microphoneButton = InputBarButton(context, R.drawable.ic_microphone).apply { contentDescription = context.getString(R.string.AccessibilityId_microphone_button)} private val sendButton = InputBarButton(context, R.drawable.ic_arrow_up, true).apply { contentDescription = context.getString(R.string.AccessibilityId_send_message_button)} diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt index 1e8fb49252..2ec7334139 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/menus/ConversationMenuHelper.kt @@ -19,14 +19,12 @@ import androidx.core.graphics.drawable.IconCompat import com.squareup.phrase.Phrase import java.io.IOException import network.loki.messenger.R -import org.session.libsession.LocalisedTimeUtil import org.session.libsession.messaging.sending_receiving.MessageSender import org.session.libsession.messaging.sending_receiving.leave import org.session.libsession.utilities.GroupUtil.doubleDecodeGroupID import org.session.libsession.utilities.StringSubstitutionConstants.GROUP_NAME_KEY import org.session.libsession.utilities.TextSecurePreferences import org.session.libsession.utilities.recipients.Recipient -import org.session.libsignal.utilities.Log import org.session.libsignal.utilities.guava.Optional import org.session.libsignal.utilities.toHexString import org.thoughtcrime.securesms.MediaOverviewActivity @@ -43,7 +41,6 @@ import org.thoughtcrime.securesms.service.WebRtcCallService import org.thoughtcrime.securesms.showMuteDialog import org.thoughtcrime.securesms.showSessionDialog import org.thoughtcrime.securesms.util.BitmapUtil -import kotlin.time.Duration.Companion.milliseconds object ConversationMenuHelper { @@ -171,7 +168,7 @@ object ConversationMenuHelper { context.showSessionDialog { title(R.string.callsPermissionsRequired) text(R.string.callsPermissionsRequiredDescription) - button(R.string.sessionSettings, R.string.AccessibilityId_settings) { + button(R.string.sessionSettings, R.string.AccessibilityId_sessionSettings) { Intent(context, PrivacySettingsActivity::class.java).let(context::startActivity) } cancelButton() @@ -185,7 +182,6 @@ object ConversationMenuHelper { Intent(context, WebRtcCallActivity::class.java) .apply { flags = Intent.FLAG_ACTIVITY_NEW_TASK } .let(context::startActivity) - } @SuppressLint("StaticFieldLeak") diff --git a/app/src/main/res/layout/activity_conversation_v2.xml b/app/src/main/res/layout/activity_conversation_v2.xml index ea08d94f01..5f541bb391 100644 --- a/app/src/main/res/layout/activity_conversation_v2.xml +++ b/app/src/main/res/layout/activity_conversation_v2.xml @@ -122,7 +122,7 @@ android:layout_marginTop="8dp" android:layout_width="@dimen/input_bar_button_expanded_size" android:layout_height="@dimen/input_bar_button_expanded_size" - android:contentDescription="@string/AccessibilityId_documents_folder" + android:contentDescription="@string/AccessibilityId_files" android:alpha="0" /> @@ -78,7 +78,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" - android:contentDescription="@string/AccessibilityId_group_name" + android:contentDescription="@string/AccessibilityId_groupName" android:textColor="?android:textColorPrimary" android:textSize="@dimen/very_large_font_size" android:textStyle="bold" @@ -124,7 +124,7 @@ android:layout_marginVertical="@dimen/small_spacing" android:layout_marginEnd="@dimen/medium_spacing" android:layout_marginStart="@dimen/small_spacing" - android:contentDescription="@string/AccessibilityId_add_members" + android:contentDescription="@string/AccessibilityId_membersInvite" android:paddingStart="@dimen/medium_spacing" android:paddingEnd="@dimen/medium_spacing" android:text="@string/membersInvite" /> diff --git a/app/src/main/res/layout/fragment_conversation_bottom_sheet.xml b/app/src/main/res/layout/fragment_conversation_bottom_sheet.xml index c64da7c365..591af450fb 100644 --- a/app/src/main/res/layout/fragment_conversation_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_conversation_bottom_sheet.xml @@ -70,7 +70,7 @@ diff --git a/app/src/main/res/layout/view_input_bar.xml b/app/src/main/res/layout/view_input_bar.xml index 6bebf45dfd..13f164fd33 100644 --- a/app/src/main/res/layout/view_input_bar.xml +++ b/app/src/main/res/layout/view_input_bar.xml @@ -27,7 +27,7 @@ + android:contentDescription="@string/AccessibilityId_contactMentions"/> @@ -42,7 +42,7 @@ android:textColor="?android:textColorPrimary" android:maxLines="1" tools:text="Alice" - android:contentDescription="@string/AccessibilityId_contact_mentions" + android:contentDescription="@string/AccessibilityId_contactMentions" android:ellipsize="end" /> diff --git a/app/src/main/res/layout/view_user.xml b/app/src/main/res/layout/view_user.xml index 177b3ff6c9..826b3fffc9 100644 --- a/app/src/main/res/layout/view_user.xml +++ b/app/src/main/res/layout/view_user.xml @@ -38,7 +38,7 @@ + android:contentDescription="@string/AccessibilityId_conversationsSettingsAllMedia"/> diff --git a/app/src/main/res/menu/menu_conversation_closed_group.xml b/app/src/main/res/menu/menu_conversation_closed_group.xml index 8b2756f014..fb6bc6da92 100644 --- a/app/src/main/res/menu/menu_conversation_closed_group.xml +++ b/app/src/main/res/menu/menu_conversation_closed_group.xml @@ -5,13 +5,13 @@ diff --git a/app/src/main/res/menu/menu_conversation_expiration.xml b/app/src/main/res/menu/menu_conversation_expiration.xml index 4a96db9b42..004f732459 100644 --- a/app/src/main/res/menu/menu_conversation_expiration.xml +++ b/app/src/main/res/menu/menu_conversation_expiration.xml @@ -5,6 +5,6 @@ + android:contentDescription="@string/AccessibilityId_disappearingMessages" /> \ No newline at end of file diff --git a/app/src/main/res/menu/menu_conversation_notification_settings.xml b/app/src/main/res/menu/menu_conversation_notification_settings.xml index 8faf3afee2..5fdcd7fac8 100644 --- a/app/src/main/res/menu/menu_conversation_notification_settings.xml +++ b/app/src/main/res/menu/menu_conversation_notification_settings.xml @@ -3,5 +3,5 @@ + android:contentDescription="@string/AccessibilityId_sessionNotifications"/> \ No newline at end of file diff --git a/app/src/main/res/menu/menu_conversation_unmuted.xml b/app/src/main/res/menu/menu_conversation_unmuted.xml index dc0367bc94..dc529f5e1d 100644 --- a/app/src/main/res/menu/menu_conversation_unmuted.xml +++ b/app/src/main/res/menu/menu_conversation_unmuted.xml @@ -5,6 +5,6 @@ + android:contentDescription="@string/AccessibilityId_notificationsMute" /> \ No newline at end of file diff --git a/app/src/main/res/menu/menu_edit_closed_group.xml b/app/src/main/res/menu/menu_edit_closed_group.xml index bcf12aefe2..0bba6a3823 100644 --- a/app/src/main/res/menu/menu_edit_closed_group.xml +++ b/app/src/main/res/menu/menu_edit_closed_group.xml @@ -6,7 +6,7 @@ diff --git a/content-descriptions/src/main/res/values/strings.xml b/content-descriptions/src/main/res/values/strings.xml index 9be3fdeeac..23ec383ff6 100644 --- a/content-descriptions/src/main/res/values/strings.xml +++ b/content-descriptions/src/main/res/values/strings.xml @@ -56,60 +56,54 @@ Create group Join community button New conversation button - New direct message + New direct message - Community input - Join community button + Community input - Add to home screen - All media + Add to home screen + All media Block - Confirm block - Confirm unblock + Confirm block + Confirm unblock Delete - Disappearing messages + Disappearing messages Enable - Mute notifications - Notification settings + Mute notifications + Notification settings Search - Accept name change - Add members - Apply changes - Cancel name change - Contact mentions + Accept name change + Add members + Apply changes + Cancel name change + Contact mentions Done - Edit group - Group name - Leave group + Edit group + Group name + Leave group Mentions list - Accept message request - Block message request - Call button + Accept message request + Block message request + Call button Confirm - Decline message request - Time selector - Settings - Timer icon + Decline message request + Settings - Blocked banner - Blocked banner text + Blocked banner + Blocked banner text Control message - Follow setting + Follow setting Next - Session id input box Contact - Continue group creation - Group name input - Select contact + Group name input + Select contact - Attachments button - Documents folder - Don\'t download media - Download media + Attachments button + Documents folder + Download media GIF button Images folder Message input box diff --git a/libsession/src/main/res/values-fr-rFR/strings.xml b/libsession/src/main/res/values-fr-rFR/strings.xml index 5401367554..30d0ee1528 100644 --- a/libsession/src/main/res/values-fr-rFR/strings.xml +++ b/libsession/src/main/res/values-fr-rFR/strings.xml @@ -1,5 +1,8 @@ + + Le Session + Vous diff --git a/libsession/src/main/res/values-fr/strings.xml b/libsession/src/main/res/values-fr/strings.xml index b914ca09b8..d231fecde1 100644 --- a/libsession/src/main/res/values-fr/strings.xml +++ b/libsession/src/main/res/values-fr/strings.xml @@ -1,5 +1,10 @@ + + + Le Session + + Vous diff --git a/libsession/src/main/res/values/strings.xml b/libsession/src/main/res/values/strings.xml index 07f727784e..b4b74ba643 100644 --- a/libsession/src/main/res/values/strings.xml +++ b/libsession/src/main/res/values/strings.xml @@ -687,7 +687,7 @@ Help Invite a Friend Message Requests - Session + Session Notifications Permissions Privacy