# Init. language with Proteus

**URL:** https://discuss.tryton.org/t/init-language-with-proteus/2480
**Category:** User
**Created:** [March 24, 2020, 5:16pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480 "2020-03-24T17:16:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [March 24, 2020, 5:16pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/1 "2020-03-24T17:16:42Z")

</div>

Hello

I’m looking to initialize the language of a base with proteus, is it possible?

Regards

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 24, 2020, 5:56pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/2 "2020-03-24T17:56:27Z")

</div>

You can do it with the tryton-admin command. It’s explained on [our documentation](http://docs.tryton.org/projects/server/en/latest/topics/setup_database.html#update-a-database).

---

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [March 24, 2020, 6:36pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/3 "2020-03-24T18:36:05Z")

</div>

Yes Sergi I know this command and use it usually, but there I would like to be able to initialize the language in the base by Proteus …

---

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [March 24, 2020, 6:42pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/4 "2020-03-24T18:42:36Z")

</div>

I looked at what the ‘trytond-admin’ command does, I think it is possible to do the part that initializes the language with Proteus. But I don’t know how to recover the language of the config file with Proteus.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 24, 2020, 11:21pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/5 "2020-03-24T23:21:17Z")

</div>

You must set the `ir.language` as translatable then mark all activated modules to be updated and finally run the wizard `ir.module.activate_upgrade`.  
But [Add language configuration wizard (#9172) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9172) should simplify the task.

---

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [March 25, 2020, 4:05pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/6 "2020-03-25T16:05:26Z")

</div>

Thank you @ced, here is the piece of code (from a scenario) initializing the language (in french) of the database:

```auto
    >>> Lang = Model.get('ir.lang')
    >>> lang_fr, = Lang.find([('code', '=', 'fr')])
    >>> lang_fr.translatable = True
    >>> lang_fr.save()
    >>> Wizard('ir.module.activate_upgrade').execute('upgrade')

```

now I would like to recover the language from the configuration file … a suggestion?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 25, 2020, 4:15pm UTC](https://discuss.tryton.org/t/init-language-with-proteus/2480/7 "2020-03-25T16:15:20Z")

</div>

It is stored in `ir.configuration` but it is not a public information.
