In order to be DRY, I have a bunch of strings defined like this:
title_create=T('Add %s' % single)

However this doesn't play nicely atm with i18n since FindT() simply
puts the string-to-be-translated as 'Add %s'
- not very helpful.

I could, of course, do:
title_create=str(T('Add '))+ '%s' % single

This is slightly better since the nasty %s doesn't go through.
However:
 * The 'single' word would need retyping since you can't just get it
in the list via: single2=T(single)
 * We want translations by phrase not by word as some languages like
to change the word order around.

Is there any way to patch findT() to make it do string subsitutions?

Many thanks,
Fran.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to