AndroidAPS/app/src/main/java/info/nightscout/utils/Translator.java

64 lines
2.6 KiB
Java
Raw Normal View History

2016-07-15 19:45:03 +02:00
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":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_bgcheck);
2016-07-15 19:45:03 +02:00
case "Snack Bolus":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_snackbolus);
2016-07-15 19:45:03 +02:00
case "Meal Bolus":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_mealbolus);
2016-07-15 19:45:03 +02:00
case "Correction Bolus":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_correctionbolus);
2016-07-15 19:45:03 +02:00
case "Carb Correction":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_carbscorrection);
2016-07-15 19:45:03 +02:00
case "Combo Bolus":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_combobolus);
2016-07-15 19:45:03 +02:00
case "Announcement":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_announcement);
2016-07-15 19:45:03 +02:00
case "Note":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_note);
2016-07-15 19:45:03 +02:00
case "Question":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_question);
2016-07-15 19:45:03 +02:00
case "Exercise":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_exercise);
2016-07-15 19:45:03 +02:00
case "Site Change":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_pumpsitechange);
2016-07-15 19:45:03 +02:00
case "Sensor Start":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_cgmsensorstart);
2016-07-15 19:45:03 +02:00
case "Sensor Change":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_cgmsensorinsert);
2016-07-15 19:45:03 +02:00
case "Insulin Change":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_insulincartridgechange);
2016-07-15 19:45:03 +02:00
case "Temp Basal Start":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_tempbasalstart);
2016-07-15 19:45:03 +02:00
case "Temp Basal End":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_tempbasalend);
2016-07-15 19:45:03 +02:00
case "Profile Switch":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_profileswitch);
2016-07-15 19:45:03 +02:00
case "Temporary Target":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_temporarytarget);
2016-07-15 19:45:03 +02:00
case "Temporary Target Cancel":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_temporarytargetcancel);
2016-07-15 19:45:03 +02:00
case "OpenAPS Offline":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.careportal_openapsoffline);
2016-07-15 19:45:03 +02:00
case "Finger":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.glucosetype_finger);
2016-07-15 19:45:03 +02:00
case "Sensor":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.glucosetype_sensor);
2016-07-15 19:45:03 +02:00
case "Manual":
2018-05-02 13:36:56 +02:00
return MainApp.gs(R.string.manual);
2016-07-15 19:45:03 +02:00
}
return text;
}
}