Hi everyone,
Thanks to you i found the problem. My template folder was conf via my
settings.py outsite my project folder.
So when i typed python manage.py makemessage -l django didn't
parse my settings py in order to find the templates.
Now everything is ok
Thx to you :)
Nicolas
On Tue, Feb
On Mon, Feb 27, 2012 at 7:19 PM, Denis Darii wrote:
> Of course, from the django
> documentation(https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files):
>>
>> The script should be run from one of two places:
>>
>> The root directory of your Django
Of course, from the django documentation(
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files
):
> The script should be run from one of two places:
>
>- The root directory of your Django project.
>- The root directory of your Django app.
>
> The script runs over
I've already tried this, django created LC_MESSAGE folder in locale, but
this folder is empty (no django.po file is generated :/)
I'm guessing if the problem is not the way i tagged the things to translate
...
I added to all the html files i wanted to translate the tag {% load i18n %}
and all the
Hi Nicolas.
Try to run makemessages script from the root directory of your Django app,
so:
$ cd /your/app/path/
$ mkdir locale
$ django-admin.py makemessages -l en
On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG wrote:
> Yes, I have my app in INSTALLED_APPS and I also
Yes, I have my app in INSTALLED_APPS and I also have added this key in my
settings :
USE_I18N = True
USE_L10N = True
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
On Mon, Feb 27, 2012 at 1:36 PM, nicolas HERSOG wrote:
> Fun fact, I tried the command manage.py compilemessages, it takes
> loong time to finish and parse all of my workspace in order to create
> translation file xD.
> All my home except my project :| ...
>
>
Does your
Hi Diego, and thanks for your help :)
I've already created a /conf/locale folder at my root project.
Whenever i typed python manage.py makemessage -l django add to
/conf/locale a new folder /LC_MESSAGE which contains a django.po
file.
When i vim this file I just notice translation key about
On Mon, Feb 27, 2012 at 5:45 AM, nicolas HERSOG wrote:
> Hi everyone,
> Very thanks for yours answers!
>
> I added to the top of all my html filesĀ {% load i18n %} and typed in my root
> directory :
>
> django-admin.py makemessages -l en
>
> Or :
>
> python manage.py
Hi everyone,
Very thanks for yours answers!
I added to the top of all my html files {% load i18n %} and typed in my
root directory :
-
- django-admin.py makemessages -l en
Or :
- python manage.py makemessages -l en
I tried both commands, first in my root directory and in my app but
On Sunday, February 26, 2012, nicolas HERSOG wrote:
> Hi folks !
>
> I'm trying for hours to internationalize my django website.
>
> I added to my settings.py this few lines :
>
> TIME_ZONE = 'Europe/Paris'
> LANGUAGE_CODE = 'fr-FR'
>
> I added to all templates i want to translate the tag trans
On Sun, Feb 26, 2012 at 2:22 PM, nicolas HERSOG wrote:
> Hi folks !
>
> I'm trying for hours to internationalize my django website.
>
> I added to my settings.py this few lines :
>
> TIME_ZONE = 'Europe/Paris'
> LANGUAGE_CODE = 'fr-FR'
>
> I added to all templates i want to
Hi folks !
I'm trying for hours to internationalize my django website.
I added to my settings.py this few lines :
TIME_ZONE = 'Europe/Paris'
LANGUAGE_CODE = 'fr-FR'
I added to all templates i want to translate the tag trans for the sentence
I want to internationalize exemple :
{% trans
13 matches
Mail list logo