Re: gettext is not defined - js error in admin calendar.js

2008-10-13 Thread Natim
I did it :D Here are my information : Here is my Form.Field definition : dob = forms.DateField(label="Date of birth", input_formats=['%Y-%m- %d'], widget=forms.DateTimeInput(attrs={'class':'vDateField'})) And that's it :D On 13 oct, 08:52, Natim <[EMAIL PROTECTED]> wrote: > You have t

Re: gettext is not defined - js error in admin calendar.js

2008-10-12 Thread Natim
You have to do like that : And define in you urls.py (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': 'django.conf'}), Let me know if it does works :) On 8 sep, 14:37, ykb <[EMAIL PROTECTED]> wrote: > Could you please let us know in a little more detail on how to set the

Re: gettext is not defined - js error in admin calendar.js

2008-09-08 Thread ykb
Could you please let us know in a little more detail on how to set the jsi18n path. Where is "/admin/jsi18n/" referring to? Thanks, Yadu. On Aug 20, 1:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > That did it. Many Thanks! > > On Aug 19, 3:09 pm, Daniel Roseman <[EMAIL PROTECTED]> > w

Re: gettext is not defined - js error in admin calendar.js

2008-08-19 Thread [EMAIL PROTECTED]
That did it. Many Thanks! On Aug 19, 3:09 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Aug 19, 5:28 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hello, > > > I'm trying to use the datetime picker widget from the admin widgets. > > > My form is displaying, but the datetime

Re: gettext is not defined - js error in admin calendar.js

2008-08-19 Thread Daniel Roseman
On Aug 19, 5:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to use the datetime picker widget from the admin widgets. > > My form is displaying, but the datetime picker is not. When I check > the error console, I see the message: > > Error: gettext is not defined > S

Re: gettext is not defined - admin site

2007-11-06 Thread Malcolm Tredinnick
On Mon, 2007-11-05 at 12:00 -0800, ygneo wrote: > I use Django 0.96 in a SuSE with Python 2.3.3. > > I'm getting this JavaScript error: "gettext is not defined" when I try > to edit an object with date field in the admin site. I have seen that > occurs when calendar.js is trying to populate the m

Re: gettext is not defined - admin site

2007-11-06 Thread ygneo
Some advances in my investigation about this error. The problem seems to be in the characters codification. I don't know if django or maybe apache are codifying badly the special characteres in spanish needed for translations. The same error happened when I try to translate title and branding in

Re: gettext is not defined

2005-12-06 Thread olive
It is OK now. Thanks a lot. Bye, Olivier.

Re: gettext is not defined

2005-12-06 Thread hugo
>Bingo! >There is no problem with en, but with fr ... Yep, fr still has no djangojs.po. Ok, I committed a patch, please svn up and try wether that solves your problem. It should give you now english strings in the javascript code (as fr still has no djangojs.po), but at least the error should be

Re: gettext is not defined

2005-12-06 Thread olive
Bingo! There is no problem with en, but with fr ... Olivier.

Re: gettext is not defined

2005-12-06 Thread hugo
>Exception Type: KeyError >Exception Value:'' >Exception Location: C:\soft\django_src\django\views\i18n.py in >javascript_catalog, line 156 Outch. That's a broken translation catalog - the '' entry in .po/.mo files is important, it's the metadata stuff. If you click the disclo

Re: gettext is not defined

2005-12-06 Thread olive
Request Method: GET Request URL:http://127.0.0.1:8000/admin/jsi18n/ Exception Type: KeyError Exception Value:'' Exception Location: C:\soft\django_src\django\views\i18n.py in javascript_catalog, line 156 Traceback (innermost last) C:\soft\django_src\django\core\han

Re: gettext is not defined

2005-12-06 Thread hugo
There is nothing strange in there, it's mostly as expected. This line is what pulls in the JS translation library. Check the URL where the problem is, apply the relative URL to that to reach the real URL for the lib and try it directly in your browser and see what it produces. bye, Georg

Re: gettext is not defined

2005-12-06 Thread olive
>have you removed your .pyc files after svn up? yes >heck the source of the HTML pages wether there is a reference to the script >library in there and wether the path is correct The looks strange: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; lang="fr" xm

Re: gettext is not defined

2005-12-05 Thread hugo
>The problem appears the last time calendar.js and DateTimeShortcuts.js >have been updated by svn up. Not reproduceable here - have you removed your .pyc files after svn up? svn doesn't update .pyc files, and since .pyc are created based on the date/time of the .py file, sometimes old modules sti

Re: gettext is not defined

2005-12-05 Thread olive
Georg, I did not overload any admin template. The problem appears the last time calendar.js and DateTimeShortcuts.js have been updated by svn up. Do I need to add a parameter in the corresponding model meta.Admin ? Olivier.

Re: gettext is not defined

2005-12-05 Thread hugo
>While gettext is in the PATH, I get the following javascript errors >browsing an admin page with calendar and DateTime widgets: JavaScript doesn't have anything to do with PATH ;-) You need to check what is in the pages - if you for example overloaded admin templates with your own, you will nee