diff --git a/src/i18n/en.json b/src/i18n/en.json index 661f7b7..332b6d8 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -26,15 +26,13 @@ "template.settingsModal.display.panelPositionOptions.right": "Right Sidebar", "template.settingsModal.display.panelPositionOptions.left": "Left Sidebar", "template.settingsModal.display.toggleAutoUpdate": "Auto-update after messages", - "template.settingsModal.display.showUserStats": "Show User Stats", + "template.settingsModal.display.toggleAutoUpdateNote": "Automatically refresh RPG info after each message.", "template.settingsModal.display.showUserStats": "Show User Stats", "template.settingsModal.display.showUserStatsNote": "Enable User Stats that track your persona's statistics, mood, attributes, skills, etc.", "template.settingsModal.display.showInfoBox": "Show Info Box", "template.settingsModal.display.showInfoBoxNote": "Display location, time, weather, and recent events.", "template.settingsModal.display.showPresentCharacters": "Show Present Characters", "template.settingsModal.display.showPresentCharactersNote": "Display character portraits with their current thoughts and status.", - "template.settingsModal.display.toggleAutoUpdate": "Auto-update after messages", - "template.settingsModal.display.toggleAutoUpdateNote": "Automatically refresh RPG info after each message.", "template.settingsModal.display.narratorMode": "Narrator Mode", "template.settingsModal.display.narratorModeNote": "Use character card as narrator. Infer characters from context instead of using fixed character references.", "template.settingsModal.display.showInventory": "Show Inventory", diff --git a/src/systems/ui/promptsEditor.js b/src/systems/ui/promptsEditor.js index 6cbb407..133314a 100644 --- a/src/systems/ui/promptsEditor.js +++ b/src/systems/ui/promptsEditor.js @@ -46,7 +46,7 @@ export function initPromptsEditor() { $(document).on('click', '#rpg-prompts-save', function() { savePrompts(); closePromptsEditor(); - toastr.success('Prompts saved successfully'); + toastr.success('Prompts saved successfully.'); }); // Cancel button @@ -62,14 +62,14 @@ export function initPromptsEditor() { // Restore All button $(document).on('click', '#rpg-prompts-restore-all', function() { restoreAllToDefaults(); - toastr.success('All prompts restored to defaults'); + toastr.success('All prompts restored to defaults.'); }); // Individual restore buttons $(document).on('click', '.rpg-restore-prompt-btn', function() { const promptType = $(this).data('prompt'); restorePromptToDefault(promptType); - toastr.success('Prompt restored to default'); + toastr.success('Prompt restored to default.'); }); // Close on background click diff --git a/src/systems/ui/trackerEditor.js b/src/systems/ui/trackerEditor.js index 1c39fd6..8c6379f 100644 --- a/src/systems/ui/trackerEditor.js +++ b/src/systems/ui/trackerEditor.js @@ -113,7 +113,7 @@ export function initTrackerEditor() { tempConfig = JSON.parse(JSON.stringify(extensionSettings.trackerConfig)); renderEditorUI(); updatePresetUI(); - toastr.success(`Switched to preset "${getPreset(presetId)?.name || 'Unknown'}"`); + toastr.success(`Switched to preset "${getPreset(presetId)?.name || 'Unknown'}".`); } } }); @@ -125,7 +125,7 @@ export function initTrackerEditor() { const newId = createPreset(name.trim()); updatePresetUI(); $('#rpg-preset-select').val(newId); - toastr.success(`Created preset "${name.trim()}"`); + toastr.success(`Created preset "${name.trim()}".`); } }); @@ -136,7 +136,7 @@ export function initTrackerEditor() { setDefaultPreset(currentPresetId); updatePresetUI(); const preset = getPreset(currentPresetId); - toastr.success(`"${preset?.name || 'Unknown'}" is now the default preset`); + toastr.success(`"${preset?.name || 'Unknown'}" is now the default preset.`); } }); @@ -145,7 +145,7 @@ export function initTrackerEditor() { const currentPresetId = getActivePresetId(); const presets = getPresets(); if (Object.keys(presets).length <= 1) { - toastr.warning('Cannot delete the last preset'); + toastr.warning('Cannot delete the last preset.'); return; } const preset = getPreset(currentPresetId); @@ -154,7 +154,7 @@ export function initTrackerEditor() { tempConfig = JSON.parse(JSON.stringify(extensionSettings.trackerConfig)); renderEditorUI(); updatePresetUI(); - toastr.success('Preset deleted'); + toastr.success('Preset deleted.'); } } }); @@ -163,10 +163,10 @@ export function initTrackerEditor() { $(document).on('change', '#rpg-preset-associate', function() { if ($(this).is(':checked')) { associatePresetWithCurrentEntity(); - toastr.info(`This preset will be used for ${getCurrentEntityName()}`); + toastr.info(`This preset will be used for ${getCurrentEntityName()}.`); } else { removePresetAssociationForCurrentEntity(); - toastr.info(`Preset association removed for ${getCurrentEntityName()}`); + toastr.info(`Preset association removed for ${getCurrentEntityName()}.`); } }); } @@ -518,7 +518,7 @@ function showImportModeDialog(migratedConfig, suggestedName) { // Re-render the editor UI renderEditorUI(); - toastr.success('Configuration applied to current preset!'); + toastr.success('Configuration applied to current preset.'); }); // Import as new preset @@ -539,7 +539,7 @@ function showImportModeDialog(migratedConfig, suggestedName) { loadPreset(newPresetId); renderEditorUI(); updatePresetUI(); - toastr.success(`Created new preset: ${presetName}`); + toastr.success(`Created new preset: ${presetName}.`); } });