Skip to content

Commit

Permalink
Merge pull request #353 from OpenSRP/translations_0507
Browse files Browse the repository at this point in the history
Updated Forms to support translated spinner values
  • Loading branch information
rkodev authored May 10, 2019
2 parents 79af13c + 6d16b3f commit c555867
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 13 deletions.
2 changes: 1 addition & 1 deletion opensrp-chw/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ tasks.withType(Test) {
}

dependencies {
implementation('org.smartregister:opensrp-client-native-form:1.6.1-RTL-SNAPSHOT@aar') {
implementation('org.smartregister:opensrp-client-native-form:1.6.3-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
exclude group: 'com.android.support', module: 'appcompat-v7'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"Oui",
"Non"
],
"keys": [
"Yes",
"No"
],
"openmrs_choice_ids": {
"Oui": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Non": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Expand Down Expand Up @@ -124,6 +128,10 @@
"Oui",
"Non"
],
"keys": [
"Yes",
"No"
],
"openmrs_choice_ids": {
"Oui": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Non": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@
"Mâle",
"Femelle"
],
"keys": [
"Male",
"Female"
],
"v_required": {
"value": "true",
"err": "Veuillez entrer le sexe"
Expand All @@ -278,6 +282,10 @@
"Oui",
"Non"
],
"keys": [
"Yes",
"No"
],
"openmrs_choice_ids": {
"Oui": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Non": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
"Communications, services sociaux et personnelles",
"Autre"
],
"keys": [
"Petty trade",
"Agriculture, hunting and fishing",
"Exploitation of mines and quarries",
"Manufacturing industry",
"Construction",
"Electricity, gas and water",
"Commercial, hotels and restaurants",
"Transport, storage and communications",
"Financial institutions",
"Communication, social and personal services",
"Other"
],
"openmrs_choice_ids": {
"Petit commerce": "1539AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Agriculture, chasse et pêche": "165411AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@
"Déménagé",
"Autre"
],
"keys": [
"Died",
"Moved away",
"Other"
],
"v_required": {
"value": "true",
"err": "Sélectionnez la raison pour déplacer le dossier de l'enfant."
Expand Down Expand Up @@ -145,7 +150,7 @@
"relevance": {
"step1:remove_reason": {
"type": "string",
"ex": "equalTo(., \"Moved away\")"
"ex": "equalTo(., \"Déménagé\")"
}
}
},
Expand Down Expand Up @@ -175,7 +180,7 @@
"relevance": {
"step1:remove_reason": {
"type": "string",
"ex": "equalTo(., \"Died\")"
"ex": "equalTo(., \"Décédé\")"
}
}
},
Expand All @@ -191,7 +196,7 @@
"relevance": {
"step1:remove_reason": {
"type": "string",
"ex": "equalTo(., \"Died\")"
"ex": "equalTo(., \"Décédé\")"
}
},
"calculation": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
"Déménagé",
"Autre"
],
"keys": [
"Moved away",
"Other"
],
"v_required": {
"value": "true",
"err": "Sélectionnez la raison pour enlever le dossier de la famille"
Expand Down Expand Up @@ -141,7 +145,7 @@
"relevance": {
"step1:remove_reason": {
"type": "string",
"ex": "equalTo(., \"Moved away\")"
"ex": "equalTo(., \"Déménagé\")"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
"Déménagé",
"Autre"
],
"keys": [
"Died",
"Moved away",
"Other"
],
"openmrs_choice_ids": {
"Décédé": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Déménagé": "160415AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -145,7 +150,7 @@
"relevance": {
"step1:remove_reason": {
"type": "string",
"ex": "equalTo(., \"Moved away\")"
"ex": "equalTo(., \"Déménagé\")"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@
"Mâle",
"Femelle"
],
"keys": [
"Male",
"Female"
],
"v_required": {
"value": "true",
"err": "Veuillez entrer le sexe"
Expand All @@ -286,6 +290,10 @@
"values": [
"Oui",
"Non"
],
"keys": [
"Yes",
"No"
]
},
{
Expand All @@ -310,7 +318,7 @@
"relevance": {
"step1:primary_caregiver": {
"type": "string",
"ex": "equalTo(., \"Yes\")"
"ex": "equalTo(., \"Oui\")"
}
}
},
Expand All @@ -332,7 +340,7 @@
"relevance": {
"step1:primary_caregiver": {
"type": "string",
"ex": "equalTo(., \"Yes\")"
"ex": "equalTo(., \"Oui\")"
}
}
},
Expand All @@ -350,16 +358,22 @@
"Secondaire",
"Postsecondaire"
],
"keys": [
"None",
"Primary",
"Secondary",
"Post-secondary"
],
"openmrs_choice_ids": {
"Aucun": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Primaire": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Secondaire": "1714AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Postsecondaire": "159785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"None": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Primary": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Secondary": "1714AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Post-secondary": "159785AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"relevance": {
"step1:primary_caregiver": {
"type": "string",
"ex": "equalTo(., \"Yes\")"
"ex": "equalTo(., \"Oui\")"
}
}
}
Expand Down
23 changes: 23 additions & 0 deletions opensrp-chw/src/main/assets/json.form/family_register_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@
"Communications, services sociaux et personnelles",
"Autre"
],
"keys": [
"Petty trade",
"Agriculture, hunting and fishing",
"Exploitation of mines and quarries",
"Manufacturing industry",
"Construction",
"Electricity, gas and water",
"Commercial, hotels and restaurants",
"Transport, storage and communications",
"Financial institutions",
"Communication, social and personal services",
"Other"
],
"openmrs_choice_ids": {
"Petty trade": "1539AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Agriculture, hunting and fishing": "165411AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -390,6 +403,10 @@
"Mâle",
"Femelle"
],
"keys": [
"Male",
"Female"
],
"v_required": {
"value": "true",
"err": "Veuillez entrer le sexe"
Expand Down Expand Up @@ -445,6 +462,12 @@
"Secondaire",
"Postsecondaire"
],
"keys": [
"None",
"Primary",
"Secondary",
"Post-secondary"
],
"openmrs_choice_ids": {
"Aucun": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Primaire": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
"Référé",
"Aucun mesure prise"
],
"keys": [
"Managed",
"Referred",
"No action taken"
],
"openmrs_choice_ids": {
"Géré": "140959AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Référé": "1648AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down

0 comments on commit c555867

Please sign in to comment.