# Cant locale plugin - i18n fail

**URL:** <https://discourse.cakephp.org/t/cant-locale-plugin-i18n-fail/3507>\
**Category:** Need Help\
**Created:** [November 17, 2017, 4:06am UTC](https://discourse.cakephp.org/t/cant-locale-plugin-i18n-fail/3507 "2017-11-17T04:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramboram](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/ramboram/32/865_2.png) [@ramboram](https://discourse.cakephp.org/u/ramboram)\
**Post date:** [November 17, 2017, 4:06am UTC](https://discourse.cakephp.org/t/cant-locale-plugin-i18n-fail/3507/1 "2017-11-17T04:06:28Z")

</div>

Hi  
I have created plugin Blog and extracted the pot file, but not working

1.\_ I set the default locale in app.php  
’defaultLocale’ =\> env(‘APP\_DEFAULT\_LOCALE’, ‘es\_MX’)

2.\_ The pot file is on: plugins/Blog/src/Locale/es\_MX/blog.po

3.\_ I have also removed the cache again and again, but the changes are not reflected

Someone who can help me, greetings

---

<div class="post-metadata">

**Author:** ![rrd](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/rrd/32/113_2.png) [@rrd](https://discourse.cakephp.org/u/rrd)\
**Post date:** [November 17, 2017, 9:30am UTC](https://discourse.cakephp.org/t/cant-locale-plugin-i18n-fail/3507/2 "2017-11-17T09:30:12Z")

</div>

You should name your po file to `default.po`

---

<div class="post-metadata">

**Author:** ![ramboram](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/ramboram/32/865_2.png) [@ramboram](https://discourse.cakephp.org/u/ramboram)\
**Post date:** [November 18, 2017, 1:02am UTC](https://discourse.cakephp.org/t/cant-locale-plugin-i18n-fail/3507/3 "2017-11-18T01:02:35Z")

</div>

Thank you very much for the help.  
The error was mine, because i did not use the \_\_d () function.  
However, the name of the po file must be the same as that of the plugin.

Thanks !
