Prepare Translator for missing translations

This commit is contained in:
Philoul 2021-04-02 18:07:05 +02:00
parent c0aedc7736
commit 38fb53b4ce

View file

@ -140,6 +140,27 @@ class Translator @Inject internal constructor(
TherapyEvent.Type.TEMPORARY_TARGET_CANCEL -> resourceHelper.gs(R.string.careportal_temporarytargetcancel) TherapyEvent.Type.TEMPORARY_TARGET_CANCEL -> resourceHelper.gs(R.string.careportal_temporarytargetcancel)
TherapyEvent.Type.APS_OFFLINE -> resourceHelper.gs(R.string.careportal_openapsoffline) TherapyEvent.Type.APS_OFFLINE -> resourceHelper.gs(R.string.careportal_openapsoffline)
TherapyEvent.Type.NS_MBG -> resourceHelper.gs(R.string.careportal_mbg) TherapyEvent.Type.NS_MBG -> resourceHelper.gs(R.string.careportal_mbg)
/*
TherapyEvent.Type.TEMPORARY_BASAL -> TODO()
TherapyEvent.Type.TUBE_CHANGE -> TODO()
TherapyEvent.Type.FALLING_ASLEEP -> TODO()
TherapyEvent.Type.BATTERY_EMPTY -> TODO()
TherapyEvent.Type.RESERVOIR_EMPTY -> TODO()
TherapyEvent.Type.OCCLUSION -> TODO()
TherapyEvent.Type.PUMP_STOPPED -> TODO()
TherapyEvent.Type.PUMP_STARTED -> TODO()
TherapyEvent.Type.PUMP_PAUSED -> TODO()
TherapyEvent.Type.WAKING_UP -> TODO()
TherapyEvent.Type.SICKNESS -> TODO()
TherapyEvent.Type.STRESS -> TODO()
TherapyEvent.Type.PRE_PERIOD -> TODO()
TherapyEvent.Type.ALCOHOL -> TODO()
TherapyEvent.Type.CORTISONE -> TODO()
TherapyEvent.Type.FEELING_LOW -> TODO()
TherapyEvent.Type.FEELING_HIGH -> TODO()
TherapyEvent.Type.LEAKING_INFUSION_SET -> TODO()
*/
TherapyEvent.Type.NONE -> resourceHelper.gs(R.string.unknown)
else -> resourceHelper.gs(R.string.unknown) else -> resourceHelper.gs(R.string.unknown)
} }
@ -156,6 +177,36 @@ class Translator @Inject internal constructor(
} }
fun translate(source: Sources): String = when(source) { fun translate(source: Sources): String = when(source) {
/*
Sources.TreatmentDialog -> TODO()
Sources.InsulinDialog -> TODO()
Sources.CarbDialog -> TODO()
Sources.WizardDialog -> TODO()
Sources.QuickWizard -> TODO()
Sources.ExtendedBolusDialog -> TODO()
Sources.TTDialog -> TODO()
Sources.ProfileSwitchDialog -> TODO()
Sources.LoopDialog -> TODO()
Sources.TempBasalDialog -> TODO()
Sources.CalibrationDialog -> TODO()
Sources.FillDialog -> TODO()
Sources.BgCheck -> TODO()
Sources.SensorInsert -> TODO()
Sources.BatteryChange -> TODO()
Sources.Note -> TODO()
Sources.Exercise -> TODO()
Sources.Question -> TODO()
Sources.Announcement -> TODO()
Sources.Actions -> TODO()
Sources.BG -> TODO()
Sources.LocalProfile -> TODO()
Sources.Maintenance -> TODO()
Sources.NSProfile -> TODO()
Sources.Objectives -> TODO()
Sources.Treatments -> TODO()
Sources.Food -> TODO()
*/
Sources.Automation -> resourceHelper.gs(R.string.automation) Sources.Automation -> resourceHelper.gs(R.string.automation)
Sources.Loop -> resourceHelper.gs(R.string.loop) Sources.Loop -> resourceHelper.gs(R.string.loop)
Sources.NSClient -> resourceHelper.gs(R.string.ns) Sources.NSClient -> resourceHelper.gs(R.string.ns)