mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
I18n: Add world name to Calyx dungeons
This commit is contained in:
parent
7eb55c07ec
commit
a10dba465a
@ -370,11 +370,11 @@ class ConfigGenerator:
|
|||||||
dailies = deep_get(self.argument, keys='Dungeon.Name.option')
|
dailies = deep_get(self.argument, keys='Dungeon.Name.option')
|
||||||
# Dungeon names
|
# Dungeon names
|
||||||
i18n_memories = {
|
i18n_memories = {
|
||||||
'cn': '材料:角色经验({dungeon})',
|
'cn': '材料:角色经验({dungeon} {world})',
|
||||||
'cht': '材料:角色經驗({dungeon})',
|
'cht': '材料:角色經驗({dungeon} {world})',
|
||||||
'jp': '素材:役割経験({dungeon}):',
|
'jp': '素材:役割経験({dungeon} {world}):',
|
||||||
'en': 'Material: Character EXP ({dungeon})',
|
'en': 'Material: Character EXP ({dungeon}, {world})',
|
||||||
'es': 'Material: EXP de personaje ({dungeon})',
|
'es': 'Material: EXP de personaje ({dungeon}, {world})',
|
||||||
}
|
}
|
||||||
i18n_aether = {
|
i18n_aether = {
|
||||||
'cn': '材料:武器经验({dungeon})',
|
'cn': '材料:武器经验({dungeon})',
|
||||||
@ -409,15 +409,19 @@ class ConfigGenerator:
|
|||||||
dungeon: DungeonList = dungeon
|
dungeon: DungeonList = dungeon
|
||||||
dungeon_name = dungeon.__getattribute__(ingame_lang)
|
dungeon_name = dungeon.__getattribute__(ingame_lang)
|
||||||
dungeon_name = re.sub('[「」]', '', dungeon_name)
|
dungeon_name = re.sub('[「」]', '', dungeon_name)
|
||||||
|
if dungeon.world:
|
||||||
|
world_name = re.sub('[「」]', '', dungeon.world.__getattribute__(ingame_lang))
|
||||||
|
else:
|
||||||
|
world_name = ''
|
||||||
if dungeon.is_Calyx_Golden_Memories:
|
if dungeon.is_Calyx_Golden_Memories:
|
||||||
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
||||||
value=i18n_memories[ingame_lang].format(dungeon=dungeon_name))
|
value=i18n_memories[ingame_lang].format(dungeon=dungeon_name, world=world_name))
|
||||||
if dungeon.is_Calyx_Golden_Aether:
|
if dungeon.is_Calyx_Golden_Aether:
|
||||||
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
||||||
value=i18n_aether[ingame_lang].format(dungeon=dungeon_name))
|
value=i18n_aether[ingame_lang].format(dungeon=dungeon_name, world=world_name))
|
||||||
if dungeon.is_Calyx_Golden_Treasures:
|
if dungeon.is_Calyx_Golden_Treasures:
|
||||||
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
deep_set(new, keys=['Dungeon', 'Name', dungeon.name],
|
||||||
value=i18n_treasure[ingame_lang].format(dungeon=dungeon_name))
|
value=i18n_treasure[ingame_lang].format(dungeon=dungeon_name, world=world_name))
|
||||||
if dungeon.is_Calyx_Crimson:
|
if dungeon.is_Calyx_Crimson:
|
||||||
plane = dungeon.plane.__getattribute__(ingame_lang)
|
plane = dungeon.plane.__getattribute__(ingame_lang)
|
||||||
plane = re.sub('[「」]', '', plane)
|
plane = re.sub('[「」]', '', plane)
|
||||||
|
@ -238,9 +238,9 @@
|
|||||||
"Name": {
|
"Name": {
|
||||||
"name": "Dungeon Name",
|
"name": "Dungeon Name",
|
||||||
"help": "Default dungeon setting",
|
"help": "Default dungeon setting",
|
||||||
"Calyx_Golden_Memories_Penacony": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_Penacony": "Material: Character EXP (Bud of Memories, Penacony)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: Character EXP (Bud of Memories, The Xianzhou Luofu)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_Jarilo_VI": "Material: Character EXP (Bud of Memories, Jarilo-VI)",
|
||||||
"Calyx_Golden_Aether_Penacony": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_Penacony": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_Jarilo_VI": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
@ -295,9 +295,9 @@
|
|||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "At Double Calyx Event, choose dungeon",
|
"name": "At Double Calyx Event, choose dungeon",
|
||||||
"help": "Return to the default dungeon settings after double times exhausted",
|
"help": "Return to the default dungeon settings after double times exhausted",
|
||||||
"Calyx_Golden_Memories_Penacony": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_Penacony": "Material: Character EXP (Bud of Memories, Penacony)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: Character EXP (Bud of Memories, The Xianzhou Luofu)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "Material: Character EXP (Bud of Memories)",
|
"Calyx_Golden_Memories_Jarilo_VI": "Material: Character EXP (Bud of Memories, Jarilo-VI)",
|
||||||
"Calyx_Golden_Aether_Penacony": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_Penacony": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "Material: Light Cone EXP (Bud of Aether)",
|
"Calyx_Golden_Aether_Jarilo_VI": "Material: Light Cone EXP (Bud of Aether)",
|
||||||
|
@ -238,9 +238,9 @@
|
|||||||
"Name": {
|
"Name": {
|
||||||
"name": "Nombre de la Mazmorra",
|
"name": "Nombre de la Mazmorra",
|
||||||
"help": "Ajustes predeterminados de las mazmorras",
|
"help": "Ajustes predeterminados de las mazmorras",
|
||||||
"Calyx_Golden_Memories_Penacony": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_Penacony": "Material: EXP de personaje (Flor de los recuerdos, Colonipenal)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: EXP de personaje (Flor de los recuerdos, El Luofu de Xianzhou)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_Jarilo_VI": "Material: EXP de personaje (Flor de los recuerdos, Jarilo-VI)",
|
||||||
"Calyx_Golden_Aether_Penacony": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_Penacony": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_Jarilo_VI": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
@ -295,9 +295,9 @@
|
|||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "En los eventos de x2 de Cáliz",
|
"name": "En los eventos de x2 de Cáliz",
|
||||||
"help": "Se volverán a los ajustes predeterminados una vez se acaben los intentos del evento",
|
"help": "Se volverán a los ajustes predeterminados una vez se acaben los intentos del evento",
|
||||||
"Calyx_Golden_Memories_Penacony": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_Penacony": "Material: EXP de personaje (Flor de los recuerdos, Colonipenal)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "Material: EXP de personaje (Flor de los recuerdos, El Luofu de Xianzhou)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "Material: EXP de personaje (Flor de los recuerdos)",
|
"Calyx_Golden_Memories_Jarilo_VI": "Material: EXP de personaje (Flor de los recuerdos, Jarilo-VI)",
|
||||||
"Calyx_Golden_Aether_Penacony": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_Penacony": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "Material: EXP de conos de luz (Flor de éter)",
|
"Calyx_Golden_Aether_Jarilo_VI": "Material: EXP de conos de luz (Flor de éter)",
|
||||||
|
@ -238,9 +238,9 @@
|
|||||||
"Name": {
|
"Name": {
|
||||||
"name": "Dungeon.Name.name",
|
"name": "Dungeon.Name.name",
|
||||||
"help": "Dungeon.Name.help",
|
"help": "Dungeon.Name.help",
|
||||||
"Calyx_Golden_Memories_Penacony": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_Penacony": "素材:役割経験(回憶の蕾 ピノコニー):",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "素材:役割経験(回憶の蕾 仙舟羅浮):",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_Jarilo_VI": "素材:役割経験(回憶の蕾 ヤリーロ-VI):",
|
||||||
"Calyx_Golden_Aether_Penacony": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_Penacony": "素材:武器経験(エーテルの蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "素材:武器経験(エーテルの蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "素材:武器経験(エーテルの蕾)",
|
||||||
@ -295,9 +295,9 @@
|
|||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "Dungeon.NameAtDoubleCalyx.name",
|
"name": "Dungeon.NameAtDoubleCalyx.name",
|
||||||
"help": "Dungeon.NameAtDoubleCalyx.help",
|
"help": "Dungeon.NameAtDoubleCalyx.help",
|
||||||
"Calyx_Golden_Memories_Penacony": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_Penacony": "素材:役割経験(回憶の蕾 ピノコニー):",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "素材:役割経験(回憶の蕾 仙舟羅浮):",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "素材:役割経験(回憶の蕾):",
|
"Calyx_Golden_Memories_Jarilo_VI": "素材:役割経験(回憶の蕾 ヤリーロ-VI):",
|
||||||
"Calyx_Golden_Aether_Penacony": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_Penacony": "素材:武器経験(エーテルの蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "素材:武器経験(エーテルの蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "素材:武器経験(エーテルの蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "素材:武器経験(エーテルの蕾)",
|
||||||
|
@ -238,9 +238,9 @@
|
|||||||
"Name": {
|
"Name": {
|
||||||
"name": "副本名称",
|
"name": "副本名称",
|
||||||
"help": "默认打本设置",
|
"help": "默认打本设置",
|
||||||
"Calyx_Golden_Memories_Penacony": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_Penacony": "材料:角色经验(回忆之蕾 匹诺康尼)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色经验(回忆之蕾 仙舟罗浮)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色经验(回忆之蕾 雅利洛-Ⅵ)",
|
||||||
"Calyx_Golden_Aether_Penacony": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_Penacony": "材料:武器经验(以太之蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器经验(以太之蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器经验(以太之蕾)",
|
||||||
@ -295,9 +295,9 @@
|
|||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "有双倍花活动时,选择副本",
|
"name": "有双倍花活动时,选择副本",
|
||||||
"help": "次数耗尽后回退到默认打本设置",
|
"help": "次数耗尽后回退到默认打本设置",
|
||||||
"Calyx_Golden_Memories_Penacony": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_Penacony": "材料:角色经验(回忆之蕾 匹诺康尼)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色经验(回忆之蕾 仙舟罗浮)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色经验(回忆之蕾)",
|
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色经验(回忆之蕾 雅利洛-Ⅵ)",
|
||||||
"Calyx_Golden_Aether_Penacony": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_Penacony": "材料:武器经验(以太之蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器经验(以太之蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器经验(以太之蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器经验(以太之蕾)",
|
||||||
|
@ -238,9 +238,9 @@
|
|||||||
"Name": {
|
"Name": {
|
||||||
"name": "副本名稱",
|
"name": "副本名稱",
|
||||||
"help": "默認打本設定",
|
"help": "默認打本設定",
|
||||||
"Calyx_Golden_Memories_Penacony": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_Penacony": "材料:角色經驗(回憶之蕾 匹諾康尼)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色經驗(回憶之蕾 仙舟羅浮)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色經驗(回憶之蕾 雅利洛-Ⅵ)",
|
||||||
"Calyx_Golden_Aether_Penacony": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_Penacony": "材料:武器經驗(乙太之蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器經驗(乙太之蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器經驗(乙太之蕾)",
|
||||||
@ -295,9 +295,9 @@
|
|||||||
"NameAtDoubleCalyx": {
|
"NameAtDoubleCalyx": {
|
||||||
"name": "有雙倍花活動時,選擇副本",
|
"name": "有雙倍花活動時,選擇副本",
|
||||||
"help": "次數耗儘後回退到默認打本設定",
|
"help": "次數耗儘後回退到默認打本設定",
|
||||||
"Calyx_Golden_Memories_Penacony": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_Penacony": "材料:角色經驗(回憶之蕾 匹諾康尼)",
|
||||||
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_The_Xianzhou_Luofu": "材料:角色經驗(回憶之蕾 仙舟羅浮)",
|
||||||
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色經驗(回憶之蕾)",
|
"Calyx_Golden_Memories_Jarilo_VI": "材料:角色經驗(回憶之蕾 雅利洛-Ⅵ)",
|
||||||
"Calyx_Golden_Aether_Penacony": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_Penacony": "材料:武器經驗(乙太之蕾)",
|
||||||
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_The_Xianzhou_Luofu": "材料:武器經驗(乙太之蕾)",
|
||||||
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器經驗(乙太之蕾)",
|
"Calyx_Golden_Aether_Jarilo_VI": "材料:武器經驗(乙太之蕾)",
|
||||||
|
Loading…
Reference in New Issue
Block a user