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.

Reply via email to