Skip to content

Commit

Permalink
#1283 | Display address filter help text consistently.
Browse files Browse the repository at this point in the history
- Introduce new translation key so users on older versions don't see incorrect help text
  • Loading branch information
1t5j0y committed Feb 19, 2024
1 parent c5a5680 commit b3fbf72
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from 'openchs-models';
import {DashboardReportFilter} from "../../model/DashboardReportFilters";
import _ from "lodash";
import General from "../../utility/General";
import AddressLevelService from "../AddressLevelService";
import GlobalContext from "../../GlobalContext";

Expand Down
3 changes: 2 additions & 1 deletion packages/openchs-android/src/views/filter/FiltersView.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ class FilterView extends AbstractComponent {
addressLevelState: addressLevelState
})
}}
multiSelect={true}/> : null}
multiSelect={true}
userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/> : null}
{!_.isEmpty(bottomLevelFilters) ?
<CustomFilters filters={bottomLevelFilters}
selectedCustomFilters={this.props.selectedCustomFilters}
Expand Down
2 changes: 1 addition & 1 deletion packages/openchs-android/src/views/filter/FiltersViewV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class FiltersViewV2 extends AbstractComponent {
key={index}
onSelect={(updatedAddressLevelState) => this.dispatchFilterUpdate(filter, updatedAddressLevelState)}
multiSelect={true}
userHintText={this.I18n.t('addressFilterBehaviorHint')}/>;
userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/>;
case CustomFilter.type.RegistrationDate:
case CustomFilter.type.EnrolmentDate:
case CustomFilter.type.ProgramEncounterDate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class IndividualSearchView extends AbstractComponent {
onSelect={(addressLevelState) =>
this.dispatchAction(Actions.TOGGLE_INDIVIDUAL_SEARCH_ADDRESS_LEVEL, {values: addressLevelState})
}
multiSelect={true}/>}
multiSelect={true}
userHintText={this.I18n.t('addressFilterImplicitBehaviorHint')}/>}
<>
<Text style={Styles.formLabel}>{this.I18n.t("includeVoided")}</Text>
<Checkbox.Group accessibilityLabel={this.I18n.t("includeVoided")}
Expand Down
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@
"enterNewPasswordFor" : "Enter new password for {{userName}}",
"enterOTP" : "Enter OTP",
"backgroundSyncInProgress" : "Auto sync is in progress. Please try again after sometime.",
"addressFilterBehaviorHint": "(Selection includes lower levels implicitly)"
"addressFilterBehaviorHint": "(Choose exact level at which subject is registered)",
"addressFilterImplicitBehaviorHint": "(Selection includes lower levels implicitly)"
}
}
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/gu_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
"trackLocation": "ટ્રૅક સ્થાન",
"disableAutoSync": "સ્વતઃ સમન્વયન અક્ષમ કરો",
"autoSync": "સ્વતઃ સમન્વયન",
"addressFilterBehaviorHint": "(પસંદગીમાં નિમ્ન સ્તરનો ગર્ભિત સમાવેશ થાય છે)"
"addressFilterBehaviorHint": "(યોગ્ય સ્તર પસંદ કરો કે જેમાં વિષય નોંધાયેલ છે)",
"addressFilterImplicitBehaviorHint": "(પસંદગીમાં નિમ્ન સ્તરનો ગર્ભિત સમાવેશ થાય છે)"
}
}
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
"disableAutoSync": "ऑटो सिंक अक्षम करें",
"autoSync": "ऑटो सिंक",
"backgroundSyncInProgress": "ऑटो सिंक प्रगति पर है| कृपया कुछ देर बाद प्रयास करें।",
"addressFilterBehaviorHint": "(चयन में निचले स्तर परोक्ष रूप से शामिल हैं)"
"addressFilterBehaviorHint": "(वही लोकेशन जहाँ सब्जेक्ट रजिस्टर्ड है)",
"addressFilterImplicitBehaviorHint": "(चयन में निचले स्तर परोक्ष रूप से शामिल हैं)"
}
}
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/ka_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
"autoRefresh": "ಡ್ಯಾಶ್ಬೋರ್ಡ್ ಸ್ವಯಂ ರಿಫ್ರೆಶ್",
"disableAutoSync": "ಸ್ವಯಂ ಸಿಂಕ್ ಅನ್ನು ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಿ",
"autoSync": "ಸ್ವಯಂ ಸಿಂಕ್",
"addressFilterBehaviorHint": "(ಆಯ್ಕೆಯು ಕೆಳ ಹಂತಗಳನ್ನು ಸೂಚ್ಯವಾಗಿ ಒಳಗೊಂಡಿರುತ್ತದೆ)"
"addressFilterBehaviorHint": "(ಯಾವ ವಿಷಯವನ್ನು ನೋಂದಾಯಿಸಲಾಗಿದೆ ಎಂಬುದನ್ನು ನಿಖರವಾದ ಮಟ್ಟವನ್ನು ಆರಿಸಿ)",
"addressFilterImplicitBehaviorHint": "(ಆಯ್ಕೆಯು ಕೆಳ ಹಂತಗಳನ್ನು ಸೂಚ್ಯವಾಗಿ ಒಳಗೊಂಡಿರುತ್ತದೆ)"
}
}
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/mr_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
"autoRefresh": "डॅशबोर्ड ऑटो रिफ्रेश",
"disableAutoSync": "ऑटो सिंक अक्षम करा",
"autoSync": "ऑटो सिंक",
"addressFilterBehaviorHint": "(निवडीत खालच्या स्तरांचा समावेश होतो)"
"addressFilterBehaviorHint": "(कोणत्या विषयावर नोंदणी केली आहे ते अचूक स्तर निवडा)",
"addressFilterImplicitBehaviorHint": "(निवडीत खालच्या स्तरांचा समावेश होतो)"
}
}
3 changes: 2 additions & 1 deletion packages/openchs-android/translations/ta_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
"autoRefresh": "டாஷ்போர்டு தானியங்கு புதுப்பிப்பு",
"disableAutoSync": "தானியங்கு ஒத்திசைவை முடக்கு",
"autoSync": "தானியங்கு ஒத்திசைவு",
"addressFilterBehaviorHint": "(தேர்வு என்பது கீழ்நிலைகளை மறைமுகமாக உள்ளடக்கியது)"
"addressFilterBehaviorHint": "(எந்த பாடத்தில் பதிவு செய்யப்பட்டுள்ளது என்பதை சரியான அளவில் தேர்வு செய்யவும்)",
"addressFilterImplicitBehaviorHint": "(தேர்வு என்பது கீழ்நிலைகளை மறைமுகமாக உள்ளடக்கியது)"
}
}

0 comments on commit b3fbf72

Please sign in to comment.