title: internationalization in django
body: <p>I want to internationalize my django app. After playing around according to the documentation and following this question <a href="https://stackoverflow.com/questions/20467626/how-to-setup-up-django-translation-in-the-correct-way">here</a> I realized I don't need most of these options.</p>
  
  <p>In my settings file I only use this: </p>
  
  <pre><code>USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  LOCALE_PATHS = (
      os.path.join(BASE_DIR, 'locale'),
  )
  </code></pre>
  
  <p>So I got rid off  <code>LANGUAGE_CODE</code> and also didn't define any <code>LANGUAGES</code>. </p>
  
  <p>Then I only added this to my views </p>
  
  <pre><code>from django.utils import translation
  </code></pre>
  
  <p>created language translations with <code>django-admin.py makemessages -l fr
  </code>
  and  <code>django-admin.py compilemessages</code> and translated the messages in the <code>.po</code> file.</p>
  
  <p>Now when I set the browser preference (Chrome) to French, all the text within <code>{% trans my text %}</code> in the html shows up translated. I guess it's explained <a href="https://docs.djangoproject.com/ja/1.10/topics/i18n/#term-translation-string" rel="nofollow noreferrer">here</a> on a higher level, I am just a little confused that it is that simple. Or is this just a hack that I am using?   </p>