Update list of Sources in translator
This commit is contained in:
parent
dc87bfa303
commit
195c810606
|
@ -173,7 +173,7 @@ class Translator @Inject internal constructor(
|
|||
TemporaryTarget.Reason.AUTOMATION -> resourceHelper.gs(R.string.automation)
|
||||
TemporaryTarget.Reason.WEAR -> resourceHelper.gs(R.string.wear)
|
||||
|
||||
else -> resourceHelper.gs(R.string.unknown)
|
||||
else -> resourceHelper.gs(R.string.unknown)
|
||||
}
|
||||
|
||||
fun translate(source: Sources): String = when(source) {
|
||||
|
@ -206,6 +206,9 @@ class Translator @Inject internal constructor(
|
|||
Sources.Objectives -> TODO()
|
||||
Sources.Treatments -> TODO()
|
||||
Sources.Food -> TODO()
|
||||
Sources.ConfigBuilder -> TODO()
|
||||
Sources.Overview -> TODO()
|
||||
Sources.Stats -> TODO()
|
||||
*/
|
||||
Sources.Automation -> resourceHelper.gs(R.string.automation)
|
||||
Sources.Loop -> resourceHelper.gs(R.string.loop)
|
||||
|
|
|
@ -93,7 +93,7 @@ class UserEntryPresentationHelper @Inject constructor(
|
|||
is XXXValueWithUnit.UnitPerHour -> DecimalFormatter.to2Decimal(valueWithUnit.value) + translator.translate(UserEntry.Units.U_H)
|
||||
is XXXValueWithUnit.SimpleInt -> valueWithUnit.value.toString()
|
||||
is XXXValueWithUnit.SimpleString -> valueWithUnit.value
|
||||
is XXXValueWithUnit.StringResource -> resourceHelper.gs(valueWithUnit.value /*, valueWithUnit.params.map { it.value() }*/)
|
||||
is XXXValueWithUnit.StringResource -> resourceHelper.gs(valueWithUnit.value /*, valueWithUnit.params.map { it.value() }*/) //Todo Fix StringResource with Param
|
||||
is XXXValueWithUnit.TherapyEventMeterType -> translator.translate(valueWithUnit.value)
|
||||
is XXXValueWithUnit.TherapyEventTTReason -> translator.translate(valueWithUnit.value)
|
||||
is XXXValueWithUnit.TherapyEventType -> translator.translate(valueWithUnit.value)
|
||||
|
|
Loading…
Reference in a new issue