How To Handle Django Error When Running Xgettext?

Get PC error-free in minutes

  • Step 1: Download ASR Pro and install it on your computer
  • Step 2: Launch the program and click "Scan"
  • Step 3: Click "Repair" to fix any issues that are found
  • Fix your PC now with this powerful software - click here to download it and get started.

    I hope this user guide helps you if you encounter a Django error when running xgettext.

    I’ve created a new simple app using Django. I usually use I18N. But the moment I tried to run the following command line,

    D:worki18ntestapp> makemessages -l de
    D:worki18ntestapp>django-admin.Makemessages py -n deCommandError: xgettext not found. You will definitely reach GNU Gettext Things 0.15 ornew one installed.

    I set up python-gettext after that, but I still get CommandError: Can't xgettext find....

    “””Django settings for the testapp project.See this file for more information. a complete list and the settings they like, see”””# Create paths throughout the project like this: os.path.join(BASE_DIR, …)Import operating systemBASE_DIR means os.path.dirname(os.path.Quick-start directory_name(__file__))# Development settings – unacceptable for production# See SECURITY WARNING: Keep the secret key used in production secret!SECRET_KEY = ‘-rzs11j%&)$=#s)x#bjug(@(7afjaz*wvynfewzaqb_#q1uuez’# SECURITY WARNING: Do not run the program if the debugger is fullYu is set to work!DEBUG = TrueTEMPLATE_DEBUG = TrueALLOWED_HOSTS = []# Application definitionINSTALLED_APPS implies ( ‘django.contrib.admin’, ‘django.contrib.auth’, ‘django.contrib.contenttypes’, ‘django.contrib.sessions’, ‘django.contrib.messages’, ‘django.contrib.staticfiles’,)MIDDLEWARE_CLASSES is ( ‘django.contrib.sessions.middleware.SessionMiddleware’, ‘django.middleware.common.CommonMiddleware’, ‘django.middleware.csrf.CsrfViewMiddleware’, ‘django.contrib.auth.middleware.AuthenticationMiddleware’, ‘django.contrib.messages.middleware.MessageMiddleware’, ‘django.middleware.clickjacking.XFrameOptionsMiddleware’, ‘django.middleware.locale.LocaleMiddleware’,)ROOT_URLCONF is equal to ‘testapp.urls’WSGI_APPLICATION = ‘testapp.wsgi.application’# Database# = “Originally”: “ENGINE”: “django.db.backends.sqlite3”, “NAME”: os.path.join(BASE_DIR, “db.sqlite3”), # Internationalization#’en-us’TIME_ZONE is equal to ‘UTC’USE_I18N = TrueUSE_L10N == trueuse_tz True# Static files (CSS, JavaScript, images)# = ‘/static/’TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), ‘templates’),)LOCAL_PATH ( implies os.path.join(BASE_DIR, ‘locale’),)printing (LOCALE_PATHS)
    %i18n heap%         


    % trans "Hi" %

    What am I missing from the list? A setting or another module I need to download?

    < div >



    10. November 2009 2:38:25 11/10/09

    to Django users

    Hello everyone!

    When I run makemessages -l ro I get this:
    Error: xgettext for throws errors
    /bin/sh: xgettext: command not found

    Do you know the main reason why I should hang something else?

    < div

    Nick Mark


    November 10, 2009 6:31:14 10/11/09

    in django…

    < p >I didn’t know to install gettext. After installing Apt-get (install gettext) – Debian, learning runs smoothly.

    All the best,

    Nicolae MARCOU