# How to automatically have FAQ and Categories "About" localized

**URL:** https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444
**Category:** Feature
**Created:** [10 באוגוסט,‏ 2018,‏ 9:30pm UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444 "2018-08-10T21:30:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)
#### Post date: [10 באוגוסט,‏ 2018,‏ 9:30pm UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/1 "2018-08-10T21:30:53Z")

</div>

I’ve my forum instance in Spanish, but all the files generated like the TOS, FAQ, all the categories About topics are in english, is there any way to translate those files, maybe a `rake` task. Or I need to get to the server.es.yml file and start copying and pasting?

Did I do something wrong while I was setting up the Discourse?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [13 באוגוסט,‏ 2018,‏ 1:03am UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/2 "2018-08-13T01:03:30Z")

</div>

`tos_topic` is definitely already translated to Spanish.

To update it I think the simplest way would be removing the link to the topic in the DB and doing a rebuild.

I agree it is not that great that we seed these topics before you have picked a locale. @gerhard we should think of a better long term solution here.

What we can do is glue a custom field to the topics we create so when you change locale, a rebuild brings in the correct topics.

So in `990_topics.rb`

1. When creating these topics we set the custom field of `topic_locale`.

2. IF we have SiteSetting.XYZ\_topic\_id, THEN look at custom field… IF it is there and locale does not match current locale, create a new topic.

This is not 100% ideal, cause there is a big delay (has to wait for a rebuild)

BUT if we triggered the same process on SiteSetting change it could be workable. I really dislike that SO MANY sites have TOS etc in the wrong language.

To work around:

```plaintext
./launcher enter app
rails c
SiteSetting.tos_topic_id = 0
SiteSetting.guidelines_topic_id = 0
SiteSetting.private_topic_id = 0

exit 
exit

./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [16 באוגוסט,‏ 2018,‏ 5:55pm UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/5 "2018-08-16T17:55:34Z")

</div>

I added a rake task as a first step. It’s now possible to update all seeded topics and categories by running the following commands:

```plaintext
./launcher enter app
rake i18n:reseed[locale]

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [24 באוגוסט,‏ 2018,‏ 7:30am UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/6 "2018-08-24T07:30:12Z")

</div>

Just so this does not get lost, we should do “dialog” when you switch site settings for locales allowing mods to opt to update the various topics if they wish.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [18 במרץ,‏ 2019,‏ 9:51pm UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/7 "2019-03-18T21:51:47Z")

</div>

Completely solved by [Update seeded categories and topics](https://meta.discourse.org/t/update-seeded-categories-and-topics/111963)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [18 במרץ,‏ 2019,‏ 9:52pm UTC](https://meta.discourse.org/t/how-to-automatically-have-faq-and-categories-about-localized/94444/8 "2019-03-18T21:52:06Z")

</div>


