[8.2.8][i18n] mogo-map 中文抽取

This commit is contained in:
xinfengkun
2025-11-28 14:14:41 +08:00
parent 2b89f8405a
commit 06e8d12fb3
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
package com.mogo.map.utils;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.eagle.core.utilcode.util.StringUtils;
import com.mogo.map.R;
import com.mogo.map.exception.MogoMapException;
import com.zhidaoauto.map.data.point.LonLatPoint;
import com.zhidaoauto.map.sdk.open.logics.camera.LatLngBounds;
@@ -18,7 +20,8 @@ public class MogoMapUtils {
public static LatLngBounds getLatLngBounds(MogoLatLng carPosition, List< MogoLatLng > lonLats, boolean lockCarPosition ) throws Exception {
if ( lonLats == null || lonLats.isEmpty() ) {
throw new MogoMapException( "经纬度不能为null或空集合" );
// throw new MogoMapException( "经纬度不能为null或空集合" );
throw new MogoMapException(StringUtils.getString(R.string.module_map_lon_lat_not_null));
}
LatLngBounds.Builder builder = new LatLngBounds.Builder();
for ( MogoLatLng lonLat : lonLats ) {
@@ -33,7 +36,8 @@ public class MogoMapUtils {
}
if ( carPosition == null ) {
throw new MogoMapException( "自车位置经纬度信息不能为空" );
// throw new MogoMapException( "自车位置经纬度信息不能为空" );
throw new MogoMapException(StringUtils.getString(R.string.module_map_car_position_not_null));
}
if ( latLngBounds.getNortheast() == null && latLngBounds.getSouthwest() == null ) {

View File

@@ -1,3 +1,5 @@
<resources>
<string name="app_name">mogo-map</string>
<string name="module_map_lon_lat_not_null">经纬度不能为null或空集合</string>
<string name="module_map_car_position_not_null">自车位置经纬度信息不能为空</string>
</resources>