i18n edited_suffix

This commit is contained in:
Benoit Marty 2019-07-10 15:29:52 +02:00
parent 06699eaefc
commit d613abf4b4
2 changed files with 3 additions and 2 deletions

View File

@ -311,8 +311,7 @@ class MessageItemFactory @Inject constructor(
editSummary: EditAggregatedSummary?): SpannableStringBuilder { editSummary: EditAggregatedSummary?): SpannableStringBuilder {
val spannable = SpannableStringBuilder() val spannable = SpannableStringBuilder()
spannable.append(linkifiedBody) spannable.append(linkifiedBody)
// TODO i18n val editedSuffix = stringProvider.getString(R.string.edited_suffix)
val editedSuffix = "(edited)"
spannable.append(" ").append(editedSuffix) spannable.append(" ").append(editedSuffix)
val color = colorProvider.getColorFromAttribute(R.attr.vctr_list_header_secondary_text_color) val color = colorProvider.getColorFromAttribute(R.attr.vctr_list_header_secondary_text_color)
val editStart = spannable.indexOf(editedSuffix) val editStart = spannable.indexOf(editedSuffix)

View File

@ -14,5 +14,7 @@
<string name="downloading_file">Downloading file %1$s…</string> <string name="downloading_file">Downloading file %1$s…</string>
<string name="downloaded_file">File %1$s has been downloaded!</string> <string name="downloaded_file">File %1$s has been downloaded!</string>


<string name="edited_suffix">"(edited)"</string>



</resources> </resources>