Turn abstract base class into non-abstract

2010-08-10 Thread Daniel Baron
Hi all, I am using an abstract base class called "profile" for the extension of my user models. I implemented several profiles like "standard, premium, staff" and so on. Now I realised that I would like to check the permission of a certain user on a certain project without having to know abo

Translation problem

2010-07-01 Thread Daniel Baron
Hi all, I have a problem getting the correct translation using gettext in the following situation: I have a view which calls a custom function to send an email. This functions takes three arguments - subject of the email (string) - the language of the email - the template to render the conte

Internationalization

2010-05-04 Thread Daniel Baron
Hi all, I have two questions regarding i18n to which I find very little or even no information. I hope someone can help. The first question is whether django supports the declaration of a message context (msgctxt) in the .po-files in order to have different translations for the same string i

Forcing a specific language

2010-04-07 Thread Daniel Baron
Hi all, is it possible to force a specific language (I am talking about real languages, i18n) while rendering a template? I have an application which allows the user to choose a language and I set a default language in the settings. But now I want to render only one single page forcing a spe