# Language .po and .mo totally ignored

**URL:** https://discourse.roots.io/t/language-po-and-mo-totally-ignored/12295
**Category:** sage
**Tags:** sage9
**Created:** 2018-04-23T14:45:47Z
**Posts:** 9

## Post 1 by @lucagentile — 2018-04-23T14:45:47Z

Hello,

I’ve downloaded the original language .mo and .po files translations (it\_IT) from the official repository [https://github.com/roots/sage-translations](https://github.com/roots/sage-translations).  
I put them in the theme-folder/lang/, and added `load_theme_textdomain( 'sage', get_template_directory() . '/lang' );` inside the after\_setup\_theme function in setup.php.

But the translations are not loaded (for example when going to the 404 page), I still see the english strings.

I tried to disable the Polylang plugin, but the issue remains. I didn’t change the text\_domain from ‘sage’.

---

## Post 2 by @lucagentile — 2018-04-23T14:55:20Z

I tried to put the language files inside web/app/languages/themes, prepending the theme name, and it works. Why is that the case?

---

## Post 3 by @ben — 2018-04-23T15:04:09Z

[https://github.com/roots/sage-translations](https://github.com/roots/sage-translations) is for Sage 8, sorry for the confusion

See [https://github.com/roots/docs/issues/96](https://github.com/roots/docs/issues/96) for links to Sage 9 related translation info (I’ll be adding this to official docs shortly!)

---

## Post 4 by @lucagentile — 2018-04-23T15:15:34Z

My problem seems different, or it’s my fault and I didn’t get how to solve it.

Wordpress seems to totally ignore the lang folder inside the theme one (even if I define it in setup.php as stated above), but it loads the web/app/languages/themes/themename-IT\_it.mo.

---

## Post 5 by @ben — 2018-04-23T15:38:19Z

Maybe this will help?

> [@Install sage9 language files?](https://discourse.roots.io/t/install-sage9-language-files/10638/6):
>
> Actually you can put your language files anywhere you want - you just need to tell Wordpress about that folder. e.g. you can put your language files directly in your theme directory under resources/lang and add this action to setup.php: add\_action( 'after\_setup\_theme', function () { load\_theme\_textdomain( 'sage', get\_template\_directory() . '/lang' ); } );

---

## Post 6 by @lucagentile — 2018-04-24T12:35:11Z

Already done, it doesn’t work.

---

## Post 7 by @ben — 2018-04-24T14:29:29Z

You would need to put the files into `theme-name/resources/lang` rather than `theme-name/lang`

---

## Post 8 by @lucagentile — 2018-04-24T15:07:25Z

Ok, my bad to put the files in the wrong folder. Thanks for your support!

---

## Post 9 by @ben — 2018-04-24T15:23:11Z

No problem, sorry this wasn’t already documented more clearly! Adding it to the docs right now

Edit: [https://roots.io/sage/docs/theme-localization/](https://roots.io/sage/docs/theme-localization/)
