# Multilingual Plugin 🌐

**URL:** https://meta.discourse.org/t/multilingual-plugin/142740
**Category:** Plugin
**Tags:** pavilion, broken
**Created:** [February 27, 2020, 5:06am UTC](https://meta.discourse.org/t/multilingual-plugin/142740 "2020-02-27T05:06:24Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [May 7, 2020, 11:06pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/21 "2020-05-07T23:06:53Z")

</div>

This is happening on my staging site as well, but I was able to just turn off the plugin in settings (accessing via [safe mode](https://meta.discourse.org/t/53504?silent=true)) and I’m back to a working site. Ed, are you aware of their new update schedule policy? They will only be supporting conflicts with core for the first 5 days of the month, so you should not be updating your production site right now and expect fixes.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 8, 2020, 5:12am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/22 "2020-05-08T05:12:56Z")

</div>

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.

> **[Pavilion](https://pavilion.tech/)**
>
> Pavilion is the leading Discourse consultancy.

You will also see a feature of this plugin in action when you visit the docs (if you’re a guest). The language switcher:

 ![Screenshot at May 08 14-14-41](https://global.discourse-cdn.com/meta/original/3X/6/c/6c941be210e89a8d602448aed2ef09f68a36065f.jpeg)

@eax Thanks for your feedback

> [@eax](#):
>
> Only content associated with a tag is displayed.

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](https://thepavilion.io/t/content-languages/2545)

> [@eax](#):
>
> Is there a solution to swiftly attribute language tag to them as we cannot see a list at the moment?

You can bulk-apply language tags via a server side operation like [those described here](https://meta.discourse.org/t/administrative-bulk-operations). 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](https://thepavilion.io/t/content-languages/2545#discourse-translator-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](http://try.thepavilion.io), which has only 77 posts currently. This is how I did it.

1. Setup the Translator Plugin and this plugin, and turn on all the relevant settings for the sync to work. See further here: [Pavilion](https://thepavilion.io/t/content-languages/2545#discourse-translator-sync)

2. Run a rebake operation on the server to trigger language detection on all existing posts. See further here: [Rebake all posts? - #2 by zogstrip](https://meta.discourse.org/t/rebake-all-posts/69340/2).

3. 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](https://try.thepavilion.io/t/well-have-a-whale-of-a-time/59)

 ![Screen Shot 2020-05-08 at 2.51.46 PM](https://global.discourse-cdn.com/meta/original/3X/3/c/3c6d60c9177a3fa0416b4cd5472cba68b2f827be.png)

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](https://try.thepavilion.io)

---

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [May 8, 2020, 6:59am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/23 "2020-05-08T06:59:54Z")

</div>

> [@davidkingham](#):
>
> They will only be supporting conflicts with core for the first 5 days of the month, so you should not be updating your production site right now and expect fixes.

Didn’t know about it. Thank you!

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [June 6, 2020, 12:14pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/24 "2020-06-06T12:14:24Z")

</div>

I don’t know if it’s a combinaison of plugin that caused my issue, but when I deactivated the plugin in the settings, I had an error 500, even with safe-mode on it was impossible to do anything.

If you come across this issue, don’t worry, go on the terminal, connect to your server and do these commands:

```plaintext
cd /var/discourse
./launcher enter app
rails c
SiteSetting.multilingual_enabled = true

```

If you’re forum is back, do three `exit` commands to safely close terminal.

> **FYI - Plugin installed**
>
> ```
> - git clone https://github.com/discourse/discourse-akismet.git
> - git clone https://github.com/discourse/discourse-solved.git
> - git clone https://github.com/discourse/discourse-assign.git
> - git clone https://github.com/discourse/discourse-chat-integration.git
> - git clone https://github.com/discourse/discourse-adplugin.git
> - git clone https://github.com/discourse/discourse-calendar.git
> - git clone https://github.com/discourse/discourse-translator.git
> ## Non official
> - git clone https://github.com/paviliondev/discourse-multilingual.git
> - git clone https://github.com/Ebsy/discourse-nationalflags.git
> - git clone https://github.com/jannolii/discourse-topic-trade-buttons.git
> 
> ```

* * *

edit : is it safe to delete the Multilingual Disabled Content Tags tag group?

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/c/2c304f3c68c68b5cf6279ae8aeb5305190073291.png)

When I want to create a new topic, these tags appears first on the list, it’s not practical (although, I can be confused by tag settings sometimes, I may have missed something)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [June 7, 2020, 10:46pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/25 "2020-06-07T22:46:22Z")

</div>

If possible, I’d love to take a closer look at your site to see what’s going on there (if you’re up for this PM me).

> [@Steven](#):
>
> is it safe to delete the Multilingual Disabled Content Tags tag group?

Yes, use the controls in the bottom right of that screenshot (which are added by the plugin).

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [June 7, 2020, 11:03pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/26 "2020-06-07T23:03:31Z")

</div>

Funny, using the bottom right button doesn’t do anything.

They can be deleted one by one, but I’ll send you my credentials so you can check a few things first. The plugin works well otherwise, so it’s not a big deal

---

<div class="post-metadata">

### Author: ![anon23840344](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@anon23840344](https://meta.discourse.org/u/anon23840344)
#### Post date: [August 19, 2020, 12:27am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/27 "2020-08-19T00:27:07Z")

</div>

I’m seeking a way for my users to be able to read auto-translations of posts and replies.

I’ve installed both discourse-multilingual and discourse-translator plugins.

 ![Screen Shot 2020-08-18 at 20.31.21](https://global.discourse-cdn.com/meta/original/3X/8/7/8706709cff5afc740d6a582e2fe7f49d3bc30e83.png)

I have enabled everything for discourse-multilingual.

 ![Screen Shot 2020-08-18 at 20.35.47](https://global.discourse-cdn.com/meta/original/3X/5/1/51fafe0feffe33d29ad1baa1918c3d921b3c8118.png)

And I’ve enabled inline translations for discourse-translator, and added an Azure subscription key (key regenerated for this screenshot).

 ![Screen Shot 2020-08-18 at 21.23.45](https://global.discourse-cdn.com/meta/original/3X/b/c/bc3612dd61577d995f47da4db0aa2d2e4c4b23b8.png)

I limited multilingual languages to simplify things. But it’s complaining of “tag conflict” on everything I disabled, and I don’t know why (and clicking the links loads a 404 page).

 ![Screen Shot 2020-08-18 at 20.37.50](https://global.discourse-cdn.com/meta/original/3X/9/6/96239a8fa21f77fbf62ec3cde9e9d15ad060e6a8.png)  
 ![Screen Shot 2020-08-18 at 20.38.03](https://global.discourse-cdn.com/meta/original/3X/6/b/6bfc946badff65966d53bf8db620151ecb281bf3.png)

And multilingual’s translations are empty, I don’t know why.

 ![Screen Shot 2020-08-18 at 20.39.58](https://global.discourse-cdn.com/meta/original/3X/f/c/fc2ddedcfc0cf2676a94d0d83b7b28d1ebc7bce4.png)

I also enabled all three user locale settings.

 ![Screen Shot 2020-08-18 at 21.23.59](https://global.discourse-cdn.com/meta/original/3X/2/7/2731e4536f4f27768e604856fcae6d5e0f45d380.png)

But nowhere do I see an option to translate other users’ content. No extra buttons, header, or footer.

 ![Screen Shot 2020-08-18 at 20.43.04](https://global.discourse-cdn.com/meta/original/3X/6/9/69083c3fb70bf49676d0af74b681d01fbc488a4d.png)

What might I be missing?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [August 19, 2020, 12:43pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/28 "2020-08-19T12:43:36Z")

</div>

I check the setting in a forum I’m working on, I used google api for translation but it’s working fine. My guess is nothing wrong with this plugin.

I can see two options :

- the translation api can’t detect the language so can’t propose a translation. I would suggest posting a new topic in another language, very short
- something wrong with the subscription key. You can check the /logs to see if something came up

But the tag conflict issue is weird, in my forum on latest version, everything works fine (there is an issue with the header/footer guest language switcher but it’s been reported). You should check the tags page (/tags) to see if something wrong on the content\_languages tags and maybe update all tags in the tags groups page (/tag\_groups)

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [August 22, 2020, 3:45am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/29 "2020-08-22T03:45:15Z")

</div>

I use this plugin thanslate the category and subcategory name, it works fine,  
but not works for the subcategory’s name when the subcategory display with boxes.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/7/e77ff8c917d2f8aa2aa462b0c252a504721402fe.png)

i notice that in the category-title-link.hbs, the code is :

```xml
<span class="category-name">{{dir-span category.name}}</span>

```

and in the categories-boxes.hbs

```xml
<a class="parent-box-link" href={{c.url}}>
            <h3>
              {{#if c.read_restricted}}
                {{d-icon "lock"}}
              {{/if}}
              {{c.name}}
            </h3>
          </a>

```

how can i overriding the `categories-boxes` templates to make it works with boxes display?

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [August 24, 2020, 6:51am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/30 "2020-08-24T06:51:10Z")

</div>

I can’t get the point,  
i don’t understand how the category name data obtained in categories-boxes and category-title-link this two components.  
wha’t the different between those components in obtaining category name data.

---

<div class="post-metadata">

### Author: ![aksoforever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aksoforever/32/502615_2.png) [@aksoforever](https://meta.discourse.org/u/aksoforever)
#### Post date: [September 17, 2020, 1:30am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/31 "2020-09-17T01:30:41Z")

</div>

i find it. modify the categories-boxes.hbs to this:

```plaintext
<a class="parent-box-link" href={{c.url}}>
     <h3>
        {{category-title-link tagName="span" category=c}}
    </h3>
</a>

```

just use this category-title-link this component as the category title, it works. 😆😆😆😆😆

---

<div class="post-metadata">

### Author: ![Franz1](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@Franz1](https://meta.discourse.org/u/Franz1)
#### Post date: [November 25, 2020, 10:05am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/32 "2020-11-25T10:05:49Z")

</div>

Hello, are there real examples of working forums using this plugin? I would like to grasp how it actually works.

Also I would like to understand if it is possible to direct users to different links for different languages

---

<div class="post-metadata">

### Author: ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)
#### Post date: [December 22, 2020, 3:27am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/33 "2020-12-22T03:27:00Z")

</div>

Is anyone else having issues with `tags` on current version of Discourse & Multilingual plugin?

> [@Problem with tags on new discourse instance?](https://meta.discourse.org/t/problem-with-tags-on-new-discourse-instance/173890/2):
>
> The tag route was recently renamed from `tags` to `tag` . It seems likely that the issue is being caused by a plugin.

It would be great if it were possible to pull out just the locale exclusion portion, as that is a requirement for my forum but I won’t be using the rest of the plugin.

---

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [January 9, 2021, 11:20am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/34 "2021-01-09T11:20:54Z")

</div>

Found the same issue. The plugin uses an old root for Tags. It was solved when I switched off the plugin.

> [@Tags are not working due to multilingual plugin](https://meta.discourse.org/t/tags-are-not-working-due-to-multilingual-plugin/175288/1):
>
> Tags are not working. I get _Oops! That page doesn’t exist or is private_ when try to open any of them.
> 
> All tags have a root /tags/ and the root was changed as I found [here](https://meta.discourse.org/t/tags-none-route-doesnt-exist/169321). So when I change `/tags/any-tag` to `/tag/any-tag` - it works.
> 
> I’m on 2.7.0.beta1 ( [4f72830eb0](https://github.com/discourse/discourse/commits/4f72830eb02ec063866a2cd882b5c2dd0ede5800))
> 
> How this problem can be solved?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [January 12, 2021, 6:15am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/35 "2021-01-12T06:15:55Z")

</div>

Hey guys, thanks for your patience.

@anon20593648 @Ed_Bobkov I’ve updated the plugin to accomodate the new tags route

> <https://github.com/paviliondev/discourse-multilingual/commit/afef2d1195d28368d0c1ba220ba633c6ff70e0ca>

> [@Franz1](#):
>
> I would like to grasp how it actually works.

The features are described in depth in the documentation, with examples:

> **[Pavilion](https://pavilion.tech/)**
>
> Pavilion is the leading Discourse consultancy.

If you have a specific question about one of the features described there, post in the relevant topic and I’ll follow up.

---

<div class="post-metadata">

### Author: ![Oniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oniel/32/365830_2.png) [@Oniel](https://meta.discourse.org/u/Oniel)
#### Post date: [February 17, 2021, 10:05am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/36 "2021-02-17T10:05:08Z")

</div>

@angus, hello! How can I add a translation for a custom user fields?

---

<div class="post-metadata">

### Author: ![dhanya](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dhanya](https://meta.discourse.org/u/dhanya)
#### Post date: [April 7, 2021, 8:20am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/39 "2021-04-07T08:20:15Z")

</div>

In our discourse forum, we are using multilingual interface to select languages that is to be shown in user profile page. We are only showing selected languages in user profile page ie,  
Arabic  
English  
French  
German  
Portuguese  
Romanian  
Russian  
Spanish

After selecting the above listed languages from multilingual interface and then clicking on ‘Save Changes’ button it is showing ‘Internal server error.’  
but we found that data is stored in the database. But when we check after three days, it is found that last selected values are unselected from the multilingual interface. (/admin/multilingual/languages).  
Only showing default values like English, French, Spanish, English UK. Not found any error log related to this. Anyone faced similar issue, Please give me a suggestion.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 9, 2021, 10:16am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/40 "2021-04-09T10:16:56Z")

</div>

Hey, I’ll be focusing on this plugin early next week and will address your question then 👍

---

<div class="post-metadata">

### Author: ![dhanya](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dhanya](https://meta.discourse.org/u/dhanya)
#### Post date: [April 9, 2021, 10:44am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/41 "2021-04-09T10:44:47Z")

</div>

Thank you for your response.

---

<div class="post-metadata">

### Author: ![oreillyc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oreillyc/32/212955_2.png) [@oreillyc](https://meta.discourse.org/u/oreillyc)
#### Post date: [May 12, 2021, 5:20pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/42 "2021-05-12T17:20:49Z")

</div>

I’m not sure if this is the best place to ask this, but I think it’s directly plugin related:

On our new forums ([https://forums.sociocracyforall.org](https://forums.sociocracyforall.org)), I just enabled the Multilingual Plugin and it’s mostly working great but:

1. When I try to change the language tag of posts which were made before the plugin was enabled, I cannot - I get a 500 error. Whether it’s my own post or someone elses.

Any ideas as to why and how to fix this?

1. I notice the warning message for not inputting a language tag is a bit obtuse for the end user.

2. The content language selection does not display in the interface language (in this case spanish) 😛  
is that because it’s not translated, or some other reason?

If there’s a better place to talk about these things than this thread - like github? - please let me know 🙂  
EDIT: I did just post an issue for each on GitHub actually: [Issues · paviliondev/discourse-multilingual · GitHub](https://github.com/paviliondev/discourse-multilingual/issues)

[Previous page](https://meta.discourse.org/t/multilingual-plugin/142740.md?page=1)

[Next page](https://meta.discourse.org/t/multilingual-plugin/142740.md?page=3)
