mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 07:43:42 +08:00
feat: AdvancedLocalizationUI Error Message
This commit is contained in:
parent
0920696444
commit
b965c6262f
@ -634,6 +634,12 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||||||
MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"Localization has a new version!"),
|
"Localization has a new version!"),
|
||||||
"home_localization_new_version_installed": m34,
|
"home_localization_new_version_installed": m34,
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title":
|
||||||
|
MessageLookupByLibrary.simpleMessage(
|
||||||
|
"Recommended advanced localization"),
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title_info":
|
||||||
|
MessageLookupByLibrary.simpleMessage(
|
||||||
|
"On PTU/EPTU and other test channels, the current localization text text may not be synchronized with the game, and the use of advanced localization can reduce garbled production."),
|
||||||
"home_localization_select_customize_file":
|
"home_localization_select_customize_file":
|
||||||
MessageLookupByLibrary.simpleMessage(
|
MessageLookupByLibrary.simpleMessage(
|
||||||
"Please select custom Localization file"),
|
"Please select custom Localization file"),
|
||||||
|
@ -571,6 +571,11 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||||||
"home_localization_new_version_available":
|
"home_localization_new_version_available":
|
||||||
MessageLookupByLibrary.simpleMessage("汉化有新版本!"),
|
MessageLookupByLibrary.simpleMessage("汉化有新版本!"),
|
||||||
"home_localization_new_version_installed": m34,
|
"home_localization_new_version_installed": m34,
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title":
|
||||||
|
MessageLookupByLibrary.simpleMessage("推荐使用高级汉化"),
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title_info":
|
||||||
|
MessageLookupByLibrary.simpleMessage(
|
||||||
|
"在 PTU/EPTU 等测试频道 ,当前汉化文本可能与游戏不同步,使用高级汉化可以减少乱码产生。"),
|
||||||
"home_localization_select_customize_file":
|
"home_localization_select_customize_file":
|
||||||
MessageLookupByLibrary.simpleMessage("请选择自定义汉化文件"),
|
MessageLookupByLibrary.simpleMessage("请选择自定义汉化文件"),
|
||||||
"home_localization_select_customize_file_ini":
|
"home_localization_select_customize_file_ini":
|
||||||
|
@ -4783,6 +4783,26 @@ class S {
|
|||||||
args: [],
|
args: [],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// `Recommended advanced localization`
|
||||||
|
String get home_localization_ptu_advanced_localization_tip_title {
|
||||||
|
return Intl.message(
|
||||||
|
'Recommended advanced localization',
|
||||||
|
name: 'home_localization_ptu_advanced_localization_tip_title',
|
||||||
|
desc: '',
|
||||||
|
args: [],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// `On PTU/EPTU and other test channels, the current localization text text may not be synchronized with the game, and the use of advanced localization can reduce garbled production.`
|
||||||
|
String get home_localization_ptu_advanced_localization_tip_title_info {
|
||||||
|
return Intl.message(
|
||||||
|
'On PTU/EPTU and other test channels, the current localization text text may not be synchronized with the game, and the use of advanced localization can reduce garbled production.',
|
||||||
|
name: 'home_localization_ptu_advanced_localization_tip_title_info',
|
||||||
|
desc: '',
|
||||||
|
args: [],
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||||
|
@ -823,5 +823,7 @@
|
|||||||
"tools_unp4k_msg_unknown_file_type": "Unknown file type\n{v0}",
|
"tools_unp4k_msg_unknown_file_type": "Unknown file type\n{v0}",
|
||||||
"home_localization_select_customize_file_ini": "Please select INI file",
|
"home_localization_select_customize_file_ini": "Please select INI file",
|
||||||
"home_localization_select_customize_file": "Please select custom Localization file",
|
"home_localization_select_customize_file": "Please select custom Localization file",
|
||||||
"home_localization_action_select_customize_file": "Click to select INI file"
|
"home_localization_action_select_customize_file": "Click to select INI file",
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title": "Recommended advanced localization",
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title_info": "On PTU/EPTU and other test channels, the current localization text text may not be synchronized with the game, and the use of advanced localization can reduce garbled production."
|
||||||
}
|
}
|
@ -789,5 +789,7 @@
|
|||||||
"tools_unp4k_msg_unknown_file_type": "未知文件类型\n{v0}",
|
"tools_unp4k_msg_unknown_file_type": "未知文件类型\n{v0}",
|
||||||
"home_localization_select_customize_file_ini": "请选择 ini 文件",
|
"home_localization_select_customize_file_ini": "请选择 ini 文件",
|
||||||
"home_localization_select_customize_file": "请选择自定义汉化文件",
|
"home_localization_select_customize_file": "请选择自定义汉化文件",
|
||||||
"home_localization_action_select_customize_file": "点击选择 ini 文件"
|
"home_localization_action_select_customize_file": "点击选择 ini 文件",
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title": "推荐使用高级汉化",
|
||||||
|
"home_localization_ptu_advanced_localization_tip_title_info": "在 PTU/EPTU 等测试频道 ,当前汉化文本可能与游戏不同步,使用高级汉化可以减少乱码产生。"
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ part of 'unp4kc.dart';
|
|||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$unp4kCModelHash() => r'24f5043f687a5f652a0741b8e6f4a3855fca0101';
|
String _$unp4kCModelHash() => r'23b148d557f55aa6050f1b1e38a3465d22a09034';
|
||||||
|
|
||||||
/// See also [Unp4kCModel].
|
/// See also [Unp4kCModel].
|
||||||
@ProviderFor(Unp4kCModel)
|
@ProviderFor(Unp4kCModel)
|
||||||
|
@ -50,57 +50,68 @@ class AdvancedLocalizationUI extends HookConsumerWidget {
|
|||||||
)
|
)
|
||||||
: Column(
|
: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
if (state.errorMessage.isNotEmpty)
|
||||||
children: [
|
Padding(
|
||||||
const SizedBox(width: 12),
|
padding: const EdgeInsets.all(32),
|
||||||
Expanded(
|
child: Center(
|
||||||
child: Row(
|
child: Text(state.errorMessage),
|
||||||
children: [
|
),
|
||||||
Text(
|
)
|
||||||
S.current.home_localization_advanced_msg_version(
|
else ...[
|
||||||
state.apiLocalizationData?.versionName ?? "-"),
|
Row(
|
||||||
),
|
children: [
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Button(
|
Expanded(
|
||||||
onPressed: onSwitchFile,
|
child: Row(
|
||||||
child: const Padding(
|
children: [
|
||||||
padding: EdgeInsets.symmetric(
|
Text(
|
||||||
horizontal: 6, vertical: 3),
|
S.current.home_localization_advanced_msg_version(
|
||||||
child: Icon(FluentIcons.switch_widget),
|
state.apiLocalizationData?.versionName ??
|
||||||
)),
|
"-"),
|
||||||
if (state.customizeGlobalIni != null) ...[
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Button(
|
Button(
|
||||||
onPressed: () {
|
onPressed: onSwitchFile,
|
||||||
model.setCustomizeGlobalIni(null);
|
|
||||||
},
|
|
||||||
child: const Padding(
|
child: const Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: EdgeInsets.symmetric(
|
||||||
horizontal: 6, vertical: 3),
|
horizontal: 6, vertical: 3),
|
||||||
child: Icon(FluentIcons.delete),
|
child: Icon(FluentIcons.switch_widget),
|
||||||
)),
|
)),
|
||||||
]
|
if (state.customizeGlobalIni != null) ...[
|
||||||
],
|
const SizedBox(width: 12),
|
||||||
)),
|
Button(
|
||||||
Text(S.current.home_localization_advanced_title_msg(
|
onPressed: () {
|
||||||
state.serverGlobalIniLines, state.p4kGlobalIniLines)),
|
model.setCustomizeGlobalIni(null);
|
||||||
const SizedBox(width: 32),
|
},
|
||||||
Button(
|
child: const Padding(
|
||||||
child: Padding(
|
padding: EdgeInsets.symmetric(
|
||||||
padding: const EdgeInsets.only(
|
horizontal: 6, vertical: 3),
|
||||||
left: 12, right: 12, top: 4, bottom: 4),
|
child: Icon(FluentIcons.delete),
|
||||||
child: Text(S.current
|
)),
|
||||||
.home_localization_advanced_action_install),
|
]
|
||||||
),
|
],
|
||||||
onPressed: () async {
|
)),
|
||||||
await model.doInstall().unwrap(context: context);
|
Text(S.current.home_localization_advanced_title_msg(
|
||||||
}),
|
state.serverGlobalIniLines,
|
||||||
const SizedBox(width: 12),
|
state.p4kGlobalIniLines)),
|
||||||
],
|
const SizedBox(width: 32),
|
||||||
),
|
Button(
|
||||||
Expanded(
|
child: Padding(
|
||||||
child:
|
padding: const EdgeInsets.only(
|
||||||
_makeBody(context, homeUIState, state, ref, model)),
|
left: 12, right: 12, top: 4, bottom: 4),
|
||||||
|
child: Text(S.current
|
||||||
|
.home_localization_advanced_action_install),
|
||||||
|
),
|
||||||
|
onPressed: () async {
|
||||||
|
await model.doInstall().unwrap(context: context);
|
||||||
|
}),
|
||||||
|
const SizedBox(width: 12),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child:
|
||||||
|
_makeBody(context, homeUIState, state, ref, model)),
|
||||||
|
]
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ class AdvancedLocalizationUIState with _$AdvancedLocalizationUIState {
|
|||||||
ScLocalizationData? apiLocalizationData,
|
ScLocalizationData? apiLocalizationData,
|
||||||
@Default(0) int p4kGlobalIniLines,
|
@Default(0) int p4kGlobalIniLines,
|
||||||
@Default(0) int serverGlobalIniLines,
|
@Default(0) int serverGlobalIniLines,
|
||||||
|
@Default("") String errorMessage,
|
||||||
}) = _AdvancedLocalizationUIState;
|
}) = _AdvancedLocalizationUIState;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,23 +216,29 @@ class AdvancedLocalizationUIModel extends _$AdvancedLocalizationUIModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<String> readEnglishInI(String gameDir) async {
|
Future<String> readEnglishInI(String gameDir) async {
|
||||||
var data = await Unp4kCModel.unp4kTools(
|
try {
|
||||||
appGlobalState.applicationBinaryModuleDir!, [
|
var data = await Unp4kCModel.unp4kTools(
|
||||||
"extract_memory",
|
appGlobalState.applicationBinaryModuleDir!, [
|
||||||
"$gameDir\\Data.p4k",
|
"extract_memory",
|
||||||
"Data\\Localization\\english\\global.ini"
|
"$gameDir\\Data.p4k",
|
||||||
]);
|
"Data\\Localization\\english\\global.ini"
|
||||||
|
]);
|
||||||
// remove bom
|
// remove bom
|
||||||
if (data.length > 3 &&
|
if (data.length > 3 &&
|
||||||
data[0] == 0xEF &&
|
data[0] == 0xEF &&
|
||||||
data[1] == 0xBB &&
|
data[1] == 0xBB &&
|
||||||
data[2] == 0xBF) {
|
data[2] == 0xBF) {
|
||||||
data = data.sublist(3);
|
data = data.sublist(3);
|
||||||
|
}
|
||||||
|
final iniData = String.fromCharCodes(data);
|
||||||
|
return iniData;
|
||||||
|
} catch (e) {
|
||||||
|
state = state.copyWith(
|
||||||
|
errorMessage: e.toString(),
|
||||||
|
);
|
||||||
|
// rethrow;
|
||||||
}
|
}
|
||||||
|
return "";
|
||||||
final iniData = String.fromCharCodes(data);
|
|
||||||
return iniData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onChangeMod(AppAdvancedLocalizationClassKeysData item,
|
onChangeMod(AppAdvancedLocalizationClassKeysData item,
|
||||||
|
@ -26,6 +26,7 @@ mixin _$AdvancedLocalizationUIState {
|
|||||||
throw _privateConstructorUsedError;
|
throw _privateConstructorUsedError;
|
||||||
int get p4kGlobalIniLines => throw _privateConstructorUsedError;
|
int get p4kGlobalIniLines => throw _privateConstructorUsedError;
|
||||||
int get serverGlobalIniLines => throw _privateConstructorUsedError;
|
int get serverGlobalIniLines => throw _privateConstructorUsedError;
|
||||||
|
String get errorMessage => throw _privateConstructorUsedError;
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState>
|
$AdvancedLocalizationUIStateCopyWith<AdvancedLocalizationUIState>
|
||||||
@ -48,7 +49,8 @@ abstract class $AdvancedLocalizationUIStateCopyWith<$Res> {
|
|||||||
String? customizeGlobalIni,
|
String? customizeGlobalIni,
|
||||||
ScLocalizationData? apiLocalizationData,
|
ScLocalizationData? apiLocalizationData,
|
||||||
int p4kGlobalIniLines,
|
int p4kGlobalIniLines,
|
||||||
int serverGlobalIniLines});
|
int serverGlobalIniLines,
|
||||||
|
String errorMessage});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @nodoc
|
/// @nodoc
|
||||||
@ -73,6 +75,7 @@ class _$AdvancedLocalizationUIStateCopyWithImpl<$Res,
|
|||||||
Object? apiLocalizationData = freezed,
|
Object? apiLocalizationData = freezed,
|
||||||
Object? p4kGlobalIniLines = null,
|
Object? p4kGlobalIniLines = null,
|
||||||
Object? serverGlobalIniLines = null,
|
Object? serverGlobalIniLines = null,
|
||||||
|
Object? errorMessage = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_value.copyWith(
|
return _then(_value.copyWith(
|
||||||
workingText: null == workingText
|
workingText: null == workingText
|
||||||
@ -107,6 +110,10 @@ class _$AdvancedLocalizationUIStateCopyWithImpl<$Res,
|
|||||||
? _value.serverGlobalIniLines
|
? _value.serverGlobalIniLines
|
||||||
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||||
as int,
|
as int,
|
||||||
|
errorMessage: null == errorMessage
|
||||||
|
? _value.errorMessage
|
||||||
|
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||||
|
as String,
|
||||||
) as $Val);
|
) as $Val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -128,7 +135,8 @@ abstract class _$$AdvancedLocalizationUIStateImplCopyWith<$Res>
|
|||||||
String? customizeGlobalIni,
|
String? customizeGlobalIni,
|
||||||
ScLocalizationData? apiLocalizationData,
|
ScLocalizationData? apiLocalizationData,
|
||||||
int p4kGlobalIniLines,
|
int p4kGlobalIniLines,
|
||||||
int serverGlobalIniLines});
|
int serverGlobalIniLines,
|
||||||
|
String errorMessage});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @nodoc
|
/// @nodoc
|
||||||
@ -152,6 +160,7 @@ class __$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>
|
|||||||
Object? apiLocalizationData = freezed,
|
Object? apiLocalizationData = freezed,
|
||||||
Object? p4kGlobalIniLines = null,
|
Object? p4kGlobalIniLines = null,
|
||||||
Object? serverGlobalIniLines = null,
|
Object? serverGlobalIniLines = null,
|
||||||
|
Object? errorMessage = null,
|
||||||
}) {
|
}) {
|
||||||
return _then(_$AdvancedLocalizationUIStateImpl(
|
return _then(_$AdvancedLocalizationUIStateImpl(
|
||||||
workingText: null == workingText
|
workingText: null == workingText
|
||||||
@ -186,6 +195,10 @@ class __$$AdvancedLocalizationUIStateImplCopyWithImpl<$Res>
|
|||||||
? _value.serverGlobalIniLines
|
? _value.serverGlobalIniLines
|
||||||
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
: serverGlobalIniLines // ignore: cast_nullable_to_non_nullable
|
||||||
as int,
|
as int,
|
||||||
|
errorMessage: null == errorMessage
|
||||||
|
? _value.errorMessage
|
||||||
|
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||||
|
as String,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -203,7 +216,8 @@ class _$AdvancedLocalizationUIStateImpl
|
|||||||
this.customizeGlobalIni,
|
this.customizeGlobalIni,
|
||||||
this.apiLocalizationData,
|
this.apiLocalizationData,
|
||||||
this.p4kGlobalIniLines = 0,
|
this.p4kGlobalIniLines = 0,
|
||||||
this.serverGlobalIniLines = 0})
|
this.serverGlobalIniLines = 0,
|
||||||
|
this.errorMessage = ""})
|
||||||
: _classMap = classMap;
|
: _classMap = classMap;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -233,10 +247,13 @@ class _$AdvancedLocalizationUIStateImpl
|
|||||||
@override
|
@override
|
||||||
@JsonKey()
|
@JsonKey()
|
||||||
final int serverGlobalIniLines;
|
final int serverGlobalIniLines;
|
||||||
|
@override
|
||||||
|
@JsonKey()
|
||||||
|
final String errorMessage;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
|
||||||
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines)';
|
return 'AdvancedLocalizationUIState(workingText: $workingText, classMap: $classMap, p4kGlobalIni: $p4kGlobalIni, serverGlobalIni: $serverGlobalIni, customizeGlobalIni: $customizeGlobalIni, apiLocalizationData: $apiLocalizationData, p4kGlobalIniLines: $p4kGlobalIniLines, serverGlobalIniLines: $serverGlobalIniLines, errorMessage: $errorMessage)';
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -251,7 +268,8 @@ class _$AdvancedLocalizationUIStateImpl
|
|||||||
..add(DiagnosticsProperty('customizeGlobalIni', customizeGlobalIni))
|
..add(DiagnosticsProperty('customizeGlobalIni', customizeGlobalIni))
|
||||||
..add(DiagnosticsProperty('apiLocalizationData', apiLocalizationData))
|
..add(DiagnosticsProperty('apiLocalizationData', apiLocalizationData))
|
||||||
..add(DiagnosticsProperty('p4kGlobalIniLines', p4kGlobalIniLines))
|
..add(DiagnosticsProperty('p4kGlobalIniLines', p4kGlobalIniLines))
|
||||||
..add(DiagnosticsProperty('serverGlobalIniLines', serverGlobalIniLines));
|
..add(DiagnosticsProperty('serverGlobalIniLines', serverGlobalIniLines))
|
||||||
|
..add(DiagnosticsProperty('errorMessage', errorMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -273,7 +291,9 @@ class _$AdvancedLocalizationUIStateImpl
|
|||||||
(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) ||
|
(identical(other.p4kGlobalIniLines, p4kGlobalIniLines) ||
|
||||||
other.p4kGlobalIniLines == p4kGlobalIniLines) &&
|
other.p4kGlobalIniLines == p4kGlobalIniLines) &&
|
||||||
(identical(other.serverGlobalIniLines, serverGlobalIniLines) ||
|
(identical(other.serverGlobalIniLines, serverGlobalIniLines) ||
|
||||||
other.serverGlobalIniLines == serverGlobalIniLines));
|
other.serverGlobalIniLines == serverGlobalIniLines) &&
|
||||||
|
(identical(other.errorMessage, errorMessage) ||
|
||||||
|
other.errorMessage == errorMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -286,7 +306,8 @@ class _$AdvancedLocalizationUIStateImpl
|
|||||||
customizeGlobalIni,
|
customizeGlobalIni,
|
||||||
apiLocalizationData,
|
apiLocalizationData,
|
||||||
p4kGlobalIniLines,
|
p4kGlobalIniLines,
|
||||||
serverGlobalIniLines);
|
serverGlobalIniLines,
|
||||||
|
errorMessage);
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
@override
|
@override
|
||||||
@ -306,7 +327,8 @@ abstract class _AdvancedLocalizationUIState
|
|||||||
final String? customizeGlobalIni,
|
final String? customizeGlobalIni,
|
||||||
final ScLocalizationData? apiLocalizationData,
|
final ScLocalizationData? apiLocalizationData,
|
||||||
final int p4kGlobalIniLines,
|
final int p4kGlobalIniLines,
|
||||||
final int serverGlobalIniLines}) = _$AdvancedLocalizationUIStateImpl;
|
final int serverGlobalIniLines,
|
||||||
|
final String errorMessage}) = _$AdvancedLocalizationUIStateImpl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get workingText;
|
String get workingText;
|
||||||
@ -325,6 +347,8 @@ abstract class _AdvancedLocalizationUIState
|
|||||||
@override
|
@override
|
||||||
int get serverGlobalIniLines;
|
int get serverGlobalIniLines;
|
||||||
@override
|
@override
|
||||||
|
String get errorMessage;
|
||||||
|
@override
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
_$$AdvancedLocalizationUIStateImplCopyWith<_$AdvancedLocalizationUIStateImpl>
|
_$$AdvancedLocalizationUIStateImplCopyWith<_$AdvancedLocalizationUIStateImpl>
|
||||||
get copyWith => throw _privateConstructorUsedError;
|
get copyWith => throw _privateConstructorUsedError;
|
||||||
|
@ -7,7 +7,7 @@ part of 'advanced_localization_ui_model.dart';
|
|||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$advancedLocalizationUIModelHash() =>
|
String _$advancedLocalizationUIModelHash() =>
|
||||||
r'9acfe6624ebce488a8fd0ed13b84d8b4faab058c';
|
r'4e1fc9193a85a06ba11a249d6cc00d79306d2532';
|
||||||
|
|
||||||
/// See also [AdvancedLocalizationUIModel].
|
/// See also [AdvancedLocalizationUIModel].
|
||||||
@ProviderFor(AdvancedLocalizationUIModel)
|
@ProviderFor(AdvancedLocalizationUIModel)
|
||||||
|
@ -61,6 +61,22 @@ class LocalizationDialogUI extends HookConsumerWidget {
|
|||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (!(model.getScInstallPath() ?? "").contains("LIVE"))
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(bottom: 12),
|
||||||
|
child: InfoBar(
|
||||||
|
title: Text(S.current
|
||||||
|
.home_localization_ptu_advanced_localization_tip_title),
|
||||||
|
content: Text(S.current
|
||||||
|
.home_localization_ptu_advanced_localization_tip_title_info),
|
||||||
|
severity: InfoBarSeverity.info,
|
||||||
|
style: InfoBarThemeData(decoration: (severity) {
|
||||||
|
return BoxDecoration(color: Colors.orange);
|
||||||
|
}, iconColor: (severity) {
|
||||||
|
return Colors.white;
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
),
|
||||||
makeListContainer(
|
makeListContainer(
|
||||||
S.current.localization_info_translation_status,
|
S.current.localization_info_translation_status,
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user