Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Builder - Translation Support #3

Open
gbugaisky opened this issue Oct 4, 2013 · 0 comments
Open

Form Builder - Translation Support #3

gbugaisky opened this issue Oct 4, 2013 · 0 comments

Comments

@gbugaisky
Copy link

Support for multiple languages on labels and hints of a webform. The JSON below shows the general structure for these kinds of forms:

{
"default_language":"default",
"id_string":"multiple_language_survey",
"children":[
    {
        "name":"name",
        "hint":{
            "French":"Indiquez les Nom et Pr\u00e9nom",
            "English":"Enter name"
        },
        "bind":{
            "required":"yes"
        },
        "label":{
            "French":"Quelle est votre nom?",
            "English":"Whats your name?"
        },
        "type":"text"
    },
    {
        "name":"age",
        "hint":{
            "French":"Indiquez l'\u00e2ge",
            "English":"Enter age"
        },
        "bind":{
            "required":"yes",
            "constraint":". <= 150"
        },
        "label":{
            "French":"Quel \u00e2ge avez-vous?",
            "English":"How old are you?"
        },
        "type":"integer"
    },
    {
        "control":{
            "bodyless":true
        },
        "children":[
            {
                "name":"instanceID",
                "bind":{
                    "readonly":"true()",
                    "calculate":"concat('uuid:', uuid())"
                },
                "type":"calculate"
            }
        ],
        "name":"meta",
        "type":"group"
    }
],
"type":"survey",
"name":"multiple_language_survey",
"sms_keyword":"multiple_language_survey",
"title":"multiple_language_survey"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant