mohan-nishit / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

forms without languages crash #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if your form doesn't have the itext xml, the form load crashes. add something 
like 

            <xf:itext>
                <translation lang="English">
                    <text id="hello">
                        <value>hello</value>
                    </text>
                </translation>
            </xf:itext>

and it works.

Original issue reported on code.google.com by yanokwa on 16 Jun 2011 at 2:05

GoogleCodeExporter commented 9 years ago
This is actually a javarosa bug in that it doesn't initialize the localizer 
when there aren't languages, then also doesn't have appropriate checks for a 
null localizer in the formentrymodel.  

In any case, I added a conditional to see if the form has any languages defined 
(which in JR has the appropriate null check).  

Original comment by carlhart...@gmail.com on 16 Jun 2011 at 5:01