Add string resources to strings.xml

This commit is contained in:
Akiomi Kamakura 2023-03-11 13:00:35 +09:00
parent b387808a02
commit 31e724662d
No known key found for this signature in database
GPG Key ID: 7803155EB5BC40ED
3 changed files with 3 additions and 2 deletions

View File

@ -186,7 +186,7 @@ fun ServerConfigHeader() {
Spacer(modifier = Modifier.size(5.dp))
Text(
text = "Spam",
text = stringResource(R.string.spam),
maxLines = 1,
fontSize = 14.sp,
modifier = Modifier.weight(1f),

View File

@ -829,7 +829,7 @@ fun NoteDropDownMenu(note: Note, popupExpanded: Boolean, onDismiss: () -> Unit,
if (note.author == accountViewModel.accountLiveData.value?.account?.userProfile()) {
Divider()
DropdownMenuItem(onClick = { accountViewModel.delete(note); onDismiss() }) {
Text("Request Deletion")
Text(stringResource(R.string.request_deletion))
}
}
if (note.author != accountViewModel.accountLiveData.value?.account?.userProfile()) {

View File

@ -23,6 +23,7 @@
<string name="copy_user_pubkey">Copy Author ID</string>
<string name="copy_note_id">Copy Note ID</string>
<string name="broadcast">Broadcast</string>
<string name="request_deletion">Request Deletion</string>
<string name="block_hide_user"><![CDATA[Block & Hide User]]></string>
<string name="report_spam_scam">Report Spam / Scam</string>
<string name="report_impersonation">Report Impersonation</string>