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
prototyping language selector #6063
base: develop
Are you sure you want to change the base?
Conversation
How do we decide which languages should be in the select list? |
function jotGetLanguage() { | ||
reply = prompt("{{$whatlang}}", $('#jot-language').val()); | ||
if(reply && reply.length) { | ||
$('#jot-language').val(reply); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this how you plan to add languages to the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, no. It's a leftover from some tryout where I duplicated the process of the location prompt. Just ignore it. ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or better purge it? I guess this whole PR should be marked as WIP
?
I haven't thought about it in detail but my first guess is to use all languages available generally in the system. |
Friendica has at least a partial interface translation for about 20 languages (see |
As said I'm not decided yet and open to discussions but, yes, as they are potentially used by users it would be an option. |
I'd rather add a new profile fields where you can specify all the languages you're talking, and limiting the select box to that short list. But this is definitely a bigger time investment, and your simpler solution with all the available languages should be implemented first so that the feature can be published faster. |
Heck, I totally forgot the profile way. Sounds good to me! |
One thing. When adding another icon to the JOT please have in mind that there are also mobiles with small screens. |
How does it look in the other themes? |
So far it's a frio-only prototype. |
What is the current status here? |
Just realized this could be included in #7309 |
Multiple language selection would be appropriate (profile) as people tend to speak/read/write more than one language. |
With this prototype, would it be possible to compose the post in multiple languages simultaneously? It seems to me, that one can only choose one language. True multilanguage composing would thus not be possible? Would it instead be possible to add multiple text fields, one per chosen language? possibly distribute them over tabs per language? |
The idea to switch between languages (see the GIF in my initial post) and then compose the respective text. So, yes, it would offer true multilanguage composing. But still it's just a prototype as processing the various languages would need more work protocol-wise, to my understanding. |
Conflicting change in this PR. Plus you could add the language code to |
It's a prototype so it isn't meant to be merged as is, I'll convert it back to Draft. |
Ah, okay. :-) |
If this project is still ongoing, maybe make it similar to the language selector that Mastodon has now? The way they do it:
Button icon is the currently selected locale code. |
What is the status of this PR in terms of the idea of how it could work in Friendica? Is there any chance to implement selecting the language per post basis? It's a great accessibility feature, and Mastodon implements it very well. Unfortunately, Friendica sets the content language to the author's profile language. There is a workaround to change the post language: user can go to the profile settings page on the Friendica instance each time to change "your language" setting. Then after sending a message, switch back to the regular language. The simplest solution I can think of, which would improve accessibility in a meaningful way, is native Random thoughts:
|
This is a frontend PR only, with no connection to the backend. The requested feature still needs to be added to the backend before this PR can go forward. |
@MrPetovan That's right, but I think this PR is the closest to my idea, so I've decided to comment here. If there is a better place, I will be happy to see it and maybe help. There is also a possible related issue: #11453 (select options could be populated with values from the spoken languages setting). |
One more UI thing I noticed that Mastodon web UI does: When replying, it sets the language to the post that you're replying to. This is a great convenience feature for multilingual people. |
This is a first CSS/template only prototype for a language selector as mentioned in #6043. It's a first draft so any comments or ideas welcome!