多语言

This commit is contained in:
czz
2025-07-30 16:48:48 +08:00
parent 92b6896176
commit 300e3b31f6
96 changed files with 3741 additions and 2710 deletions

View File

@@ -56,7 +56,7 @@ void showBindDoubleDialog(
padding:
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
child: Text(
'蓝牙绑定.双人版绑定标题'.tr,
'双人版绑定标题'.tr,
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
@@ -69,7 +69,7 @@ void showBindDoubleDialog(
// 全选
_buildCheckboxRow(
context,
title: '蓝牙绑定.绑定全部'.tr,
title: '绑定全部'.tr,
value: () => blueteethBindController.model.deviceIndex0!,
onChanged: (v) {
if (!blueteethBindController.model.deviceIndex0!) {
@@ -83,7 +83,7 @@ void showBindDoubleDialog(
// 主设备
_buildCheckboxRow(
context,
title: '蓝牙绑定.主设备'.tr +
title: '主设备'.tr +
"${devices[0].mac}" +
(devices[0].bind == false ? "可绑定".tr : "已被绑定".tr),
value: () => blueteethBindController.model.deviceIndex1!,
@@ -99,7 +99,7 @@ void showBindDoubleDialog(
// 从设备
_buildCheckboxRow(
context,
title: '蓝牙绑定.从设备'.tr +
title: '从设备'.tr +
"${devices[1].mac}" +
(devices[1].bind == false ? "可绑定".tr : "已被绑定".tr),
value: () => blueteethBindController.model.deviceIndex2!,
@@ -119,7 +119,7 @@ void showBindDoubleDialog(
60.rpx, 100.rpx, 60.rpx, 0),
child: _buildActionButton(
context,
text: '蓝牙绑定.确定'.tr,
text: '确定'.tr,
onTap: () {
Get.back();
@@ -140,7 +140,7 @@ void showBindDoubleDialog(
60.rpx, 19.rpx, 60.rpx, 60.rpx),
child: _buildActionButton(
context,
text: '蓝牙绑定.取消'.tr,
text: '取消'.tr,
onTap: () {
Get.back();
onCancel();
@@ -186,7 +186,7 @@ Future<void> showHaveBindDialog(BuildContext context) async {
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 93.rpx, 0.rpx, 0.rpx),
child: Text(
'蓝牙绑定.无法绑定'.tr,
'无法绑定'.tr,
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
@@ -202,21 +202,21 @@ Future<void> showHaveBindDialog(BuildContext context) async {
child: RichText(
text: TextSpan(children: [
TextSpan(
text: "蓝牙绑定.无法绑定1".tr,
text: "无法绑定1".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontSize: AppConstants().normal_text_fontSize,
),
),
TextSpan(
text: "蓝牙绑定.无法绑定2".tr,
text: "无法绑定2".tr,
style: TextStyle(
color: themeController.currentColor.sc8,
fontSize: AppConstants().normal_text_fontSize,
),
),
TextSpan(
text: "蓝牙绑定.无法绑定3".tr,
text: "无法绑定3".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontSize: AppConstants().normal_text_fontSize,
@@ -248,7 +248,7 @@ Future<void> showHaveBindDialog(BuildContext context) async {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'蓝牙绑定.知道了'.tr,
'知道了'.tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
@@ -301,7 +301,7 @@ void showLoadingDialog(BuildContext context, {String? title}) {
// padding: EdgeInsetsDirectional.fromSTEB(
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
// child: Text(
// '蓝牙绑定.无法绑定'.tr,
// '无法绑定'.tr,
// style: TextStyle(
// fontFamily: 'Inter',
// fontSize: 30.rpx,
@@ -428,7 +428,7 @@ Widget _buildActionButton(
return CustomCard(
borderRadius: AppConstants().button_container_radius,
onTap: onTap,
colors: '蓝牙绑定.确定'.tr == text
colors: '确定'.tr == text
? [
themeController.currentColor.sc1,
themeController.currentColor.sc2,
@@ -441,7 +441,7 @@ Widget _buildActionButton(
minWidth: 500.rpx,
minHeight: 90.rpx,
),
decoration: '蓝牙绑定.确定'.tr == text
decoration: '确定'.tr == text
? BoxDecoration()
: BoxDecoration(
border: Border.all(
@@ -579,7 +579,7 @@ void showConfirmDialog(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"蓝牙绑定.".tr,
"".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
@@ -615,7 +615,7 @@ void showConfirmDialog(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"蓝牙绑定.".tr,
"".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
@@ -890,7 +890,7 @@ void showWifiDialog(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
"蓝牙绑定.连接".tr,
"连接".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
@@ -978,7 +978,7 @@ Future<void> showTipDialog(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'蓝牙绑定.知道了'.tr,
'知道了'.tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
@@ -1171,14 +1171,14 @@ Future<void> showUnbindConfirmDialog({
style: TextStyle(fontSize: 26.rpx, color: Colors.black87),
children: [
TextSpan(
text: '该设备只可被一个用户绑定,',
text: '该设备只可被一个用户绑定,'.tr,
style: TextStyle(fontSize: 26.rpx)),
TextSpan(
text: '解绑后',
text: '解绑后'.tr,
style: TextStyle(color: Colors.red, fontSize: 26.rpx),
),
TextSpan(
text: '其他用户才可以绑定',
text: '其他用户才可以绑定'.tr,
style: TextStyle(fontSize: 26.rpx)),
],
),
@@ -1204,7 +1204,7 @@ Future<void> showUnbindConfirmDialog({
height: 90.rpx,
alignment: Alignment.center,
child: Text(
'取消',
'取消'.tr,
style: TextStyle(
fontSize: 26.rpx, color: Colors.white),
),
@@ -1225,7 +1225,7 @@ Future<void> showUnbindConfirmDialog({
height: 90.rpx,
alignment: Alignment.center,
child: Text(
'解绑',
'解绑'.tr,
style: TextStyle(
fontSize: 26.rpx, color: Colors.white),
),