Skip to content

Commit

Permalink
#1256 | Add translations for RuleExecutionError secondary value
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jan 31, 2024
1 parent eb3b4da commit dba2fe3
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class CustomDashboardActions {
newState.cardToCountResultMap[itemKey] = {
hasErrorMsg: true,
primaryValue: I18n.t("Error"),
secondaryValue: `Configured number of cards don\'t match with the number of cards in the rule`,
secondaryValue: I18n.t("nestedReportCardsCountMismatch"),
lineListFunction: _.noop(),
itemKey
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ class RuleEvaluationService extends BaseService {
return {
hasErrorMsg: true,
primaryValue: this.I18n.t("Error"),
secondaryValue: 'Query execution error',
secondaryValue: this.I18n.t("queryExecutionError"),
lineListFunction: _.noop()
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const CardListView = ({reportCard, I18n, onCardPress, countResult}) => {
const textColor = (countResult && countResult.textColor) || '#ffffff';
const cardColor = (countResult && countResult.cardColor) || colour || '#0000ff';

const renderNumber = (textColor) => {
const renderNumber = () => {
return (_.isNil(get(countResult, 'primaryValue')) ?
<ActivityIndicator size="large" color={textColor} style={{paddingVertical: 25}}/> :
<CountResult
Expand All @@ -33,7 +33,7 @@ export const CardListView = ({reportCard, I18n, onCardPress, countResult}) => {
</View>
<View style={[styles.numberContainer, {backgroundColor: cardColor}]}>
<View style={{alignSelf: 'center'}}>
{renderNumber(textColor)}
{renderNumber()}
</View>
</View>
</View>
Expand Down
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@
"enterNewPasswordFor" : "Enter new password for {{userName}}",
"enterOTP" : "Enter OTP",
"backgroundSyncInProgress" : "Auto sync is in progress. Please try again after sometime.",
"addressFilterBehaviorHint": "(Choose exact level at which subject is registered)"
"addressFilterBehaviorHint" : "(Choose exact level at which subject is registered)",
"queryExecutionError" : "Query rule execution error",
"nestedReportCardsCountMismatch" : "Configured number of cards don't match with the number of cards in the rule"
}
}
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/gu_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@
"trackLocation": "ટ્રૅક સ્થાન",
"disableAutoSync": "સ્વતઃ સમન્વયન અક્ષમ કરો",
"autoSync": "સ્વતઃ સમન્વયન",
"addressFilterBehaviorHint": "(યોગ્ય સ્તર પસંદ કરો કે જેમાં વિષય નોંધાયેલ છે)"
"addressFilterBehaviorHint": "(યોગ્ય સ્તર પસંદ કરો કે જેમાં વિષય નોંધાયેલ છે)",
"queryExecutionError" : "નિયમ અમલમાં ભૂલ",
"nestedReportCardsCountMismatch" : "કાર્ડની રૂપરેખાંકિત સંખ્યા નિયમમાંના કાર્ડની સંખ્યા સાથે મેળ ખાતી નથી"
}
}
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@
"disableAutoSync": "ऑटो सिंक अक्षम करें",
"autoSync": "ऑटो सिंक",
"backgroundSyncInProgress": "ऑटो सिंक प्रगति पर है| कृपया कुछ देर बाद प्रयास करें।",
"addressFilterBehaviorHint": "(वही लोकेशन जहाँ सब्जेक्ट रजिस्टर्ड है)"
"addressFilterBehaviorHint": "(वही लोकेशन जहाँ सब्जेक्ट रजिस्टर्ड है)",
"queryExecutionError" : "नियम निष्पादन त्रुटि",
"nestedReportCardsCountMismatch" : "कार्डों की कॉन्फ़िगर की गई संख्या नियम में कार्डों की संख्या से मेल नहीं खाती"
}
}
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/ka_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@
"autoRefresh": "ಡ್ಯಾಶ್ಬೋರ್ಡ್ ಸ್ವಯಂ ರಿಫ್ರೆಶ್",
"disableAutoSync": "ಸ್ವಯಂ ಸಿಂಕ್ ಅನ್ನು ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಿ",
"autoSync": "ಸ್ವಯಂ ಸಿಂಕ್",
"addressFilterBehaviorHint": "(ಯಾವ ವಿಷಯವನ್ನು ನೋಂದಾಯಿಸಲಾಗಿದೆ ಎಂಬುದನ್ನು ನಿಖರವಾದ ಮಟ್ಟವನ್ನು ಆರಿಸಿ)"
"addressFilterBehaviorHint": "(ಯಾವ ವಿಷಯವನ್ನು ನೋಂದಾಯಿಸಲಾಗಿದೆ ಎಂಬುದನ್ನು ನಿಖರವಾದ ಮಟ್ಟವನ್ನು ಆರಿಸಿ)",
"queryExecutionError" : "ನಿಯಮ ಕಾರ್ಯಗತಗೊಳಿಸುವಲ್ಲಿ ವಿಫಲವಾಗಿದೆ",
"nestedReportCardsCountMismatch" : "ನಿಯಮದಲ್ಲಿರುವ ಕಾರ್ಡ್ಗಳ ಸಂಖ್ಯೆಯೊಂದಿಗೆ ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾದ ಕಾರ್ಡ್ಗಳು ಹೊಂದಿಕೆಯಾಗುವುದಿಲ್ಲ"
}
}
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/mr_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@
"autoRefresh": "डॅशबोर्ड ऑटो रिफ्रेश",
"disableAutoSync": "ऑटो सिंक अक्षम करा",
"autoSync": "ऑटो सिंक",
"addressFilterBehaviorHint": "(कोणत्या विषयावर नोंदणी केली आहे ते अचूक स्तर निवडा)"
"addressFilterBehaviorHint": "(कोणत्या विषयावर नोंदणी केली आहे ते अचूक स्तर निवडा)",
"queryExecutionError" : "नियम अंमलबजावणी त्रुटी",
"nestedReportCardsCountMismatch" : "कॉन्फिगर केलेली कार्डची संख्या नियमातील कार्डांच्या संख्येशी जुळत नाही"
}
}
4 changes: 3 additions & 1 deletion packages/openchs-android/translations/ta_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@
"autoRefresh": "டாஷ்போர்டு தானியங்கு புதுப்பிப்பு",
"disableAutoSync": "தானியங்கு ஒத்திசைவை முடக்கு",
"autoSync": "தானியங்கு ஒத்திசைவு",
"addressFilterBehaviorHint": "(எந்த பாடத்தில் பதிவு செய்யப்பட்டுள்ளது என்பதை சரியான அளவில் தேர்வு செய்யவும்)"
"addressFilterBehaviorHint": "(எந்த பாடத்தில் பதிவு செய்யப்பட்டுள்ளது என்பதை சரியான அளவில் தேர்வு செய்யவும்)",
"queryExecutionError" : "விதியை செயல்படுத்துவதில் பிழை",
"nestedReportCardsCountMismatch" : "உள்ளமைக்கப்பட்ட கார்டுகளின் எண்ணிக்கை, விதியில் உள்ள கார்டுகளின் எண்ணிக்கையுடன் பொருந்தவில்லை"
}
}

0 comments on commit dba2fe3

Please sign in to comment.