Remove hardcoded strings
This commit is contained in:
parent
f5683f9c8b
commit
11866afb03
3 changed files with 3 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ fun LocationShareRow(
|
|||
)
|
||||
}
|
||||
Text(
|
||||
text = if (item.isLive) "Sharing live location" else item.formattedTimestamp,
|
||||
text = if (item.isLive) stringResource(CommonStrings.screen_room_live_location_banner) else item.formattedTimestamp,
|
||||
style = ElementTheme.typography.fontBodySmRegular,
|
||||
color = if(item.isLive) ElementTheme.colors.textPrimary else ElementTheme.colors.textSecondary,
|
||||
maxLines = 1,
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ fun ShowLocationView(
|
|||
}
|
||||
if (state.locationShares.isEmpty()) {
|
||||
Text(
|
||||
text = "Nobody is sharing their location",
|
||||
text = stringResource(CommonStrings.screen_live_location_sheet_nobody_sharing),
|
||||
style = ElementTheme.typography.fontBodyLgMedium,
|
||||
color = ElementTheme.colors.textPrimary,
|
||||
modifier = Modifier
|
||||
|
|
|
|||
|
|
@ -467,6 +467,7 @@ Are you sure you want to continue?"</string>
|
|||
<string name="screen_create_poll_options_section_title">"Options"</string>
|
||||
<string name="screen_create_poll_remove_accessibility_label">"Remove %1$s"</string>
|
||||
<string name="screen_create_poll_settings_section_title">"Settings"</string>
|
||||
<string name="screen_live_location_sheet_nobody_sharing">"Nobody is sharing their location"</string>
|
||||
<string name="screen_media_picker_error_failed_selection">"Failed selecting media, please try again."</string>
|
||||
<string name="screen_missing_key_backup_open_element_classic">"Open Element Classic"</string>
|
||||
<string name="screen_missing_key_backup_step_1">"Open Element Classic on your device"</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue