Using django translations in a project

I have a project structure somewhat like this:

MyProject MyApp1 Static Locale Models Functions Templates admin.py urls.py views.py MyApp2 Templates admin.py urls.py manage.py settings.py views.py

Now my problem is that my project uses a few templates that do not descent from an app, however I do want these to be translated, so I added a global dir Locale to the project root which works... However I tried django development (1.4 alpha) which tells me locale dir is forbidden in the project root

What's the catch ?

Category:python Views:0 Time:2011-08-30
Tags: python django

Related post

  • Django translation catalog is empty 2010-07-27

    I have my locale in my project directory and have set the packages as such: js_info_dict = { 'packages': ('my_project',), } makemessages works well as i have a djangojs.po file with my gettext strings but no javascript string ever gets translated on

  • Django translation and py2exe 2011-09-17

    I have just compiled my django application to an exe using py2exe. But I don't have any idea how to make django translation work (I mean built in translation, not my own translation files). There is LANGUAGE_CODE set in my settings file, I also tried

  • Override default Django translations 2011-10-24

    I have a template with this: {% trans "Log in" %} This is translated automatically by Django to Spanish as Terminar sesión. However I would like to translate it as Cerrar sesión. I have tried to add this literal to the .po file, however I get an erro

  • Django Translation - Works with test client but not with browser 2010-11-05

    I can't figure why the django translation (i18n) doesn't work. I use english in the code and I've written translations for french. Strangely, it works when I use django.test.client.Client but not when I use a web browser. I've tried to set the Accept

  • performance of django translation 2011-02-06

    I'm currently making a site where i want to implement multi-language version. which actually i don't need but i want to do it just in case. So will using django translation mechanism reduce performance and for how much? Especially i want to hear peop

  • Storing Django translations in a database 2011-10-12

    I am working on a Django application which is going to be deployed to Heroku (on their Cedar stack). A limitation of this is that we cannot write to disk. However, Django translations reside in .po files, and therefore the client will be unable to ch

  • Django: is there any project for translating the docs? 2011-11-09

    is there any project for translating the official Django documentation? If not, how can I start such a project? --------------Solutions------------- I'm probably going to be downvoted since this answer doesn't have any solid foundation on djangoproje

  • howto Django importing apps from projectA into projectB? 2010-09-21

    I'm trying to setup a project that contains commons apps (projectA) to be shared by several other Django projects (projectB for the sake of this question). I have a directory structure like: /django/projectA /django/projectB I have updated the PYTHON

  • Django: translate in a different language than current language 2010-11-30

    I would like to notify the user in case he's viewing the site in a language that doesn't correspond to his first preference in the ACCEPT_LANGUAGE header. For this reason I would like to present the message to the user in his first prefered language

  • django translation not working by django-rosetta 2011-06-10

    I have installed the django-rosetta for translation, made .po and .mo files through django command django-admin.py makemessages -l ar and translate all words through django-rosetta, now when i change my language to Arabic from English, it show some w

  • How do I make django translate certain files? 2011-07-09

    I'm running django-admin.py makemessages -l es from within my app directory to create trnaslation strings. The result includes only those texts that are located in my app directory. My templates directory to that app is located outside the app's dire

  • django translation is not working when using sublanguages 2012-02-22

    I have a list of languages for my django project and they work perfectly: LANGUAGES = ( ('en', ugettext('English')), ('es', ugettext('Spanish')), ) Now I want to add English UK because some users wrote me about spelling errors that aren't really erro

  • Django: Translating a string without using language session/cookie 2009-10-13

    Is there a way in django to translate a string to another language than the one specified in the language session or cookie? I mean doing it while calling ugettext. Something like this, where 'en' is the language code: from django.utils.translation i

  • Problems with i18n using django translation on App-Engine with Korean and Hindi 2010-05-20

    I've got a setup based on the post here, and it works perfectly. Adding more languages to the mix, it recognises them fine, except for Korean (ko) and Hindi (hi). Chinese/Japanese/Hebrew are all fine, so nothing to do with encodings/charsets I don't

  • Best way to incorporate external django app into a project and safely make local changes 2010-07-13

    I am working on an ecommerce site, based on django-lfs, and I am finding that I need to make a number of changes to the django-lfs core files... i.e. adding additional properties to models, updating views, adding url patterns etc. I started out placi

  • What steps do I take to integrate an (outdated) but working django application into my project? 2010-09-29

    I would like to integrate an existing application someone has on github into my site. What steps do I need to take to integrate it? Would most people just download this entire thing and throw it inside of the project root, add it to the INSTALLED_APP

  • Is it typical to have more than a dozen django applications in your project root for medium-high scale sites? Does it not feel bloated? 2010-10-18

    I was looking at the INSTALLED_APPS of django-mingus: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.sitemaps', 'django.contrib.flatp

  • "Invalid block tag" when install Django-SocialRegistration to Pinax project 2010-12-15

    The base social Pinax project works until I add "socialregistration" to installed apps. In template /home/timothy/python-environments/pinax/lib/python2.6/site-packages/pinax/templates/default/_account_bar.html, error at line 3 Invalid block tag: 'ifo

  • Will learning Django translates well into other applications? 2011-01-27

    Does anyone have experience using Python in different variaty of applications? A little background - I am a 3D artist in an animation studio. I do programming in PHP and use Zend framework for my personal project. Python has always been a language I

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.183 (s). 11 q(s)