[8.2.8][i18n] mogo-core-function-datacenter 中文抽取
This commit is contained in:
@@ -36,6 +36,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_HMI
|
||||
import com.mogo.eagle.core.utilcode.util.AppUtils
|
||||
import com.mogo.eagle.core.utilcode.util.NetworkUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
|
||||
import com.mogo.map.MogoData
|
||||
@@ -387,9 +388,11 @@ class CarInfoTabView @JvmOverloads constructor(
|
||||
leftTime = productInfo.optInt("left_time")//剩余时间,单位秒
|
||||
}
|
||||
val upgradeTime = if(leftTime > 60){
|
||||
"预计部署过程用时${leftTime/60}分钟${leftTime%60}秒"
|
||||
// "预计部署过程用时${leftTime/60}分钟${leftTime%60}秒"
|
||||
StringUtils.getString(R.string.module_core_deployment_time_used, leftTime / 60, leftTime % 60)
|
||||
}else{
|
||||
"预计部署过程用时${leftTime%60}秒"
|
||||
// "预计部署过程用时${leftTime%60}秒"
|
||||
StringUtils.getString(R.string.module_core_deployment_time_used1, leftTime % 60)
|
||||
}
|
||||
CallerHmiManager.showOTAUpgradeDialog(1,true,upgradeReason+upgradeTime)
|
||||
}else{
|
||||
|
||||
@@ -42,6 +42,7 @@ import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.utilcode.util.ClickUtils
|
||||
import com.mogo.eagle.core.utilcode.util.JsonParser
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
import com.mogo.eagle.core.utilcode.util.TimeUtils
|
||||
import com.mogo.eagle.core.utilcode.util.TimeUtils.millis2String
|
||||
@@ -275,7 +276,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
if (hasFocus) {
|
||||
edit.hint = ""
|
||||
} else {
|
||||
edit.hint = "手动输入"
|
||||
// edit.hint = "手动输入"
|
||||
edit.hint = StringUtils.getString(R.string.module_core_manual_input)
|
||||
}
|
||||
}
|
||||
etNoteInput.addTextChangedListener(object : TextWatcher {
|
||||
|
||||
@@ -34,6 +34,7 @@ import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.utilcode.util.ClickUtils
|
||||
import com.mogo.eagle.core.utilcode.util.JsonParser
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
import com.mogo.eagle.core.utilcode.util.TimeUtils
|
||||
import com.mogo.eagle.core.utilcode.util.TimeUtils.millis2String
|
||||
@@ -100,22 +101,28 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
wrap_radio_group.setOnCheckedChangeListener{_, checkedId ->
|
||||
when(checkedId){
|
||||
R.id.rb_type_software->{
|
||||
workOrderType = "软件"
|
||||
// workOrderType = "软件"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_software)
|
||||
}
|
||||
R.id.rb_type_kit->{
|
||||
workOrderType = "套件"
|
||||
// workOrderType = "套件"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_kit)
|
||||
}
|
||||
R.id.rb_type_vehicle->{
|
||||
workOrderType = "车辆"
|
||||
// workOrderType = "车辆"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_vehicle)
|
||||
}
|
||||
R.id.rb_type_capacity->{
|
||||
workOrderType = "运力"
|
||||
// workOrderType = "运力"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_capacity)
|
||||
}
|
||||
R.id.rb_type_environment->{
|
||||
workOrderType = "环境"
|
||||
// workOrderType = "环境"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_environment)
|
||||
}
|
||||
R.id.rb_type_other->{
|
||||
workOrderType = "其他"
|
||||
// workOrderType = "其他"
|
||||
workOrderType = StringUtils.getString(R.string.module_core_other)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -141,7 +148,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
if(hasFocus){
|
||||
edit.hint = ""
|
||||
}else{
|
||||
edit.hint = "手动输入"
|
||||
// edit.hint = "手动输入"
|
||||
edit.hint = StringUtils.getString(R.string.module_core_manual_input)
|
||||
}
|
||||
}
|
||||
et_describe_input.addTextChangedListener(object: TextWatcher {
|
||||
|
||||
Reference in New Issue
Block a user