# Export po file for translation

**URL:** https://discuss.tryton.org/t/export-po-file-for-translation/5025
**Category:** User
**Created:** [February 17, 2022, 5:58pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025 "2022-02-17T17:58:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![JonatanGk](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jonatangk/32/1686_2.png) [@JonatanGk](https://discuss.tryton.org/u/JonatanGk)
#### Post date: [February 17, 2022, 5:58pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/1 "2022-02-17T17:58:35Z")

</div>

Hi again mates 🙂

Recently I created some custom modules (Tryton/Odoo) and probably some more in a future 😛

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/5/5dddcdacb9a7d5c6cf9ba449e9da80f87d6d8e12.png)

And I wonder if, just as it can be done in Odoo, we could have from “core” an export of the fields to translate in English Language (in PO file) to be able to use translation services that exist.

All this comes because one of my passions is Data Science and Machine learning and i have a Notebook (Google Colab) to automatically translate PO files into another languages ​​using “Neural Machine Translation”.

I want to share this one with community but i need to know if there is that possibility to extract English PO Base File. If not i think that I could create a little “module” to this job from client.

As always THANKS IN ADVANCE

---

<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: [February 17, 2022, 6:02pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/2 "2022-02-17T18:02:57Z")

</div>

There is in a set of wizard in Administration menu to export PO file: [Translation — Tryton server](https://docs.tryton.org/projects/server/en/latest/topics/translation.html#translation-wizards)  
Also [https://translate.tryton.org/](https://translate.tryton.org/) allows to download the standard PO file (updated from development branch every month).

---

<div class="post-metadata">

### Author: ![JonatanGk](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jonatangk/32/1686_2.png) [@JonatanGk](https://discuss.tryton.org/u/JonatanGk)
#### Post date: [February 17, 2022, 6:11pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/3 "2022-02-17T18:11:53Z")

</div>

Actually im using 5.2 but when i download “Spanish” from this wizard only download a PO file with existing translations. But if I have some module update I can view only on Translate view (PIC)

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/6/6d1d5635001c1703938ef90d92f906ba0a375f5d.png)

I cannot export all string without translatation

---

<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: [February 17, 2022, 6:44pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/4 "2022-02-17T18:44:56Z")

</div>

> [@JonatanGk](#):
>
> But if I have some module update I can view only on Translate view

You have to run all the documented wizards in the order of the documentation.

> [@JonatanGk](#):
>
> I cannot export all string without translatation

You have to export the English version.

---

<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: [February 18, 2022, 8:14am UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/5 "2022-02-18T08:14:51Z")

</div>

> [@ced](#):
>
> > [@JonatanGk](#):
> >
> > I cannot export all string without translatation
> 
> You have to export the English version.

Indeed it is not possible to export english as it does not accept translations (it is our source language).

But after running the documented wizards, exporting a language will contain all the empty strings to be translated.

---

<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: [February 18, 2022, 8:38am UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/6 "2022-02-18T08:38:51Z")

</div>

> [@pokoli](#):
>
> Indeed it is not possible to export english as it does not accept translations (it is our source language).

Indeed we do it on our tools: [https://hg.tryton.org/tryton-tools/file/tip/export\_weblate.py#l49](https://hg.tryton.org/tryton-tools/file/tip/export_weblate.py#l49)  
I guess the simple way is to mark English as translatable (but we should probably improve the wizard to allow selecting English).

---

<div class="post-metadata">

### Author: ![JonatanGk](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jonatangk/32/1686_2.png) [@JonatanGk](https://discuss.tryton.org/u/JonatanGk)
#### Post date: [February 21, 2022, 1:02pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/7 "2022-02-21T13:02:59Z")

</div>

> [@ced](#):
>
> Indeed we do it on our tools: [tryton-tools: e6d18cba6765 export\_weblate.py](https://hg.tryton.org/tryton-tools/file/tip/export_weblate.py#l49)

This tools do the job i desired. I want to share with us the little repo to use Neural Machine translation 🙂

> **[GitHub - JonatanGk/Odoo-Tryton-NMT: Colab to translate locale from Odoo Tryton using...](https://github.com/JonatanGk/Odoo-Tryton-NMT)**
>
> Colab to translate locale from Odoo Tryton using Neural Machine Translation

I hope it will be useful and thanks again for help!

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [March 23, 2022, 1:03pm UTC](https://discuss.tryton.org/t/export-po-file-for-translation/5025/8 "2022-03-23T13:03:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
