fpoirotte/Erebot — Issue #23: Simple calculations for translators
Author: fpoirotte
Created: 2011-12-28 21:00:34+00:00
State: open

Sometimes the rules to handle plurals vary depending on the total value of several variables.
It would be great if simple calculations could be expressed in translations.

I propose the following changes:
1. Restrict variable names to ``[a-zA-Z0-9_\.]+`` (``-`` is excluded on purpose).
2. Allow use of ``#`` as a prefix to count the number of items in an array.
3. Allow additions & subtractions in ```` & ````.

Therefore, it would now be possible to write something like:

There

is one person
are persons

in this room.