nolanlawson / pinafore

Alternative web client for Mastodon (UNMAINTAINED)
https://pinafore.social
GNU Affero General Public License v3.0
1.02k stars 175 forks source link

Set toot language #2167

Open mirabilos opened 2 years ago

mirabilos commented 2 years ago

The GoToSocial admin panel lets me set a default language for my toots. This implies I can set the language per toot but I cannot see how to do that in Pinafore.

Arkanosis commented 2 years ago

I understand that ActivityStreams even specifies what could be toots in multiple languages at once, but ATM it seems Mastodon only supports choosing language on a per-toot basis. I don't think that's possible today with pinafore, but would love to be proven wrong :)

mirabilos commented 2 years ago

Jérémie Roquet dixit:

I understand that ActivityStreams even specifies what could be toots in multiple languages at once

Yes please! (Sometimes I do put multiple ones in one.)

I’d be happy to just specify the language values as string, like "en-DE, de-DE-1901" for a mixed-language one. (Also, the GtS default post language selector is missing Latin, so a string input field even if you have a dropdown or so would be welcome for those languages that would be missing from such dropdowns.)

Thanks, //mirabilos -- 17:57 < jtsn> Der 25C3 ist lustig. Deutsche Vortragende brechen sich vor deutschen Zuhörern auf Englisch einen ab. ;-) 18:01 < jtsn> Adolfs Werk war sehr nachhaltig. ;-) 18:01 < jtsn> Das gab's nichtmal in der DDR, das Deutsche mit Deutschen auf Russisch reden. ;-) (10x cnuke@)

mirabilos commented 2 years ago

Thorsten Glaser dixit:

so a string input field even if you have a dropdown or so

Maybe even better: make the dropdown configurable. Can such data be stored “with” the user account (Pinafore is pretty much stateless, IIUC)?

Then I could add my favourite couple of languages and language combinations there and select them with just two clicks.

Just thinking (new at this network), //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uhr.gz is a reason to install mksh on every system.”)

nolanlawson commented 2 years ago

I think per-toot language is a new feature in Mastodon v4? This is not something I've supported at all in Pinafore up to now. I'd have to do some research into how it works.

mirabilos commented 2 years ago

Nolan Lawson dixit:

I think per-toot language is a new feature in Mastodon v4?

Oh, is it? I’ve got no idea. I assumed that, from being able to set the language on mine as user preference, that there would be a way to set a different one per posting, especially considering there was no way to set no language in the user preferences and that a good part of the world is polyglot.

I use GoToSocial, anyway.

bye, //mirabilos -- 22:20⎜ The crazy that persists in his craziness becomes a master 22:21⎜ And the distance between the craziness and geniality is only measured by the success 18:35⎜ "Psychotics are consistently inconsistent. The essence of sanity is to be inconsistently inconsistent

vasilisvg commented 1 year ago

Per-toot language was new in version 3.5.3 (I think). Accessibility can be greatly improved by adding the appropriate lang-attribute to each toot. This is especially handy for screen reader users who follow not only toots in English. Right now, an English voice will speak out Dutch toots. Which is very funny at first, but it gets quite annoying and hard to understand after a while.