# Discobot "bookmark instruction" problem

**URL:** https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748
**Category:** Support
**Tags:** translation, discobot
**Created:** [June 19, 2017, 12:11pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748 "2017-06-19T12:11:19Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [June 19, 2017, 12:11pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/1 "2017-06-19T12:11:19Z")

</div>

Hello team.

I have been waiting for the transifex translations to be updated, but following the latest commits, I think it should work fine, and it is not working properly.

If you see this _[line 236](https://github.com/discourse/discourse/blob/23dfddbfb4846ca032d5c9f8e232c38a9c30c11e/plugins/discourse-narrative-bot/config/locales/server.en.yml#L236)_

You will see the bookmark instructions by discobot to teach a user how to bookmark some message.

The same instruction on spanish version are at line: _[206](https://github.com/discourse/discourse/blob/23dfddbfb4846ca032d5c9f8e232c38a9c30c11e/plugins/discourse-narrative-bot/config/locales/server.es.yml#L206)_

But, **tested now on [try.discourse.org](http://try.discourse.org)** and I saw:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/6/064bbd8f4b120ffd196526234e1cef7ea4c6bff3.png)

Ps. The interface discobot was set on “es” language selection. 🇪🇸

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [June 19, 2017, 12:24pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/2 "2017-06-19T12:24:03Z")

</div>

```
Si quieres aprender más, selecciona <img src="/images/font-awesome-ellipsis.png" width="16" height="16"> debajo y <img src="/images/font-awesome-bookmark.png" width="16" height="16"> **guarda como favorito este mensaje privado**. Si lo haces, quizás haya un :gift: en el futuro!

```

Something wrong in your translation, you lost the URI, see:

`<img src="%{base_uri}/images/font-awesome...`

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [June 19, 2017, 12:41pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/3 "2017-06-19T12:41:16Z")

</div>

@SidV I downloaded the narrative.bot.yml from transifex (version Spanish/Spain)

It seems that this version is not up-to-date, the strings are old, in fact the string for the bookmark is completely missing.

A quick fix is to upload the original file from github to transifex.

(and don’t forget to fix the URI that you lost)

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [June 19, 2017, 2:15pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/4 "2017-06-19T14:15:53Z")

</div>

> [@Trash](#):
>
> It seems that this version is not up-to-date

Did you check “es” version?

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

That version is OK.  
I don’t know why translations did not update to github repos ☹

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [June 27, 2017, 4:42pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/5 "2017-06-27T16:42:54Z")

</div>

Sorry for dump this.

But, I checked the last commit (22 hours ago) for “_[Update translations](https://github.com/discourse/discourse/commit/febfe2766993bda695f759dfbf75922d7b5e5f05)_” from @neil and it didn’t have the spanish files for narrative bot. 😭

I’m waiting that upgrade to use the bot in spanish 😢

Please tell me if you need some help to update from `trasnsifex` to github’s repo.  
Really I don’t know how that works, but I can learn.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 27, 2017, 5:24pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/6 "2017-06-27T17:24:44Z")

</div>

Translations seem to be there:

> <https://github.com/discourse/discourse/blob/main/plugins/discourse-narrative-bot/config/locales/server.es.yml>

I pulled again now, but no new translations were found.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [June 27, 2017, 6:17pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/7 "2017-06-27T18:17:44Z")

</div>

@neil if you try to [compare](https://text-compare.com/) the `es` version from github with the `es` version from transifex you’ll see the difference (many missing strings on github)

 ![Z4TvDfv](https://global.discourse-cdn.com/meta/original/4X/7/e/8/7e8d71a10f7ff9b132f8740340f9f90c8e323339.png)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 27, 2017, 7:03pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/8 "2017-06-27T19:03:15Z")

</div>

So… Spanish means a lot of things: es\_ES, es, es\_AR, es\_419, es\_EC

Discourse has only ever supported one: es\_ES.

[https://github.com/discourse/discourse/blob/master/.tx/config#L3](https://github.com/discourse/discourse/blob/master/.tx/config#L3)

But looking at Transifex, I see all these other translations that aren’t used by Discourse. Translators are doing a lot of work for nothing…

 ![](https://global.discourse-cdn.com/meta/original/3X/8/5/85599227bd07ff1a0d8d34f93a221836c0c56b04.jpg)

When Transifex integration was being setup, es\_ES was the one. I don’t know why it was chosen since it was entirely up to the translators. Since all these other Spanish translations are being maintained, we can take pull requests for them. But the “es” translations are probably useless since we’re already mapping the es\_ES ones to es. From what I remember, Rails i18n doesn’t recognize “es\_ES”, which is why it had to be mapped to “es”. I’m not sure if es\_AR and es\_ES will work.

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [June 28, 2017, 12:16pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/9 "2017-06-28T12:16:02Z")

</div>

Great ! Let’s replace `es_ES` version with `es` files.

But… at interface preferences, when a user search “pt” (for example), has got two options: `pt` and `pt_BR`

 ![](https://global.discourse-cdn.com/meta/original/3X/6/4/6416d5d77d50b5ebaa76338d86aa9ffe4da780fe.png)

If a spanish user search “`es`”, did not find `es_ES`:

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

That’s reason is why I spent a lot of time translating “es” version at transifex.  
Now you said to me that this version is not the correct one. OK, I’ll replace the transifex files from “`es`” to “`es_ES`”.

And all happy, IMO, when we finish this, this “es” version should be deleted from transifex.

By the way, @neil can you set me as reviewer for `es_ES` version at transifex?

* * *

**Update** : transifex `es_ES` version is now translated to 100%.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [June 28, 2017, 2:40pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/10 "2017-06-28T14:40:40Z")

</div>

I guess we have pt and pt\_BR because people submitted pull requests for them. We can accept PR’s for es\_AR, etc. too.

Technically, our english locale is `en_US`, but we map it to `en`, and we’ve never added translations for en\_GB, en\_CA, en\_AU, en\_IN, en\_JM, etc…

Thanks for completing the es\_ES translations @SidV!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 28, 2017, 4:19pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/11 "2017-06-28T16:19:30Z")

</div>

> [@SidV](#):
>
> But… at interface preferences, when a user search “pt” (for example), has got two options: pt and pt\_BR

`pt` is Portugal and `pt_BR` is Brazil. There is no `pt_PT`, that would be Portugal too.

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [July 6, 2017, 12:23pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/12 "2017-07-06T12:23:50Z")

</div>

**New release, new update about this topic.**

I tried again in [try.discourse.org](http://try.discourse.org)  
Everything it’s 🆗

Works fine. Translations are good.  
I sent some new corrections to transifex now ☀

We can close this thread  
Thanks all for the support!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 6, 2017, 1:37pm UTC](https://meta.discourse.org/t/discobot-bookmark-instruction-problem/64748/13 "2017-07-06T13:37:28Z")

</div>


