Skip to content

Commit

Permalink
This allows user to translate own post (#4648)
Browse files Browse the repository at this point in the history
This allows user to translate own post
Closes #4645
  • Loading branch information
andrewhamilton0 authored Sep 4, 2024
1 parent 85a59ec commit 60a1922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ abstract class SFragment(@LayoutRes contentLayoutId: Int) : Fragment(contentLayo
)
}

// translation not there for your own posts, posts already in your language or non-public posts
// translation not there for posts already in your language or non-public posts
menu.findItem(R.id.status_translate)?.let { translateItem ->
translateItem.isVisible = onMoreTranslate != null &&
!status.language.equals(Locale.getDefault().language, ignoreCase = true) &&
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/menu/status_more_for_user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<item
android:id="@+id/status_copy_link"
android:title="@string/action_copy_link" />
<item
android:id="@+id/status_translate"
android:title="@string/action_translate" />
<item
android:id="@+id/status_open_as"
android:title="@string/action_open_as" />
Expand Down

0 comments on commit 60a1922

Please sign in to comment.