ODK Collect not translating the form questions/labels to Hindi

Hi,

I have a form created in xls transformed to xml using XLSForm which
contains the label::hindi column and labels are set in Hindi in this column
with kruti dev font. I have set the phone language to Hindi and also
changing the form language to Hindi when using this form with ODK Collect.

Everything is displayed in Hindi in ODK Collect when phone language is set
to Hindi but the labels which i set in Hindi are not displayed in Hindi.
Here is the generated XML -

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:jr="http://openrosa.org/javarosa"
xmlns:orx="http://openrosa.org/xforms/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Sample_Form</h:title>




Middle Name


Last Name


First Name




uke


uke


uke










<Beneficiary_Name>
<FIRST_NAME/>
<MIDDLE_NAME/>
<LAST_NAME/>
</Beneficiary_Name>

















</h:head>
<h:body>

SRA Survey Form


Take the GPS
GPS coordinates can only be collected when outside.


Beneficiary Name










</h:body>
</h:html>

What could be the issue here, please suggest.

Thanks,
Yeshasvi

After you open your blank form, there will be a menu option to set the
language for that form. By default, the 'label' language is the default
language, and you need to set it to, i.e., 'hindi' to select the
'label:hindi' language.

Once a default language is selected for a given form, it should be used for
all future openings of that form.

··· On Fri, Mar 18, 2016 at 7:47 AM, Yeshasvi Pachpore < yeshasvi.pachpore@gmail.com> wrote:

Hi,

I have a form created in xls transformed to xml using XLSForm which
contains the label::hindi column and labels are set in Hindi in this column
with kruti dev font. I have set the phone language to Hindi and also
changing the form language to Hindi when using this form with ODK Collect.

Everything is displayed in Hindi in ODK Collect when phone language is set
to Hindi but the labels which i set in Hindi are not displayed in Hindi.
Here is the generated XML -

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="
http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="
http://openrosa.org/xforms/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Sample_Form</h:title>




Middle Name


Last Name


First Name




uke


uke


uke










<Beneficiary_Name>
<FIRST_NAME/>
<MIDDLE_NAME/>
<LAST_NAME/>
</Beneficiary_Name>

















</h:head>
<h:body>

SRA Survey Form


Take the GPS
GPS coordinates can only be collected when outside.


Beneficiary Name










</h:body>
</h:html>

What could be the issue here, please suggest.

Thanks,
Yeshasvi

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks Mitch, but i have set the form language to Hindi, it still doesn't display the question labels in Hindi.

Regards,
Yeshasvi

See attached form and screen shots.

Screen shots are on an English locale since I don't read Hindi.

Once you change the language to "hindi" (taken from the text after the
'label:' in the spreadsheet column header), the next time you
fill-blank-form on that form, it will open in Hindi (pardon any translation
mistakes - I used Google Translate to obtain the translations).

Changing the device locale to Hindi would change the button text (e.g.,
"Get Barcode" of the first prompt) to Hindi, *provided the community has
contributed Hindi translations for that text. *

At this time, very few Hindi translations have been contributed (e.g.,
"Get Barcode" has no translation). In the case of no translation, the
English text is displayed.

We encourage interested groups to contribute translations. To do so, set up
an account on https://www.transifex.com/ and request to join
https://www.transifex.com/opendatakit/odk-collect/ as a translator for
Hindi (or any other language).

When we release a new ODK Collect APK, we will incorporate all contributed
translations.

householdTrans.xls (21.5 KB)

··· On Fri, Mar 18, 2016 at 6:03 PM, Yeshasvi Pachpore < yeshasvi.pachpore@gmail.com> wrote:

Thanks Mitch, but i have set the form language to Hindi, it still doesn't
display the question labels in Hindi.

Regards,
Yeshasvi

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thank a lot Mitch.

··· On Wednesday, March 23, 2016 at 11:41:53 PM UTC+5:30, Mitch wrote: > > See attached form and screen shots. > > Screen shots are on an English locale since I don't read Hindi. > > Once you change the language to "hindi" (taken from the text after the > 'label:' in the spreadsheet column header), the next time you > fill-blank-form on that form, it will open in Hindi (pardon any translation > mistakes - I used Google Translate to obtain the translations). > > Changing the device locale to Hindi would change the button text (e.g., > "Get Barcode" of the first prompt) to Hindi, *provided the community has > contributed Hindi translations for that text. * > > At this time, *very few Hindi translations have been contributed* (e.g., > "Get Barcode" has no translation). In the case of no translation, the > English text is displayed. > > We encourage interested groups to contribute translations. To do so, set > up an account on https://www.transifex.com/ and request to join > https://www.transifex.com/opendatakit/odk-collect/ as a translator for > Hindi (or any other language). > > When we release a new ODK Collect APK, we will incorporate all contributed > translations. > > > On Fri, Mar 18, 2016 at 6:03 PM, Yeshasvi Pachpore <yeshasvi...@gmail.com > wrote: > >> Thanks Mitch, but i have set the form language to Hindi, it still doesn't >> display the question labels in Hindi. >> >> Regards, >> Yeshasvi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ODK Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit-developers+unsubscribe@googlegroups.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >