Yes, I meant "current"

I am shure I did not find the string " '%(nrows)s records found') " in the
translation table. But now, with the original sqlform.py it works very
fine. I have tried it more than once.

You are right - T works. Please forget my message.

2012/8/8 Anthony <[email protected]>

> What is "common"? Do you mean current.T? Note, in grid(), there is this
> assignment: T = current.T. So, T(...) should work.
>
> Anthony
>
>
> On Wednesday, August 8, 2012 2:41:42 PM UTC-4, mweissen wrote:
>>
>> SQLFORM.grid write "... records found", but this sentence is not in the
>> translation table.
>>
>> In sqlhtml.py line 1956 there is "T('%(nrows)s records found')". I think
>> it should be "common.T('%(nrows)s records found')"
>>
>> This change works for me. There are some other "T"s in sqlhtml - I have
>> all of them changed to "common.T".
>>
>> Regards, Martin
>>
>>
>>
>>
>>

-- 



Reply via email to