it works on category names, descriptions, and subcategories when the option show_subcategory_list is active on a category !
The only issue left is subcategories when show_subcategory_list is off
If I want to translate categories, category-descriptions and tags in my forum to 10 different languages, I have to create and upload 3 x 10 = 30 separate files for configuration and updates.
Iâm thinking about having all translations in one file with following structure:
categories:
slug:
_de: German name
_en: English name
.description:
_de: German description
_en: English description
tags:
tag:
...
This would have several benefits:
All translations could be updated at once
Translators see context during translation
Streamline translation tasks utilizing Large Language Models
Has anyone tried this before?
Are there any downsides I do not see?
Regarding a first implementation, I will try to write a plugin that creates and updates all needed entries in Multilingual::CustomTranslation.
This plugin is in need of an upgrade. I want to gauge whether it is worth it, and what is needed. If youâre interested in multilingual features please vote:
I use the plugin and just want it to keep working.
I use the plugin and want better/different functionality or UX.
I want better multilingual functionality in Discourse but donât use this plugin (please explain below).
None of the above (please explain below why you voted).
My answer âI want better multilingual functionality in Discourse but donât use this plugin (please explain below)â is because we are just evaluating for good a multilanguage-option. It would be great to find your tool to be the one.
As you asked for what ist needed I put my post I wrote for general question fĂźr multilanguage support here:
We do have a website with one domain and two languages (german, english). The content ist divided by domain.org/de/[nameofsite] and domain.org/en/[nameofsite].
Wo do have a discourse-forum in german language at the subdomain [germankeyword]-forum.domain.org
Now we want to add an english forum version.
Unfortunately the english keyword, which aptly describes the topic, and which we would want to use for the english forum ([englishkeyword]-forum.domain.org) differs from the german keyword. The german keyword doesnât work in english and the english keyword doesnât work in german.
Question:
Is ist possible to run a (one) discourse-forum with different subdomains for different languages while using only one account management?
Or do we have to build a completely new english forum with its own subdomain and its own account management?
With the term âone account managementâ i do mean only one database for users and only one login for both languages.
Ist there any possibility to avoid that users, who want to use both languages, have to register twice?
Or do we strictly need to restrict us to one domain if we want to offer the same logins for different languages oft the same forum?
If we do need one domain and one forum, ist there a possibility to show the language of a post in the linkname oft the post?
Part of the goal of this plugin is to allow different native speakers to exist on the same forum and for their preferred language to be naturally surfaced to them. That was the original intent of the plugin.
Yes, youâd have them on the same forum. If you really have to have two separate forums youâd have to use an identity provider, e.g. auth0 or okta, which then provides authentication for both forums.
This isnât currently a feature of the plugin however itâd be possible to achieve this with some additional work. To fully achieve your vision additional work would be needed either way. You can send me a private message on coop.pavilion.tech.
Given the results of this poll Iâm going to work on the next major version of this plugin starting in September. If you have any specific requests for features, nowâs the time to make them. The next version of the plugin will also have a paid business subscription available with support and other benefits. The plugin will remain 100% open source.
As a part of very small and difficult language family I need AI-based translations for my finnish and estonian users. Translation services are horrible bad outside main languages.
Translations into English are a bit better, though.
Iâm trying to use the multilingual guest language switcher footer visible setting, to make the communityâs main languages quickly accessible as interface languages for guests. Here is what I observed:
The bar with the shortlist of interface languages is only visible when when multilingual guest language switcher is set to footer, but not when itâs set to header.
As the bar is also called a âfooterâ in the setting name (even though it isnât in Discourseâs page footer, but rather floats over the content near the lower right corner of the window), this might be expected. Though on sites offering a lot of interface languages (e.g. all currently available in Discourse), itâd be nice to have a quick-access short-list of the communityâs main languages available independent of the placement of the full language chooser menu for guests. (And I think a menu button in the header looks much cleaner than bar floating over random parts of the page content, covering up some of it.)
Maybe when header is chosen and languages are selected in multilingual guest language switcher footer visible, those could be sorted to the top of the menu and somewhat highlighted?
The setting allows to re-order the languages selected for the shortlist in the bar:
However, the bar seems to ignore that order and instead seems to sort the languages alphabetically by their 2-letter short code:
Itâd be nice if the order configured in the setting was honored (either by default, or through an additional setting toggle.)
Oh, and when multilingual guest language switcher is set to header, the menu with the list of languages is not scrollable (nor limited by the height of the browser window), so some languages arenât selectable, because they happen to end up below the lower edge of the browser. (Workaround in Firefox: Zoom out with Ctrl+Scrollwheel, so that the whole menu fits into the Browser window.)
This is with version 0.2.9 (ba63f9a) of the âMultilingualâ-Plugin.
A previous admin of our instance seems to have already uploaded some category_name.<language code>.yml at <discourse base URL>/admin/multilingual/translations.
However they donât seem to work. Is there a way to view or download their content, so I can modify them and upload again?
Edit:
They do work now. (I donât know what changed.) Iâd still be interested in downloading them (or accessing them on the server, if theyâre on the file system there), in case I need to modify them at some point.
I have replaced çŽä˝ä¸ć with íęľě´.
A pencil icon did appear, notifying of a change.
But if you look at edit history entry, the topic language change is not shown.
The Before and After are identical, even in Raw mode.
Sorry if this is a strange question, but is there anywhere I can see the plugin in action? Iâve read the documentation and gone through this thread, but most of the linked example sites donât seem to work or have changed. For example: Pavilion and http://try.thepavilion.io/ Because of this, I canât check out the mentioned examples for the plugin, the locale switcher, etc.
If thereâs currently no way to test it, would someone be kind enough to answer a few questions?
Can users choose their preferred language/s during sign-up, so the forumâs content is automatically filtered based on their selection?
Is it possible to change the âLanguageSwitchâ button to a globe icon or something else? Right now, it appears to be a Japanese character, but since no one on my forum uses that language, it might confuse users or cause them to ignore it.
I understand that categories and descriptions can be translated (if I got that right), but does this also work for subcategories of subcategories? Additionally, could it apply to elements like links in the brand header (plugin)? For example, could the word âProductsâ be translated and redirect users to either the Spanish or English version, depending on their selected language? Iâm asking since this is a very popular plugin and was wondering if itâs supported by the multilingual plugin.
Sorry for all the questions! I did my best to figure everything out by looking at the screenshots and documentation.
It seems this plugin doesnât play well with Discourse 3.5.0beta1, I had to disable it to get the forum back. I found nothing in logs but:
Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead
At /var/www/discourse/plugins/discourse-multilingual/plugin.rb:314:in block in activate!