Consider this

T("Hello %s", "Dmitry")

if "Hello %s" is translated with "Ciao" without the "%s" than 

"Ciao" % "Dmitry" results in an error.

The problem is the omission of a %s or or the addition of a %(name)s in the 
translation, possibly a misspelling of he (name)?


On Saturday, 27 June 2015 02:10:45 UTC-5, Dmitry Ermolaev wrote:
>
> Traceback (most recent call last):
>   File "C:\web2py-m\gluon\restricted.py", line 224, in restricted
>     exec ccode in environment
>   File "C:\web2py-m\applications\ipay\views\buy/index.html", line 184, in 
> <module>
>   File "C:\web2py-m\gluon\html.py", line 612, in __init__
>     text = str(text)
>   File "C:\web2py-m\gluon\languages.py", line 379, in __str__
>     self.T.translate(self.m, self.s))
>   File "C:\web2py-m\gluon\languages.py", line 937, in translate
>     message = self.params_substitution(message, symbols)
>   File "C:\web2py-m\gluon\languages.py", line 914, in params_substitution
>     message = message % symbols
> ValueError: incomplete format
>
>
> some translates rise error (
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to