Adding comments on some strings and removing non necessary plural
This commit is contained in:
parent
cbf8306c6f
commit
e9d93194f1
|
@ -118,7 +118,7 @@ object TextUtils {
|
||||||
|
|
||||||
private fun appendHours(context: Context, builder: StringBuilder, hours: Int) {
|
private fun appendHours(context: Context, builder: StringBuilder, hours: Int) {
|
||||||
builder.append(hours)
|
builder.append(hours)
|
||||||
builder.append(context.resources.getQuantityString(R.plurals.time_unit_hour_short, hours))
|
builder.append(context.resources.getString(R.string.time_unit_hour_short))
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun appendMinutes(context: Context, builder: StringBuilder, minutes: Int) {
|
private fun appendMinutes(context: Context, builder: StringBuilder, minutes: Int) {
|
||||||
|
|
|
@ -57,7 +57,6 @@ abstract class MessageLiveLocationItem : AbsMessageLocationItem<MessageLiveLocat
|
||||||
holder.locationLiveMessageBanner.stopButton.setOnClickListener {
|
holder.locationLiveMessageBanner.stopButton.setOnClickListener {
|
||||||
attributes.callback?.onTimelineItemAction(RoomDetailAction.StopLiveLocationSharing)
|
attributes.callback?.onTimelineItemAction(RoomDetailAction.StopLiveLocationSharing)
|
||||||
}
|
}
|
||||||
// TODO adjust Copyright map placement if needed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun buildViewState(
|
private fun buildViewState(
|
||||||
|
|
|
@ -322,12 +322,11 @@
|
||||||
<string name="start_chatting">Start Chatting</string>
|
<string name="start_chatting">Start Chatting</string>
|
||||||
<string name="spaces">Spaces</string>
|
<string name="spaces">Spaces</string>
|
||||||
|
|
||||||
<!-- Time units -->
|
<!-- Time unit for hour: if a short version exists, it should be used -->
|
||||||
<plurals name="time_unit_hour_short">
|
<string name="time_unit_hour_short">h</string>
|
||||||
<item quantity="one">hour</item>
|
<!-- Time unit for minute: if a short version exists, it should be used -->
|
||||||
<item quantity="other">hours</item>
|
|
||||||
</plurals>
|
|
||||||
<string name="time_unit_minute_short">min</string>
|
<string name="time_unit_minute_short">min</string>
|
||||||
|
<!-- Time unit for second: if a short version exists, it should be used -->
|
||||||
<string name="time_unit_second_short">sec</string>
|
<string name="time_unit_second_short">sec</string>
|
||||||
|
|
||||||
<!-- Permissions denied forever -->
|
<!-- Permissions denied forever -->
|
||||||
|
@ -3024,8 +3023,10 @@
|
||||||
<string name="location_share_live_started">Loading live location…</string>
|
<string name="location_share_live_started">Loading live location…</string>
|
||||||
<string name="location_share_live_ended">Live location ended</string>
|
<string name="location_share_live_ended">Live location ended</string>
|
||||||
<string name="location_share_live_view">View live location</string>
|
<string name="location_share_live_view">View live location</string>
|
||||||
|
<!-- Examples of usage: Live until 5:42 PM/Live until 17:42-->
|
||||||
<string name="location_share_live_until">Live until %1$s</string>
|
<string name="location_share_live_until">Live until %1$s</string>
|
||||||
<string name="location_share_live_stop">Stop</string>
|
<string name="location_share_live_stop">Stop</string>
|
||||||
|
<!-- Examples of usage: 6h 15min 30sec left/15min 30sec left/30 sec left-->
|
||||||
<string name="location_share_live_remaining_time">%1$s left</string>
|
<string name="location_share_live_remaining_time">%1$s left</string>
|
||||||
<string name="live_location_sharing_notification_title">${app_name} Live Location</string>
|
<string name="live_location_sharing_notification_title">${app_name} Live Location</string>
|
||||||
<string name="live_location_sharing_notification_description">Location sharing is in progress</string>
|
<string name="live_location_sharing_notification_description">Location sharing is in progress</string>
|
||||||
|
|
Loading…
Reference in New Issue