# Generate translations catalog for Mautic plugin

**URL:** <https://forum.mautic.org/t/generate-translations-catalog-for-mautic-plugin/16041>\
**Category:** Development\
**Created:** [September 11, 2020, 11:45am UTC](https://forum.mautic.org/t/generate-translations-catalog-for-mautic-plugin/16041 "2020-09-11T11:45:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [September 11, 2020, 11:45am UTC](https://forum.mautic.org/t/generate-translations-catalog-for-mautic-plugin/16041/1 "2020-09-11T11:45:30Z")

</div>

Hi,

I am a developer but I would not consider myself an expert in Mautic.

**Basic info**

- Mautic version 3.0.0-beta

I am developing Mautic plugin. At this point I would like to extract messages that are shown to user. In short: I need to generate ini files, with all the keys from plugin bundle.

**My Question** : What is a proper way to extract messages from Mautic plugin bundle (command, script or something similar)?

The documentation here: [https://developer.mautic.org/#translations](https://developer.mautic.org/#translations) tells us about the required structure and from my experience this is correct. I am able to manually add keys to ini files and provide translations.

I also have been playing around with `bin/console translation:update` command, but even with minor tweaks I could not get the desired result.

This is one of the last things I have tried:

`php bin/console translation:update /var/www/html/mautic/plugins/MauticMyBundle /var/www/html/mautic/plugins/MauticMyBundle --dump-messages --env=dev`

I have not tried Transifex ([https://www.transifex.com/](https://www.transifex.com/)) but since I am interested only in generated ini files I imagine this is not really relevant.

There is a couple of ways I see how can I get those keys extracted automatically, but I am asking for proper (Mautic) way to do this (maybe there is something obvious I am missing, so that is why I am asking).

Any answer much is appreciated.

Best Regards.
