Hi Vladyslav,
i really thank you, but this is too much information for my level.
I understand %s is a must in this case, but cannot imagine a workaround to
just pluralizates a word without "printing" the number that produces the
pluralization.
Anyway, thank you very much.
Best regards,
Manuel Cameselle.
El jueves, 19 de septiembre de 2013 12:10:08 UTC+2, dbdeveloper escribió:
>
> this problem happens because pluralisation templates %%{word} works
> with real python placeholders %s only
>
> see explanation in attachment, please. Hope this can help you.
>
> With the best regareds,
> Vladyslav Kozlovskyy
>
>
> У ср, 2013-09-18 у 12:54 -0700, mcamel пише:
>
> 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?.
>
>
--
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.