[web2py] Re: is_in_db error message translation

2010-11-24 Thread mdipierro
Can you translate other strings? Do other T(...) messages get
translated?

On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
wrote:
 I need to translate IS_IN_DB Validator message.

 Richard

 On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef vinicius...@gmail.comwrote:

  Are you getting some error message?

  On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
  ml.richard.vez...@gmail.com wrote:
   Hello,
   I try this :
   db.table1.field1.requires=\

   IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
   not available'))
   But not working...
   How may I translate the IS_IN_DB error message?
   Should we have an other attribute for IS_IN_DB function?
   Richard




Re: [web2py] Re: is_in_db error message translation

2010-11-24 Thread Richard Vézina
Yes no problem for translation... I just search the way to translate the
IS_IN_DB error message.

I proceed like this for other validator :

IS_NOT_EMPTY(error_message=T('my_translate_massage'))

If there is an other more general way to do it I am open to any idea...

validator message not translate by default...

Richard

On Wed, Nov 24, 2010 at 9:38 AM, mdipierro mdipie...@cs.depaul.edu wrote:

 Can you translate other strings? Do other T(...) messages get
 translated?

 On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
 wrote:
  I need to translate IS_IN_DB Validator message.
 
  Richard
 
  On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef vinicius...@gmail.com
 wrote:
 
   Are you getting some error message?
 
   On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
   ml.richard.vez...@gmail.com wrote:
Hello,
I try this :
db.table1.field1.requires=\
 
  
  IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
not available'))
But not working...
How may I translate the IS_IN_DB error message?
Should we have an other attribute for IS_IN_DB function?
Richard
 
 



[web2py] Re: is_in_db error message translation

2010-11-24 Thread mdipierro
IS_IN_DB should work as any other validator. Which language is your
browser is to?
Do you see the string ''value not available' when you edit the
corresponding language file?

On Nov 24, 8:42 am, Richard Vézina ml.richard.vez...@gmail.com
wrote:
 Yes no problem for translation... I just search the way to translate the
 IS_IN_DB error message.

 I proceed like this for other validator :

 IS_NOT_EMPTY(error_message=T('my_translate_massage'))

 If there is an other more general way to do it I am open to any idea...

 validator message not translate by default...

 Richard

 On Wed, Nov 24, 2010 at 9:38 AM, mdipierro mdipie...@cs.depaul.edu wrote:
  Can you translate other strings? Do other T(...) messages get
  translated?

  On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
  wrote:
   I need to translate IS_IN_DB Validator message.

   Richard

   On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef vinicius...@gmail.com
  wrote:

Are you getting some error message?

On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
ml.richard.vez...@gmail.com wrote:
 Hello,
 I try this :
 db.table1.field1.requires=\

   IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
 not available'))
 But not working...
 How may I translate the IS_IN_DB error message?
 Should we have an other attribute for IS_IN_DB function?
 Richard




Re: [web2py] Re: is_in_db error message translation

2010-11-24 Thread Richard Vézina
No I don't see any validators messages in fr-ca.py.

My browser is set to fr-ca or fr-fr. Both aren't updated with validators
messages when I get those error.

Richard



On Wed, Nov 24, 2010 at 10:09 AM, mdipierro mdipie...@cs.depaul.edu wrote:

 IS_IN_DB should work as any other validator. Which language is your
 browser is to?
 Do you see the string ''value not available' when you edit the
 corresponding language file?

 On Nov 24, 8:42 am, Richard Vézina ml.richard.vez...@gmail.com
 wrote:
  Yes no problem for translation... I just search the way to translate the
  IS_IN_DB error message.
 
  I proceed like this for other validator :
 
  IS_NOT_EMPTY(error_message=T('my_translate_massage'))
 
  If there is an other more general way to do it I am open to any idea...
 
  validator message not translate by default...
 
  Richard
 
  On Wed, Nov 24, 2010 at 9:38 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   Can you translate other strings? Do other T(...) messages get
   translated?
 
   On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
   wrote:
I need to translate IS_IN_DB Validator message.
 
Richard
 
On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef 
 vinicius...@gmail.com
   wrote:
 
 Are you getting some error message?
 
 On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
 ml.richard.vez...@gmail.com wrote:
  Hello,
  I try this :
  db.table1.field1.requires=\
 
  
  IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
  not available'))
  But not working...
  How may I translate the IS_IN_DB error message?
  Should we have an other attribute for IS_IN_DB function?
  Richard
 
 



[web2py] Re: is_in_db error message translation

2010-11-24 Thread mdipierro
Yes, when you get those messages, the language files should be
overwritten and then you need to go in and manually translate them. If
the string is not there or it is not translated, then you do not get
the message translated.

Check the file timestamp. Is the file being updated?
Check the file permissions. Has your app permission to overwrite it?
Try force it... press the update_languages button. Any change?

On Nov 24, 9:23 am, Richard Vézina ml.richard.vez...@gmail.com
wrote:
 No I don't see any validators messages in fr-ca.py.

 My browser is set to fr-ca or fr-fr. Both aren't updated with validators
 messages when I get those error.

 Richard

 On Wed, Nov 24, 2010 at 10:09 AM, mdipierro mdipie...@cs.depaul.edu wrote:
  IS_IN_DB should work as any other validator. Which language is your
  browser is to?
  Do you see the string ''value not available' when you edit the
  corresponding language file?

  On Nov 24, 8:42 am, Richard Vézina ml.richard.vez...@gmail.com
  wrote:
   Yes no problem for translation... I just search the way to translate the
   IS_IN_DB error message.

   I proceed like this for other validator :

   IS_NOT_EMPTY(error_message=T('my_translate_massage'))

   If there is an other more general way to do it I am open to any idea...

   validator message not translate by default...

   Richard

   On Wed, Nov 24, 2010 at 9:38 AM, mdipierro mdipie...@cs.depaul.edu
  wrote:
Can you translate other strings? Do other T(...) messages get
translated?

On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
wrote:
 I need to translate IS_IN_DB Validator message.

 Richard

 On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef 
  vinicius...@gmail.com
wrote:

  Are you getting some error message?

  On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
  ml.richard.vez...@gmail.com wrote:
   Hello,
   I try this :
   db.table1.field1.requires=\

   IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
   not available'))
   But not working...
   How may I translate the IS_IN_DB error message?
   Should we have an other attribute for IS_IN_DB function?
   Richard




Re: [web2py] Re: is_in_db error message translation

2010-11-24 Thread Richard Vézina
Ok, I got it to work by adding error_message=myerrromessage in IS_IN_DB()

Thanks

Richard

On Wed, Nov 24, 2010 at 10:29 AM, mdipierro mdipie...@cs.depaul.edu wrote:

 Yes, when you get those messages, the language files should be
 overwritten and then you need to go in and manually translate them. If
 the string is not there or it is not translated, then you do not get
 the message translated.

 Check the file timestamp. Is the file being updated?
 Check the file permissions. Has your app permission to overwrite it?
 Try force it... press the update_languages button. Any change?

 On Nov 24, 9:23 am, Richard Vézina ml.richard.vez...@gmail.com
 wrote:
  No I don't see any validators messages in fr-ca.py.
 
  My browser is set to fr-ca or fr-fr. Both aren't updated with validators
  messages when I get those error.
 
  Richard
 
  On Wed, Nov 24, 2010 at 10:09 AM, mdipierro mdipie...@cs.depaul.edu
 wrote:
   IS_IN_DB should work as any other validator. Which language is your
   browser is to?
   Do you see the string ''value not available' when you edit the
   corresponding language file?
 
   On Nov 24, 8:42 am, Richard Vézina ml.richard.vez...@gmail.com
   wrote:
Yes no problem for translation... I just search the way to translate
 the
IS_IN_DB error message.
 
I proceed like this for other validator :
 
IS_NOT_EMPTY(error_message=T('my_translate_massage'))
 
If there is an other more general way to do it I am open to any
 idea...
 
validator message not translate by default...
 
Richard
 
On Wed, Nov 24, 2010 at 9:38 AM, mdipierro mdipie...@cs.depaul.edu
   wrote:
 Can you translate other strings? Do other T(...) messages get
 translated?
 
 On Nov 24, 8:27 am, Richard Vézina ml.richard.vez...@gmail.com
 wrote:
  I need to translate IS_IN_DB Validator message.
 
  Richard
 
  On Tue, Nov 23, 2010 at 11:07 PM, Vinicius Assef 
   vinicius...@gmail.com
 wrote:
 
   Are you getting some error message?
 
   On Tue, Nov 23, 2010 at 7:43 PM, Richard Vézina
   ml.richard.vez...@gmail.com wrote:
Hello,
I try this :
db.table1.field1.requires=\
 
  
  IS_IN_DB(db,'othertable.field1',orderby=('field1'),error_message=T('value
not available'))
But not working...
How may I translate the IS_IN_DB error message?
Should we have an other attribute for IS_IN_DB function?
Richard