Optimize i18n to save space
|Reported by:||stoecker||Owned by:||framm|
Currently we use the gettext functions to have i18n. Each language copies all english strings which is a terrible waste of space. We have 21 copies of each string. This could be reduced to 2.
As we anyway have a wrapper we can change it like that:
- store English strings in a hash containing a array index as value
- store i18n strings in arrays
- on tr() parse get the array index from hash and get string from array with the index
Problem: How to handle plural forms?