WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Language of parts for user generated content

for

Number of posts in this thread: 5 (In chronological order)

From: Ajay Sharma
Date: Wed, Oct 27 2021 6:34PM
Subject: Language of parts for user generated content
No previous message | Next message →

Hello,

We have a portal where anyone can share any content much like Facebook posts or Twitter tweets.
And these posts could be in any language depending on the preference of the users.
So what could be the best way to handle the language of part success criteria in this situation, since it is not possible to predict in what language the user is going to create the content.
Any insights would be highly appreciated.

Thanks,
Ajai

From: Reinhard Stebner
Date: Wed, Oct 27 2021 8:00PM
Subject: Re: Language of parts for user generated content
← Previous message | Next message →

Is there a way to prompt the user for language or use system language?

Sent from my iPhone

> On Oct 27, 2021, at 8:34 PM, Ajay Sharma < = EMAIL ADDRESS REMOVED = > wrote:
>
> Hello,
>
> We have a portal where anyone can share any content much like Facebook posts or Twitter tweets.
> And these posts could be in any language depending on the preference of the users.
> So what could be the best way to handle the language of part success criteria in this situation, since it is not possible to predict in what language the user is going to create the content.
> Any insights would be highly appreciated.
>
> Thanks,
> Ajai
> > > >

From: Steve Green
Date: Thu, Oct 28 2021 2:29AM
Subject: Re: Language of parts for user generated content
← Previous message | Next message →

Google Translate identifies languages reasonably accurately, so I was wondering if such a language recognition service was available as an API. A quick search turned up https://detectlanguage.com/. I don't know anything about this service other than it appears to do what you want.

Steve Green
Managing Director
Test Partners Ltd


-----Original Message-----
From: WebAIM-Forum < = EMAIL ADDRESS REMOVED = > On Behalf Of Reinhard Stebner
Sent: 28 October 2021 03:00
To: WebAIM Discussion List < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] Language of parts for user generated content

Is there a way to prompt the user for language or use system language?

Sent from my iPhone

> On Oct 27, 2021, at 8:34 PM, Ajay Sharma < = EMAIL ADDRESS REMOVED = > wrote:
>
> Hello,
>
> We have a portal where anyone can share any content much like Facebook posts or Twitter tweets.
> And these posts could be in any language depending on the preference of the users.
> So what could be the best way to handle the language of part success criteria in this situation, since it is not possible to predict in what language the user is going to create the content.
> Any insights would be highly appreciated.
>
> Thanks,
> Ajai
> > > archives at http://webaim.org/discussion/archives
>

From: glen walker
Date: Thu, Oct 28 2021 5:34AM
Subject: Re: Language of parts for user generated content
← Previous message | Next message →

Shouldn't the feed itself contain the language?

From: Ajay Sharma
Date: Thu, Oct 28 2021 1:06PM
Subject: Re: Language of parts for user generated content
← Previous message | No next message

Right now we have lang attribute set for the entire document, not for
individual feeds. There could be many use cases like the entire post is in
a different language or some part of the post is in a different language
and this could extend to the comments on the post as well.

Thanks for the insights to the API Steve, we are exploring that option as
well.

Alternatively, We could nudge users upfront to specify the language of the
post before posting like we do for providing alt text for images. But we
want to keep this option as a last resort.

Thanks for the ideas, really appreciate it!

Ajay

On Thu, Oct 28, 2021 at 4:35 AM glen walker < = EMAIL ADDRESS REMOVED = > wrote:

> Shouldn't the feed itself contain the language?
> > > > >