Can we have have one post with two different language

Hello, I want to know if we can create a new post with two different language ?

1 Like

:us: Yes, you can!

:fr: Oui, vous le pouvez !


:troll: 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.

3 Likes

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.

1 Like

There is a plugin @tgxworld worked on which lets people click or tap to translate.

3 Likes

So good !! Thanks ! But where I can find this plugin ?

Here :smile:

2 Likes

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.

2 Likes

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.

3 Likes

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.

1 Like

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?

1 Like