Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

"System default" in default posting language refers to an incorrect language if UI language is set otherwise

Open yudai-nkt opened this issue 2 years ago • 3 comments

My Tusky's UI is currently set to English but I'd like the default posting language to be Japanese because I mostly toot in that language. My phone's language is Japanese so I expect the system default in default posting language refers to Japanese but it actually doesn't. Language in toot composition pane is set to English.

Below is a reproduction screencast:

https://github.com/tuskyapp/Tusky/assets/13291527/e26ea71d-4e28-4ffc-830c-3dd499ffd9a9


  • Tusky Version: 22.0

  • Android Version: 13

  • Android Device: Google Pixel 7

  • Mastodon instance (if applicable): N/A

  • [x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.

yudai-nkt avatar Jul 08 '23 14:07 yudai-nkt

Can confirm this: If "Account preferences > Default posting language" is set to "System default" the posting language is always the language set under "Preferences > Language" (in Tusky).

Lakoja avatar Aug 08 '23 08:08 Lakoja

Maybe @Tak wants to take a look?

In getInitialLanguages the "system default" seems to be the first of LocaleListCompat.getDefault()?

Lakoja avatar Aug 08 '23 08:08 Lakoja

Sorry I missed this mention 😬, probably because I was on summer break at the time. I think we just need to change the wording ("system default") on the label. Maybe just "default"?

The order of priority is:

  • language of the post you're replying to
  • default posting language configured on the server (this is where OP should set japanese btw)
  • default languages configured for this application in the android application settings (or Tusky Preferences / Language)
  • default languages configured for the android at a system level

Tak avatar Mar 25 '25 10:03 Tak