Change translation keys

This commit is contained in:
problematicconsumer
2024-03-08 17:24:43 +03:30
parent 7f0397a97f
commit 4118863a20
20 changed files with 1004 additions and 1005 deletions

View File

@@ -36,19 +36,19 @@ enum ServiceMode {
};
String present(TranslationsEn t) => switch (this) {
proxy => t.settings.config.serviceModes.proxy,
systemProxy => t.settings.config.serviceModes.systemProxy,
proxy => t.config.serviceModes.proxy,
systemProxy => t.config.serviceModes.systemProxy,
tun =>
"${t.settings.config.serviceModes.tun}${isExperimental ? " (${t.settings.experimental})" : ""}",
"${t.config.serviceModes.tun}${isExperimental ? " (${t.settings.experimental})" : ""}",
tunService =>
"${t.settings.config.serviceModes.tunService}${isExperimental ? " (${t.settings.experimental})" : ""}",
"${t.config.serviceModes.tunService}${isExperimental ? " (${t.settings.experimental})" : ""}",
};
String presentShort(TranslationsEn t) => switch (this) {
proxy => t.settings.config.shortServiceModes.proxy,
systemProxy => t.settings.config.shortServiceModes.systemProxy,
tun => t.settings.config.shortServiceModes.tun,
tunService => t.settings.config.shortServiceModes.tunService,
proxy => t.config.shortServiceModes.proxy,
systemProxy => t.config.shortServiceModes.systemProxy,
tun => t.config.shortServiceModes.tun,
tunService => t.config.shortServiceModes.tunService,
};
}
@@ -64,10 +64,10 @@ enum IPv6Mode {
final String key;
String present(TranslationsEn t) => switch (this) {
disable => t.settings.config.ipv6Modes.disable,
enable => t.settings.config.ipv6Modes.enable,
prefer => t.settings.config.ipv6Modes.prefer,
only => t.settings.config.ipv6Modes.only,
disable => t.config.ipv6Modes.disable,
enable => t.config.ipv6Modes.enable,
prefer => t.config.ipv6Modes.prefer,
only => t.config.ipv6Modes.only,
};
}
@@ -111,7 +111,7 @@ enum WarpDetourMode {
final String key;
String present(TranslationsEn t) => switch (this) {
proxyOverWarp => t.settings.config.warpDetourModes.proxyOverWarp,
warpOverProxy => t.settings.config.warpDetourModes.warpOverProxy,
proxyOverWarp => t.config.warpDetourModes.proxyOverWarp,
warpOverProxy => t.config.warpDetourModes.warpOverProxy,
};
}