64 lines
3 KiB
Java
64 lines
3 KiB
Java
|
package info.nightscout.utils;
|
||
|
|
||
|
import info.nightscout.androidaps.MainApp;
|
||
|
import info.nightscout.androidaps.R;
|
||
|
|
||
|
/**
|
||
|
* Created by mike on 15.07.2016.
|
||
|
*/
|
||
|
public class Translator {
|
||
|
|
||
|
public static String translate(String text) {
|
||
|
switch (text) {
|
||
|
|
||
|
case "BG Check":
|
||
|
return MainApp.sResources.getString(R.string.careportal_bgcheck);
|
||
|
case "Snack Bolus":
|
||
|
return MainApp.sResources.getString(R.string.careportal_snackbolus);
|
||
|
case "Meal Bolus":
|
||
|
return MainApp.sResources.getString(R.string.careportal_mealbolus);
|
||
|
case "Correction Bolus":
|
||
|
return MainApp.sResources.getString(R.string.careportal_correctionbolus);
|
||
|
case "Carb Correction":
|
||
|
return MainApp.sResources.getString(R.string.careportal_carbscorrection);
|
||
|
case "Combo Bolus":
|
||
|
return MainApp.sResources.getString(R.string.careportal_combobolus);
|
||
|
case "Announcement":
|
||
|
return MainApp.sResources.getString(R.string.careportal_announcement);
|
||
|
case "Note":
|
||
|
return MainApp.sResources.getString(R.string.careportal_note);
|
||
|
case "Question":
|
||
|
return MainApp.sResources.getString(R.string.careportal_question);
|
||
|
case "Exercise":
|
||
|
return MainApp.sResources.getString(R.string.careportal_exercise);
|
||
|
case "Site Change":
|
||
|
return MainApp.sResources.getString(R.string.careportal_pumpsitechange);
|
||
|
case "Sensor Start":
|
||
|
return MainApp.sResources.getString(R.string.careportal_cgmsensorstart);
|
||
|
case "Sensor Change":
|
||
|
return MainApp.sResources.getString(R.string.careportal_cgmsensorinsert);
|
||
|
case "Insulin Change":
|
||
|
return MainApp.sResources.getString(R.string.careportal_insulincartridgechange);
|
||
|
case "Temp Basal Start":
|
||
|
return MainApp.sResources.getString(R.string.careportal_tempbasalstart);
|
||
|
case "Temp Basal End":
|
||
|
return MainApp.sResources.getString(R.string.careportal_tempbasalend);
|
||
|
case "Profile Switch":
|
||
|
return MainApp.sResources.getString(R.string.careportal_profileswitch);
|
||
|
case "Temporary Target":
|
||
|
return MainApp.sResources.getString(R.string.careportal_temporarytarget);
|
||
|
case "Temporary Target Cancel":
|
||
|
return MainApp.sResources.getString(R.string.careportal_temporarytargetcancel);
|
||
|
case "OpenAPS Offline":
|
||
|
return MainApp.sResources.getString(R.string.careportal_openapsoffline);
|
||
|
case "Finger":
|
||
|
return MainApp.sResources.getString(R.string.glucosetype_finger);
|
||
|
case "Sensor":
|
||
|
return MainApp.sResources.getString(R.string.glucosetype_sensor);
|
||
|
case "Manual":
|
||
|
return MainApp.sResources.getString(R.string.glucosetype_manual);
|
||
|
}
|
||
|
return text;
|
||
|
}
|
||
|
}
|