Browse Source

Room navigation : import join room strings

pull/2695/head
ganfra 5 months ago
parent
commit
14a638626d
  1. 4
      features/joinroom/impl/src/main/kotlin/io/element/android/features/joinroom/impl/JoinRoomView.kt
  2. 9
      features/joinroom/impl/src/main/res/values/localazy.xml
  3. 6
      tools/localazy/config.json

4
features/joinroom/impl/src/main/kotlin/io/element/android/features/joinroom/impl/JoinRoomView.kt

@ -147,14 +147,14 @@ private fun JoinRoomContent( @@ -147,14 +147,14 @@ private fun JoinRoomContent(
}
Spacer(modifier = Modifier.height(16.dp))
Text(
text = "Preview is not available",
text = stringResource(id = R.string.screen_join_room_title_no_preview),
style = ElementTheme.typography.fontHeadingMdBold,
textAlign = TextAlign.Center,
color = ElementTheme.colors.textPrimary,
)
Spacer(modifier = Modifier.height(8.dp))
Text(
text = "You must be a member of this room to view the message history.",
text = stringResource(id = R.string.screen_join_room_subtitle_no_preview),
style = ElementTheme.typography.fontBodyMdRegular,
textAlign = TextAlign.Center,
color = ElementTheme.colors.textSecondary,

9
features/joinroom/impl/src/main/res/values/localazy.xml

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="screen_join_room_join_action">"Join room"</string>
<string name="screen_join_room_knock_action">"Knock to join"</string>
<string name="screen_join_room_subtitle_knock">"Click the button below and a room administrator will be notified. You’ll be able to join the conversation once approved."</string>
<string name="screen_join_room_subtitle_no_preview">"You must be a member of this room to view the message history."</string>
<string name="screen_join_room_title_knock">"Want to join this room?"</string>
<string name="screen_join_room_title_no_preview">"Preview is not available"</string>
</resources>

6
tools/localazy/config.json

@ -233,6 +233,12 @@ @@ -233,6 +233,12 @@
"includeRegex" : [
"screen_room_directory_.*"
]
},
{
"name" : ":features:joinroom:impl",
"includeRegex" : [
"screen_join_room_.*"
]
}
]
}

Loading…
Cancel
Save