Multi Language Survey

Hello- I am attempting to set-up a survey in two languages (Arabic and
English). Some the questions, need to be inputted in Arabic i.e names and
the rest of the data needs to be in English.

Can anyone tell me if there is a feature in Commcare, to make it a
requirement for mobile user to input information in Arabic and or English.

Thanks!

Hi Ishahin,

Unfortunately on Android we use the system keyboard / locale preferences
for input, so there’s no clear way to specifically tag individual input
fields in an app as specifically requested in a separate locale.

You could use the "regex
https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-regex"
function to restrict the valid character sets which could be used to answer
the question in the question’s display condition.

regex(., ‘^[\u0621-\u064A\s]+$’)

restricts the user to only Arabic alphabet entry according to this post
https://stackoverflow.com/questions/29729391/regular-expression-arabic-characters-and-numbers-only

and

regex(., ‘^[a-zA-Z0-9\s]+$’)

would restrict the user to only whitespace and English characters (or
numbers)

-Clayton

··· On Mon, Oct 23, 2017 at 2:12 PM, wrote:

Hello- I am attempting to set-up a survey in two languages (Arabic and
English). Some the questions, need to be inputted in Arabic i.e names and
the rest of the data needs to be in English.

Can anyone tell me if there is a feature in Commcare, to make it a
requirement for mobile user to input information in Arabic and or English.

Thanks!


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