[8.2.8][i18n] mogo-core-function-hmi 中文抽取
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package com.mogo.eagle.core.data.deva.bindingcar
|
||||
|
||||
import com.mogo.eagle.core.data.R
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
|
||||
/**
|
||||
* @author XuXinChao
|
||||
* @description 工控机升级状态实体类
|
||||
@@ -139,11 +142,14 @@ class AdUpgradeStateHelper {
|
||||
val minute = time/60
|
||||
val second = time%60
|
||||
return if(minute>0 && second>0){
|
||||
minute.toString()+"分钟"+second+"秒"
|
||||
// minute.toString()+"分钟"+second+"秒"
|
||||
minute.toString() + StringUtils.getString(R.string.module_och_minute) + second + StringUtils.getString(R.string.module_och_second)
|
||||
}else if(minute>0){
|
||||
minute.toString()+"分钟"
|
||||
// minute.toString()+"分钟"
|
||||
minute.toString() + StringUtils.getString(R.string.module_och_minute)
|
||||
}else if(second>0){
|
||||
second.toString()+"秒"
|
||||
// second.toString()+"秒"
|
||||
second.toString() + StringUtils.getString(R.string.module_och_second)
|
||||
}else{
|
||||
""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user