Hello Shai,

thanks for the suggestion, that was the problem, i simply removed the locale
from settings.py so the LANGUAGE_CODE definition will work, and it did.

if you don't mind i'd like to ask you another question, i've installed the 
tinyMCE
widget and its included in my model in the following way:
"
from tinymce import models as tinymce_models
...
content = tinymce_models.HTMLField(blank=True,verbose_name=_('content'))

"
the problem, is that when the admin is in hebrew langauge_code (meaning rtl)
tiny mce doens't appear! :( i see only text areas)

when i set the language_code to back to "en-us" or any other i guess,
tinyMCE appears again.

i really don't know how the admin can be costomized, i understand
there is such a thing called widget, but i'm not familiar with, not did it work
when it tried to implement tinyMCE using a widget (they give two methods
of implementing it) i chose the one that works, the widget didn't.

would be glad any tip on the matter if you can find the time....

alot of thanks

Liam






________________________________
From: Shai Berger <[email protected]>
To: [email protected]
Sent: Sunday, October 11, 2009 10:39:15 AM
Subject: [pyweb-il:469] Re: [Python-il] [pyweb-il:467] Re: trying to use 
internationalization, but alas, no  success!!!!


Hi Liam,

On Saturday 10 October 2009 16:13:33 Liam wrote:
>
> yet strangely i do not see the translation in site, even when i specify
> specifically in my view the following code:
>
> "from django.utils.translation import activate"
> activate("he");
>
> i still get the non translated string
>
> any ideas?
>
>

Your browser's language preferences? If your browser says it prefers English 
(and assuming it's not Exploder and you haven't set it otherwise, it probably 
does), then I think that's what Django will give you.

Shai.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyWeb-IL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyweb-il?hl=en
-~----------~----~----~----~------~----~------~--~---

_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות