Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1092317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:39:50+00:00 2026-05-16T23:39:50+00:00

Version info: Django version 1.3 pre-alpha SVN-13858 Ubuntu GNU/Linux 10.10 I’m totally new to

  • 0

Version info:

Django version 1.3 pre-alpha SVN-13858

Ubuntu GNU/Linux 10.10

I’m totally new to i18n and l10n in Django and currently I’m trying to make my Django project available in Dutch (in addition to its default language: English). I tried to apply the instructions given at http://docs.djangoproject.com/en/dev/topics/i18n/translation/ and http://www.djangobook.com/en/2.0/chapter19/ but I had no success. I don’t know if this is related to my directory structure and template files being in a completely different directory (I mean not as a subdirectory within the my Django project directory). My project directory looks like the following:

/home/emre/mydjango/myproject
/home/emre/mydjango/myproject/myapp1
/home/emre/mydjangotemplates
/home/emre/mydjangotemplates/myapp1

In the myproject and myapp1 directories I tried to issue the following command:

django-admin.py makemessages -l nl

But received the following error:

Error: This script should be run from the Django SVN tree or your project or 
app tree. If you did indeed run it from the SVN checkout or your project or 
application, maybe you are just missing the conf/locale (in the django tree)
or locale (for project and application) directory? It is not created automatically,
you have to create it by hand if you want to enable i18n for your project or
application.

So I tried to create locale directories within myproject and myapp1 directories. After that I issued the above command again (once in the project and once in the app directory) and this time without any error or warnings it said:

processing language nl

I checked the locale directories and saw that they were populated with sub-directories but there weren’t any .po files at all:

$ tree
.
 `-- nl
     `-- LC_MESSAGES

2 directories, 0 files

I double checked that I have my .html files (template files) in home/emre/mydjangotemplates and that they include {% load i18n %} and some lines like {% trans “A piece of English text” %}.

What am I missing? Should I invoke the django-admin.py makemessages command with different parameters? Why doesn’t Django create .po files even though I have some text to be translated in my .html template files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:39:50+00:00Added an answer on May 16, 2026 at 11:39 pm

    makemessages only looks in directories under the current directory. You can try creating a symlink from somewhere under your project to your templates directory and add the -s to make it follow symlinks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why cant I set a version info in a Dunit Test projet? The checkbox
How can I get the variable My.Application.Info.Version.ToString to populate in the comments section? Dim
We need info about Subversion for iSeries (OpenSource version). Has anyone used it for
According to http://www.regular-expressions.info , You can consider \X the Unicode version of the dot
I have an existing PostgreSQL database that I'm using for a new Django site.
Version info: CI version 1.7.2 - PHP 5.3.1 - Apache2 - Mac OSX 10.6.3
On Linux, is there a way to embed version information into an ELF binary?
I'm running Django on Ubuntu Server 9.04. Django works well, but nginx doesn't return
I'm new to Django and MVT, so I apologize if this is a silly
I'm new to python, django and google app engine. All great tools and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.