Set default language?

Hello. If I have a file in two languages is there an easy way to change
which is the default language?

Thanks,
Alex

The first block within the block in the file is taken
to be the default language.
So if you have:
...


...


...

The default language is English. If you swap these so Spanish is first, it
will be spanish.

However, if you have already explicitly chosen the language for the form
via ODK Collect's UI, that language value is saved in the forms.db, and
you'd need to remove that value for it to pay attention to the order of the
blocks in your form. I don't think there is any UI mechanism
to do that -- you can use an SQLite tool to edit the forms.db and remove
the language value for your testing.

Mitch

ยทยทยท On Fri, Jun 29, 2012 at 10:17 AM, Alex Pavluck wrote:

Hello. If I have a file in two languages is there an easy way to change
which is the default language?

Thanks,
Alex

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

I believe the database should update to whatever the last value is
so you don't have to explicitly remove the values from the DB, the
user's last choice for language is saved until the user changes it
again.

Waylon

ยทยทยท On Fri, Jun 29, 2012 at 9:29 PM, Mitch S wrote: > The first block within the block in the file is taken > to be the default language. > So if you have: > ... > > > ... > > > ... > > > > The default language is English. If you swap these so Spanish is first, it > will be spanish. > > However, if you have already explicitly chosen the language for the form via > ODK Collect's UI, that language value is saved in the forms.db, and you'd > need to remove that value for it to pay attention to the order of the > blocks in your form. I don't think there is any UI mechanism > to do that -- you can use an SQLite tool to edit the forms.db and remove the > language value for your testing. > > Mitch > > > On Fri, Jun 29, 2012 at 10:17 AM, Alex Pavluck wrote: >> >> Hello. If I have a file in two languages is there an easy way to change >> which is the default language? >> >> Thanks, >> Alex >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitchellsundt@gmail.com > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Yes, that is correct.

However, if you want to see how the default translation is chosen based
upon the ordering of the XML tags, you'd need to ensure that this setting
is cleared.

Mitch

ยทยทยท On Fri, Jun 29, 2012 at 2:00 PM, W. Brunette wrote:

I believe the database should update to whatever the last value is
so you don't have to explicitly remove the values from the DB, the
user's last choice for language is saved until the user changes it
again.

Waylon

On Fri, Jun 29, 2012 at 9:29 PM, Mitch S mitchellsundt@gmail.com wrote:

The first block within the block in the file is
taken
to be the default language.
So if you have:
...


...


...

The default language is English. If you swap these so Spanish is first,
it
will be spanish.

However, if you have already explicitly chosen the language for the form
via
ODK Collect's UI, that language value is saved in the forms.db, and you'd
need to remove that value for it to pay attention to the order of the
blocks in your form. I don't think there is any UI
mechanism
to do that -- you can use an SQLite tool to edit the forms.db and remove
the
language value for your testing.

Mitch

On Fri, Jun 29, 2012 at 10:17 AM, Alex Pavluck apavluck@gmail.com wrote:

Hello. If I have a file in two languages is there an easy way to change
which is the default language?

Thanks,
Alex

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

This is the first post that comes up googling how to set the default language, can someone repost exactly how to do this now? @Mitch_S 's post looked helpfull but the images or info appear to be gone

You can set a default language by using the default_language column on the settings sheet of the XLSForm. http://xlsform.org/en/#settings-worksheet describes this.

@KeynesYouDigIt Perhaps you can contribute this little bit of documentation to https://docs.opendatakit.org/form-language ?

1 Like

Is there any way to change the default language after it has been set please? Thanks

Hi @Janet_Chapman
welcome to the forum! Please introduce yourself here!

You can update your form changing default_language in settings sheet http://xlsform.org/en/#settings-worksheet and re download your form.
Then of course you can change it filling the form from the menu (three dots icon -> Change Language).
Does that answer your question?