translate / translate-project

The Translate Project
4 stars 3 forks source link

Make a generic genplurals so that programmers can use our pluralequations list #3119

Open dwaynebailey opened 11 years ago

dwaynebailey commented 11 years ago

I found someone created a custom genplurals script that essentially reads the HTML page and creates a code block to handle plurals.

Would be useful to make a general genplurals available from our code so that others could use it as needed but in a generic fashion. It should really be reading the .rst file not the HTML and it should be able to output perhaps against a templates of some sort.

These are links to the genplurals script.

@dwaynebailey Over here: https://github.com/rubenv/angular-gettext/blob/master/genplurals.py

It's based on this code: https://github.com/rdio/vernacular/blob/master/tools/genplurals.py