Instead of using the manually created XML configuration to specify the functions that do translation, an auto detection mechanism would be great.
In Java, this could easily be implemented using an annotation with source retention. This annotation could provide the same details as the XML configuration:
@Percopist(singlar = 0, plurals = {1})
Other languages could use comments or source macros.