Hello, I want to know if we can create a new post with two different language ?
Yes, you can!
Oui, vous le pouvez !
aside, Discourse only supports 1 āversionā of a post. You might want to create a plugin to add support for more than 1 locale per post or use a plugin that will automatically translate posts.
Hello, this is in English.
Ł Ų±ŲŲØŲ§Ų ŁŁŲ°Ų§ ŁŁ ŲØŲ§ŁŁŲŗŲ© Ų§ŁŲ¹Ų±ŲØŁŲ©.
I used <p lang=āenā> and <p lang=āarā> in mine, and I see the language attribute copied to the preview. I donāt see language attributes in @zogstripās post.
Edit: after saving, the language attribute is still there. Preview didnāt lie.
There is a plugin @tgxworld worked on which lets people click or tap to translate.
So good !! Thanks ! But where I can find this plugin ?
Here
It is so nice !
If i need another feature like this : Once I create my post with my mother language, so one other member can translate to anther language.
Does this p lang="en"
and so on work too? can we translate a post by hand and also allow the translator plugin for translation by plugin/microsoft-service?
I canāt get the Translator plugin to work somehow - it never shows that nice earth-icon to translate - is there any bug tracking board or something or is nobody else using this?
The earth icon is only shown if the post is in a different language than the userās locale. So try changing your user locale to a different language and see what happens.
Thanks for the info -
And i change my user locale by setting a different language in USER > INTERFACE > LANGUAGE?
If so, it doesnāt work for meā¦
But is there a way to override the plugin translations and translate to a certain language manually? - since those pinned posts and category descriptions, important stuff i would translate to 2 languages but would want to show the user the correct language according to his user-locale, if availableā¦
Hm, you might want to ask for help in the #plugin:translator category.
No, I donāt think so.
Yes, such sensitivity to user locale makes sense, especially for the banner post, because you can only have one. Unfortunately, itās not possible at the moment. As a workaround, I would suggest you simply compose two separate topics and perhaps include a flag emoji in the topic title. That should work for all scenarios except for banners.
If you want to develop this into a feature request, I think the easiest way to implement this would be to make it possible to hide topics based on user locale (or perhaps: show based on user locale). That way you would simply hide the irrelevant versions of those topics for users with certain locales.
Actually, you might want to check if you could create some hack via this possibility to modify the UI based on users primary group:
I just did a facebook post - below the post was a little tag ā+ write article in another languageā as seen on the screenshot attached. It will transalte the text to other languages using the inline translator like the discourse translator plugin should do but it is possible to manually translate the article into other languages - this is how i would imagine it to behaveā¦
Any way this can be a feature request? i imagine everyone must be interested in this, since itās important to be multi lingual nowadays!?
There are differences between Facebook and Discourse. A main one here is that Facebook has what I imagine to be warehouses with banks of servers while most Discourse sites would be running a single server.
I imagine at some point a Discourse hosting provider may have some kind of āenterpriseā option that could offer translations without depending on a third party. But I wouldnāt hold your breath waiting for it to happen. Such a feature would be a massive undertaking.
It is one thing to have translations for known UI text (which IMHO Discourse does well), it is entirely different to have translations for random post text content.
I am not part of the CDCK team, but I donāt see this happening as a Core feature anytime soon. And when and if it does, I imagine it would be a āpremiumā feature to help pay for the extra cost that would be incurred.
IMHO, the best approach for most Discourse sites at this time would be to use the plugin.
I think you misunderstoodā¦ I just mentioned FB cause i saw they now have pretty much exactly the functionality i was thinking of.
The translation functionality that i have seen on FB today is just what the translator plugin could do. I am not asking for discourses own translation service or anything - just a friendly UI option to enter your own translation for a postā¦
Just same thing as was discussed above - would just need a + button to add your own translation for a post --> choose language, see the standard-language text (for example english), OR as in FBās case, the already translated (by MS or google service) text -> modify it -> save it.
ā> User would see either standard language (f.e. English), or the translation the admin entered manually if available for that locale, OR have the option to use MS or google service to translate.
I donāt see why it would need an extraordinary effort for all that - just storing additional textā¦ the mentioned āhackā above may make this possible but i am not a developer and hacks may make upgrading a nightmare,ā¦
I just think most people may at some point want to translate a post themselves - like a globally pinned introduction of their brand or descriptoin of the forum or somethingā¦ there such a feature would be important, wouldnāt it?