Thanks for the interest and feedback everyone.
As a general note please make sure you read the documentation for this plugin before you use it. Many questions are covered there. If you find a subject not covered there, let me know and Iāll add it.
You will also see a feature of this plugin in action when you visit the docs (if youāre a guest). The language switcher:
@eax Thanks for your feedback
Yes, as you deduced, this is the intention behind the content languages feature. I would recommend you leave it off in production for now (i.e. leave the site setting off), and test it in a contained environment first while youāre familiarising yourself with it.
Note that:
- You can turn it on and off with the
multilingual content languages enabled
site setting - The content language filtering will only be applied if a user has selected a content language in their user settings.
Please read the full documentation on Content Languages here: Pavilion
You can bulk-apply language tags via a server side operation like those described here. I would recommend you get help with that if youāre not comfortable with the command line and/or rails. The content languages feature is still in its early stages, so this is the primary way to set up an existing site to work with this feature, particularly a large site.
You can try the language detection feature of the Translator Plugin, paired with the multilingual translator content tag sync feature in this plugin to automatically apply language tags. Note that language detection via translator services are not free. Also this approach is experimental at this stage, particularly on large sites.
I just tested the Translator Plugin + Content Language sync approach on try.thepavilion.io, which has only 77 posts currently. This is how I did it.
-
Setup the Translator Plugin and this plugin, and turn on all the relevant settings for the sync to work. See further here: Pavilion
-
Run a rebake operation on the server to trigger language detection on all existing posts. See further here: Rebake all posts? - #2 by zogstrip.
-
A portion of posts were automatically given a language tag.
This didnāt work for all topics and it didnāt work perfectly. It didnāt work on some topics with existing tags and it didnāt get it right in all cases. For example it thought this post was Russian: https://try.thepavilion.io/t/well-have-a-whale-of-a-time/59
The bigger issue was that a number of topics didnāt get a tag. This is an issue with the interplay between the bulk operations of the Translator plugin and the bulk operations of this plugin. Iāll try to refine this method of tagging existing posts with a content language in the next month or so to make this more feasible to adopt on existing sites without any technical help. Iāll also add a section of the docs on the subject once Iāve made some progress.
@Ed_Bobkov As @davidkingham helpfully mentions, Pavilion will only be updating our plugins to work with the very latest Discourse in the first week of every month.
However, to help out, Iāve made the change necessary for this plugin to work with the very latest Discourse. You can see it in action now on the latest Discourse at https://try.thepavilion.io