我的设置-锁屏、APP开锁时需手机连网的锁、隐藏无效开锁权限,三个模块完成国际化

This commit is contained in:
魏少阳 2023-07-24 09:36:53 +08:00
parent 69a46812ed
commit 681ed316bc
8 changed files with 48 additions and 12 deletions

View File

@ -362,5 +362,10 @@
"templateTip4": "Tip: When sending messages to other people, be critical",
"and":"And",
"willBeReplacedWithTheActualValue":"Will be replaced with the actual value",
"downloadLink":"Download Link"
"downloadLink":"Download Link",
"lockScreenTip":"After the function is enabled, you need to use your fingerprint, face or account password to open the APP. There is no need to verify again for 3 minutes",
"hideInvalidUnlockPermissionsTip":"After the function is enabled, the password, electronic key, card, fingerprint and other unlocking permissions that have been invalid for a long time will be hidden and not displayed in the list.",
"appUnlockRequiresMobilePhoneAccessToTheLockTip":"For the selected locks, when the user uses the APP to unlock the lock, his phone needs to be connected to the Internet, otherwise the lock cannot be unlocked",
"checkAll":"Check All"
}

View File

@ -362,5 +362,10 @@
"templateTip4": "templateTip4",
"and":"and",
"willBeReplacedWithTheActualValue":"willBeReplacedWithTheActualValue",
"downloadLink":"downloadLink"
"downloadLink":"downloadLink",
"lockScreenTip":"lockScreenTip",
"hideInvalidUnlockPermissionsTip":"hideInvalidUnlockPermissionsTip",
"appUnlockRequiresMobilePhoneAccessToTheLockTip":"appUnlockRequiresMobilePhoneAccessToTheLockTip",
"checkAll":"checkAll"
}

View File

@ -365,5 +365,10 @@
"templateTip4": "提示:向其他人发送消息时,关键宇",
"and":"和",
"willBeReplacedWithTheActualValue":"将替换为实际值",
"downloadLink":"下载链接"
"downloadLink":"下载链接",
"lockScreenTip":"功能开启后,需使用指纹、人脸或账号密码来打开 APP。3分钟内不需要再次验证",
"hideInvalidUnlockPermissionsTip":"功能开启后,已失效较长时间的密码、电子钥匙、卡、指纹等开锁权限将被隐藏,不在列表里显示。",
"appUnlockRequiresMobilePhoneAccessToTheLockTip":"对于选中的这些锁当用户用APP开锁时他的手机需要是连网的否则无法开锁",
"checkAll":"全选"
}

View File

@ -40,7 +40,7 @@ class _MineMultiLanguagePageState extends State<MineMultiLanguagePage> {
for(int i = 0; i < state.languages.length; i++){
var e = state.languages[i];
var lanType = ExtensionLanguageType.fromLanguageCode(e.languageCode);
l.add(CommonItem(leftTitel:lanType.lanTitle, rightTitle:"", allHeight: 70.h, isHaveLine: true, isHaveDirection:false, isHaveRightWidget: true, rightWidget: Obx(() => state.currentLanguageType.value == lanType ? Image(image: const AssetImage("images/icon_item_checked.png"),width:30.w,height:30.w, fit: BoxFit.contain,): Container()), action: (){
l.add(CommonItem(leftTitel:lanType.lanTitle, rightTitle:"", allHeight: 90.h, isHaveLine: true, isHaveDirection:false, isHaveRightWidget: true, rightWidget: Obx(() => state.currentLanguageType.value == lanType ? Image(image: const AssetImage("images/icon_item_checked.png"),width:30.w,height:30.w, fit: BoxFit.contain,): Container()), action: (){
logic.changeLanguage(e);
}),);
}

View File

@ -21,7 +21,7 @@ class _APPUnlockNeedMobileNetworkingLockPageState extends State<APPUnlockNeedMob
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(barTitle: "APP开锁时需手机连网的锁", haveBack:true, backgroundColor: AppColors.mainColor),
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.appUnlockRequiresMobilePhoneAccessToTheLock!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
body:Column(
children: [
Container(
@ -29,11 +29,11 @@ class _APPUnlockNeedMobileNetworkingLockPageState extends State<APPUnlockNeedMob
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(child: Text("对于选中的这些锁当用户用APP开锁时他的手机需要是连网的否则无法开锁")),
Expanded(child: Text(TranslationLoader.lanKeys!.appUnlockRequiresMobilePhoneAccessToTheLockTip!.tr)),
],
),
),
CommonItem(leftTitel:"全选", rightTitle:"", allHeight:100.h, isHaveLine: false, isHaveRightWidget: true,
CommonItem(leftTitel:TranslationLoader.lanKeys!.checkAll!.tr, rightTitle:"", allHeight:100.h, isHaveLine: false, isHaveRightWidget: true,
rightWidget: GestureDetector(
onTap: (){

View File

@ -20,7 +20,7 @@ class _HideInvalidUnlockPermissionsPageState extends State<HideInvalidUnlockPerm
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(barTitle: "隐藏无效开锁权限", haveBack:true, backgroundColor: AppColors.mainColor),
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.hideInvalidUnlockPermissions!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
body:Container(
padding: EdgeInsets.all(30.w),
child: Column(
@ -28,7 +28,7 @@ class _HideInvalidUnlockPermissionsPageState extends State<HideInvalidUnlockPerm
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(child: Text("功能开启后,已失效较长时间的密码、电子钥匙、卡、指纹等开锁权限将被隐藏,不在列表里显示。")),
Expanded(child: Text(TranslationLoader.lanKeys!.hideInvalidUnlockPermissionsTip!.tr)),
],
),
SizedBox(height: 20.h,),

View File

@ -20,7 +20,7 @@ class _LockScreenPageState extends State<LockScreenPage> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
appBar: TitleAppBar(barTitle: "锁屏", haveBack:true, backgroundColor: AppColors.mainColor),
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.lockScreen!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
body:Container(
padding: EdgeInsets.all(30.w),
child: Column(
@ -28,7 +28,7 @@ class _LockScreenPageState extends State<LockScreenPage> {
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(child: Text("功能开启后,需使用指纹、人脸或账号密码来打开 APP。3分钟内不需要再次验证")),
Expanded(child: Text(TranslationLoader.lanKeys!.lockSoundTip!.tr)),
],
),
SizedBox(height: 20.h,),

View File

@ -366,7 +366,13 @@ class LanKeyEntity {
this.templateTip4,
this.and,
this.willBeReplacedWithTheActualValue,
this.downloadLink
this.downloadLink,
this.lockScreenTip,
this.hideInvalidUnlockPermissionsTip,
this.appUnlockRequiresMobilePhoneAccessToTheLockTip,
this.checkAll,
});
LanKeyEntity.fromJson(dynamic json) {
@ -740,6 +746,11 @@ class LanKeyEntity {
and = json['and'];
willBeReplacedWithTheActualValue = json['willBeReplacedWithTheActualValue'];
downloadLink = json['downloadLink'];
lockScreenTip = json['lockScreenTip'];
hideInvalidUnlockPermissionsTip = json['hideInvalidUnlockPermissionsTip'];
appUnlockRequiresMobilePhoneAccessToTheLockTip = json['appUnlockRequiresMobilePhoneAccessToTheLockTip'];
checkAll = json['checkAll'];
}
String? starLock;
String? clickUnlockAndHoldDownClose;
@ -1108,6 +1119,10 @@ class LanKeyEntity {
String? and;
String? willBeReplacedWithTheActualValue;
String? downloadLink;
String? lockScreenTip;
String? hideInvalidUnlockPermissionsTip;
String? appUnlockRequiresMobilePhoneAccessToTheLockTip;
String? checkAll;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
@ -1480,6 +1495,12 @@ class LanKeyEntity {
map['and'] = and;
map['willBeReplacedWithTheActualValue'] = willBeReplacedWithTheActualValue;
map['downloadLink'] = downloadLink;
map['lockScreenTip'] = lockScreenTip;
map['hideInvalidUnlockPermissionsTip'] = hideInvalidUnlockPermissionsTip;
map['appUnlockRequiresMobilePhoneAccessToTheLockTip'] = appUnlockRequiresMobilePhoneAccessToTheLockTip;
map['checkAll'] = checkAll;
return map;
}
}