translate / virtaal

Easy-to-use and powerful offline translation tool
https://virtaal.translatehouse.org
GNU General Public License v2.0
298 stars 57 forks source link

Display .qm plurals #1501

Open dwaynebailey opened 14 years ago

dwaynebailey commented 14 years ago

The qm parser can correctly parse plurals but Virtaal does not display them. We might have lost this functionality when we made .mo and friends rely on information in the file rather then the size of the multistring.

Newer .qm files have a NumerusRules section which we parse since r14908. I haven't deduced yet how this is used, I assume it provides a reference to to the numerus data that Qt maintains. We would most likely need to use these lists as we would need to in .ts files.

My simple hacking shows that we need to do the following:

dwaynebailey commented 14 years ago

Created attachment 654

Allow Virtaal to display .qm plurals

An alternate idea would be to ensure that all .qm sources are multistrings, then we wouldn't need to test using isinstance.