Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
set default language?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Pavluck  
View profile  
 More options Jun 29 2012, 1:17 pm
From: Alex Pavluck <apavl...@gmail.com>
Date: Fri, 29 Jun 2012 10:17:31 -0700 (PDT)
Local: Fri, Jun 29 2012 1:17 pm
Subject: 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mitch S  
View profile  
 More options Jun 29 2012, 4:29 pm
From: Mitch S <mitchellsu...@gmail.com>
Date: Fri, 29 Jun 2012 13:29:12 -0700
Local: Fri, Jun 29 2012 4:29 pm
Subject: Re: [ODK Community] set default language?

The first <translation> block within the <itext> block in the file is taken
to be the default language.
So if you have:
...
<itext>
<translation lang="English">
...
</translation>
<translation lang="Spanish">
...
</translation>
</itext>

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
<translation> 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 <apavl...@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
mitchellsu...@gmail.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
W. Brunette  
View profile  
 More options Jun 29 2012, 5:00 pm
From: "W. Brunette" <wbrune...@gmail.com>
Date: Fri, 29 Jun 2012 22:00:39 +0100
Local: Fri, Jun 29 2012 5:00 pm
Subject: Re: [ODK Community] set default language?
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mitch S  
View profile  
 More options Jun 29 2012, 6:17 pm
From: Mitch S <mitchellsu...@gmail.com>
Date: Fri, 29 Jun 2012 15:17:04 -0700
Local: Fri, Jun 29 2012 6:17 pm
Subject: Re: [ODK Community] set default language?

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

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »