gotosocial icon indicating copy to clipboard operation
gotosocial copied to clipboard

[feature] Better handling for post languages

Open tsmethurst opened this issue 1 year ago • 7 comments

There a couple of things we could be doing for posts to better surface their language property, which we don't currently do:

  • [x] https://github.com/superseriousbusiness/gotosocial/issues/2066
  • [x] https://github.com/superseriousbusiness/gotosocial/issues/2065
  • [x] https://github.com/superseriousbusiness/gotosocial/issues/2064
  • [x] https://github.com/superseriousbusiness/gotosocial/issues/1277
  • [ ] https://github.com/superseriousbusiness/gotosocial/issues/2306

We should try and do some or all of these, to make GtS easier to use for folks who post/read posts in multiple different languages!

tsmethurst avatar Aug 03 '23 12:08 tsmethurst

Today's #2066 is also related to post languages.

VyrCossont avatar Aug 03 '23 21:08 VyrCossont

Somewhat related: #1277 This one is from the previous year

tevino avatar Sep 08 '23 17:09 tevino

tried to change the language directly through db - didn't helped

zordsdavini avatar Dec 02 '23 19:12 zordsdavini

Hi, I'd like to note that #2066 isn't fully resolved. While BCP 47 states the tag structure, it delegates listing the tags to the Language Subtag Registry, maintained by IANA.

There's language tags in that registry that aren't options in the GoToSocial backend.

I'd like to help work on this, but I'm unfamiliar with the project's code and would like some guidance on how to proceed.

cass-dlcm avatar Jan 22 '24 12:01 cass-dlcm

Ah really, darn. Can you reproduce an example where you want to set a language for a post via the API but the (valid) tag isn't parsed correctly?

I would expect that we can cover all "primary language" subtags, but "extended language" and "region" subtags might be spotty.

tsmethurst avatar Jan 22 '24 13:01 tsmethurst

I've found that some languages are missing from the "default posting language" setting. I have also found that I can post things in a language that's missing from that setting's options, but I don't know if the language tag in the post is preserved.

I sent this status using fedilab, should be tagged as being in Toki Pona. Can someone check that for me: https://fedi.cass-dlcm.dev/@cassdlcm/statuses/01HMRS1PWD3FDWM85JHR4WYMAA

cass-dlcm avatar Jan 22 '24 14:01 cass-dlcm

I've found that some languages are missing from the "default posting language" setting.

Ah right that/s known already. That "default posting language" dropdown is not exhaustive. See https://github.com/superseriousbusiness/gotosocial/issues/2306

I sent this status using fedilab, should be tagged as being in Toki Pona. Can someone check that for me: https://fedi.cass-dlcm.dev/@cassdlcm/statuses/01HMRS1PWD3FDWM85JHR4WYMAA

Language should be federated correctly, this is from the AP json of that status:

  "contentMap": {
    "tok": "<p>toki!</p>"
  },

I see it doesn't show up on the web view of the status though.

tsmethurst avatar Jan 22 '24 14:01 tsmethurst