Re: [web2py] Translation problem

2011-01-01 Thread Jonathan Lundell
On Jan 1, 2011, at 2:30 AM, Martin Weissenboeck wrote: > > > 2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: >> No, I did not not want to translate these sentences manually. >> The error_message=T(..) does not work, because there are some if-statements >>

Re: [web2py] Translation problem

2011-01-01 Thread Martin Weissenboeck
2010/12/31 Jonathan Lundell > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > > No, I did not not want to translate these sentences *manually*. > The error_message=T(..) does not work, because there are some if-statements > inside the class IS_INT_IN_RANGE (and in some other classes).

Re: [web2py] Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > No, I did not not want to translate these sentences manually. > The error_message=T(..) does not work, because there are some if-statements > inside the class IS_INT_IN_RANGE (and in some other classes). > > One solution could be a list

Re: [web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
No, I did not not want to translate these sentences *manually*. The error_message=T(..) does not work, because there are some if-statements inside the class IS_INT_IN_RANGE (and in some other classes). One solution could be a list of error messages for these classes. My proposal uses T as an addi

Re: [web2py] Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 6:18 AM, Martin Weissenboeck wrote: > I want to translate my web page to German. The T()"operator" is very fine, > but I could not find any way to translate message like > "enter an integer less than or equal to %(max)g" > in class IS_INT_IN_RANGE. > > I think it is very unp

[web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
Hi, I want to translate my web page to German. The T()"operator" is very fine, but I could not find any way to translate message like "enter an integer less than or equal to %(max)g" in class IS_INT_IN_RANGE. I think it is very unprofessional to mix English and German words and I have tried to