One addition to the step 8:
Record with "word" in plural-*.py files appears ONLY during execution T() or
T.M() with correspondent "%%{word}" template in it. So before editing plural
forms you need to execute you application once (step 9) or you need to fill
plural-*.py files manually as a Python source file.
У сб, 2013-09-21 у 02:23 +0300, Vladyslav Kozlovskyy пише:
> It is not an issue. It's only a small misunderstanding. :)
>
> There are correct steps how to create application with working
> pluralization system:
>
> 1. Create a simple app
> 2. Replace index() at default.py with return T('%s %%{object}', 2,
> language='es')
> 3. Insert into administrative interface, click [Reload routers] (in my
> case it did not appear without this workaround)
> 4. Click [Manage]->[Edit] beside newly created app
> 5. Go to "Languages" section and click [update all languages] to
> refresh language files
> 6. Click [Edit] beside "es.py" language file and find string '%s %
> %{object}'
> 7. Write translation FOR THIS WHOLE STRING '%s %%{objeto}' and click
> "Save changes", then return to previous window by clicking [Edit] menu
> item on the top of the screen
> 8. Return to "Languages" section and click [Edit] beside
> "Plural-Forms: plural-es.py" and add plural form for "objeto" word:
> "objetos" then click "Update" and leave this screen by clicking [Edit]
> menu item on the top of the screen.
> 9. Access app/default/index
>
>
> Hope this explanation can help you to understand pluralization system
> better.
>
> With the best regards,
> Vladyslav Kozlovskyy
> Ukraine, Chernivtsi
>
> У чт, 2013-09-19 у 07:45 -0700, mcamel пише:
>
> > Nothing about pluralization, so i've opened Issue 1684
> > .
> >
> > El jueves, 19 de septiembre de 2013 12:03:00 UTC+2, LightDot
> > escribió:
> >
> > Issues/tickets/bug reports are found here:
> >
> > http://code.google.com/p/web2py/issues/list
> >
> > Just search if something like this already exist and if not,
> > create a new issue.
> >
> >
> >
> > --
> > 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.