mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-19 15:45:12 +00:00
i18n: Add translations for importing World Info.
This commit is contained in:
parent
ad4a7742cd
commit
e4f0ce510c
3 changed files with 16 additions and 6 deletions
|
|
@ -1088,6 +1088,11 @@
|
|||
"More...": "更多...",
|
||||
"Link to World Info": "链接到世界书",
|
||||
"Import Card Lore": "导入角色卡的世界书",
|
||||
"This character has an embedded World/Lorebook.": "此角色内置了世界/知识书。",
|
||||
"Would you like to import it now?": "是否现在导入?",
|
||||
"If you want to import it later, select \"Import Card Lore\" in the \"More...\" dropdown menu on the character panel.": "如果想稍后导入,请在角色面板的“更多...”下拉菜单中选择“导入角色卡的世界书”。",
|
||||
"To import and use it, select \"Import Card Lore\" in the \"More...\" dropdown menu on the character panel.": "如需导入并使用,请在角色面板的“更多...”下拉菜单中选择“导入角色卡的世界书”。",
|
||||
"${0} has an embedded World/Lorebook": "${0} 内置了世界/知识书",
|
||||
"Character Settings Overrides": "角色设置覆盖",
|
||||
"Convert to Persona": "转换为用户角色",
|
||||
"Rename": "重命名",
|
||||
|
|
|
|||
|
|
@ -813,6 +813,11 @@
|
|||
"More...": "更多⋯",
|
||||
"Link to World Info": "連結到世界資訊",
|
||||
"Import Card Lore": "匯入角色卡知識書",
|
||||
"This character has an embedded World/Lorebook.": "此角色內建了世界/知識書。",
|
||||
"Would you like to import it now?": "是否現在匯入?",
|
||||
"If you want to import it later, select \"Import Card Lore\" in the \"More...\" dropdown menu on the character panel.": "如果想稍後匯入,請在角色面板的「更多...」下拉選單中選擇「匯入角色卡知識書」。",
|
||||
"To import and use it, select \"Import Card Lore\" in the \"More...\" dropdown menu on the character panel.": "如需匯入並使用,請在角色面板的「更多...」下拉選單中選擇「匯入角色卡知識書」。",
|
||||
"${0} has an embedded World/Lorebook": "${0} 內建了世界/知識書",
|
||||
"Scenario Override": "場景覆寫",
|
||||
"Convert to Persona": "轉換為使用者角色",
|
||||
"Rename": "重新命名",
|
||||
|
|
|
|||
|
|
@ -5706,20 +5706,20 @@ export function checkEmbeddedWorld(chid) {
|
|||
accountStorage.setItem(checkKey, 'true');
|
||||
|
||||
if (power_user.world_import_dialog) {
|
||||
const html = `<h3>This character has an embedded World/Lorebook.</h3>
|
||||
<h3>Would you like to import it now?</h3>
|
||||
<div class="m-b-1">If you want to import it later, select "Import Card Lore" in the "More..." dropdown menu on the character panel.</div>`;
|
||||
const popupHeader = t`This character has an embedded World/Lorebook.`;
|
||||
const popupBody = `<h3>${t`Would you like to import it now?`}</h3>
|
||||
<div class="m-b-1">${t`If you want to import it later, select "Import Card Lore" in the "More..." dropdown menu on the character panel.`}</div>`;
|
||||
const checkResult = (result) => {
|
||||
if (result) {
|
||||
importEmbeddedWorldInfo(true);
|
||||
}
|
||||
};
|
||||
callGenericPopup(html, POPUP_TYPE.CONFIRM, '', { okButton: 'Yes' }).then(checkResult);
|
||||
Popup.show.confirm(popupHeader, popupBody, { okButton: t`Yes` }).then(checkResult);
|
||||
}
|
||||
else {
|
||||
toastr.info(
|
||||
'To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.',
|
||||
`${characters[chid].name} has an embedded World/Lorebook`,
|
||||
t`To import and use it, select "Import Card Lore" in the "More..." dropdown menu on the character panel.`,
|
||||
t`${characters[chid].name} has an embedded World/Lorebook`,
|
||||
{ timeOut: 5000, extendedTimeOut: 10000 },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue