# Translation ignored / not loaded

**URL:** <https://forum.djangoproject.com/t/translation-ignored-not-loaded/846>\
**Category:** Using Django\
**Created:** [January 14, 2020, 6:33pm UTC](https://forum.djangoproject.com/t/translation-ignored-not-loaded/846 "2020-01-14T18:33:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frafra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/frafra/32/540_2.png) [@frafra](https://forum.djangoproject.com/u/frafra)\
**Post date:** [January 14, 2020, 6:33pm UTC](https://forum.djangoproject.com/t/translation-ignored-not-loaded/846/1 "2020-01-14T18:33:10Z")

</div>

Hi,  
I am trying to translate my Django project in Norwegian Bokmål (code “nb”), but when I open the admin interface the Django admin strings are shown in Norwegian, while my strings are shown in English, even if I created a .po file, generated a .mo file, the locale middleware is on and the other settings seems fine. Funny thing is that if I set LANGUAGE\_CODE to ‘nb’ then the whole interface is in Norwegian.

Why does it seems that Django is ignoring my translated string? How to debug that, given that I have no error at all?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![nicokant](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/nicokant/32/541_2.png) [@nicokant](https://forum.djangoproject.com/u/nicokant)\
**Post date:** [January 15, 2020, 8:16am UTC](https://forum.djangoproject.com/t/translation-ignored-not-loaded/846/2 "2020-01-15T08:16:59Z")

</div>

Hi frafra,  
make sure you are using `ugettext_lazy` instead of `ugettext` for your translations, it seems like django translates strings with gettext before getting to know the actual locale. So forcing LANGUAGE\_CODE works because it will cache the translation in your default language.

Hope this may help!  
Bye

---

<div class="post-metadata">

**Author:** ![frafra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/frafra/32/540_2.png) [@frafra](https://forum.djangoproject.com/u/frafra)\
**Post date:** [January 15, 2020, 9:10am UTC](https://forum.djangoproject.com/t/translation-ignored-not-loaded/846/3 "2020-01-15T09:10:10Z")

</div>

That was it! Thank you 🙂
