Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Better handling for post languages #2061

Open
4 of 5 tasks
tsmethurst opened this issue Aug 3, 2023 · 7 comments
Open
4 of 5 tasks

[feature] Better handling for post languages #2061

tsmethurst opened this issue Aug 3, 2023 · 7 comments
Labels
accessibility enhancement New feature or request

Comments

@tsmethurst
Copy link
Contributor

tsmethurst commented Aug 3, 2023

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

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 tsmethurst added enhancement New feature or request accessibility labels Aug 3, 2023
@VyrCossont
Copy link
Contributor

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

@tevino
Copy link

tevino commented Sep 8, 2023

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

@zordsdavini
Copy link

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

@cass-dlcm
Copy link

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.

@tsmethurst
Copy link
Contributor Author

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.

@cass-dlcm
Copy link

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

@tsmethurst
Copy link
Contributor Author

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 #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants