4. Create languages/plural-es.py, with: {'object': ['objectos'],} 
Please try to replace 'object' with 'objecto'. In plural-*.py must be
native language only.

Vladyslav Kozlovskyy

У ср, 2013-09-18 у 16:00 -0700, Massimo Di Pierro пише:
> Can you please open a ticket about this and we will review it asap?
> 
> On Wednesday, 18 September 2013 14:54:48 UTC-5, mcamel wrote:
> 
>         Hello,
>         
>         I've found two problems with Spanish pluralization. I think
>         the first is a bug and the second is an unexpected behavior.
>         Both happens with 2.51 and 2.6.3.
>         
>         How to repeat:
>              1. Create a sample app
>              2. Replace index() at default.py with: return T('%s %
>                 %{object}', 2, language="es")
>              3. Add this to languages/es.py, just before '}':
>                 'object': 'objecto',
>              4. Create languages/plural-es.py, with: {'object':
>                 ['objectos'],}
>         
>         You'll have this testing the index:
>         
>         2 objectos
>         
>         Right. But now if you change '2' by '1' at index(), you'll
>         have:
>         
>         1 object
>         
>         instead of:
>         
>         1 objecto
>         
>         If you change languages/plural-es.py, with: {'objecto':
>         ['objectos'],}
>         
>         it works even worse (never in Spanish).
>         
>         
>         The second problem happens if you remove %s from index():
>         return T('%%{object}', 2, language="es")
>         
>         Then you have an error:
>         
>         <type 'exceptions.TypeError'>(not all arguments converted
>         during string formatting)
>         
>         Is there any workaround for this?.
>         
>         
>         Thank you.
>         
>         
>         
> 
> -- 
> 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/groups/opt_out.

-- 
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/groups/opt_out.

Reply via email to