carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

String variable validation #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If there are no named string variables in text, validate the same number of
variables

Original issue reported on code.google.com by divio.sh...@gmail.com on 28 Jul 2009 at 2:34

GoogleCodeExporter commented 8 years ago
As I'm not 100% positive I understand this issue, a pofile containing a 
test-case would be greatly appreciated!

Original comment by mbonetti on 28 Jul 2009 at 3:31

GoogleCodeExporter commented 8 years ago
if the original string was something like: "Welcome to %s. Your username is %s"
It must validate that there are 2 %s in the translated string. We had a lot of
troubles with translators not understanding what %s meant... For named variables
%(site)s there are no such restrictions... but maybe warnings that some 
variables are
missing would be nice.

Original comment by divio.sh...@gmail.com on 28 Jul 2009 at 3:41

GoogleCodeExporter commented 8 years ago
This is fixed via a javascript hack as of r77 (I'd love to hear any feedback on 
how this works!)

Original comment by mbonetti on 19 Oct 2009 at 10:09