added data-i18n tags

+updated and added data-i18n tags
This commit is contained in:
deffcolony 2024-03-15 00:35:21 +01:00
parent 51f959c06b
commit 2db2e2d687
3 changed files with 39 additions and 35 deletions

View File

@ -445,7 +445,7 @@
</div> </div>
<hr> <hr>
<div class="range-block"> <div class="range-block">
<label for="stream_toggle" title="Enable OpenAI completion streaming" class="checkbox_label widthFreeExpand"> <label for="stream_toggle" title="Enable OpenAI completion streaming" data-i18n="[title]Enable OpenAI completion streaming" class="checkbox_label widthFreeExpand">
<input id="stream_toggle" type="checkbox" /><span data-i18n="Streaming"> <input id="stream_toggle" type="checkbox" /><span data-i18n="Streaming">
Streaming</span> Streaming</span>
</label> </label>
@ -577,7 +577,7 @@
</div> </div>
<div class="inline-drawer m-t-1 wide100p"> <div class="inline-drawer m-t-1 wide100p">
<div class="inline-drawer-toggle inline-drawer-header"> <div class="inline-drawer-toggle inline-drawer-header">
<b data-i18n="Quick Edit">Quick Prompts Edit</b> <b data-i18n="Quick Prompts Edit">Quick Prompts Edit</b>
<div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div> <div class="fa-solid fa-circle-chevron-down inline-drawer-icon down"></div>
</div> </div>
<div class="inline-drawer-content"> <div class="inline-drawer-content">
@ -1239,7 +1239,7 @@
<div data-newbie-hidden data-tg-type="ooba" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0"> <div data-newbie-hidden data-tg-type="ooba" class="alignitemscenter flex-container flexFlowColumn flexBasis48p flexGrow flexShrink gap0">
<small> <small>
<span data-i18n="Eta Cutoff">Eta Cutoff</span> <span data-i18n="Eta Cutoff">Eta Cutoff</span>
<div class="fa-solid fa-circle-info opacity50p" title="Eta cutoff is the main parameter of the special Eta Sampling technique.&#13;In units of 1e-4; a reasonable value is 3.&#13;Set to 0 to disable.&#13;See the paper Truncation Sampling as Language Model Desmoothing by Hewitt et al. (2022) for details."></div> <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Eta cutoff is the main parameter of the special Eta Sampling technique.&#13;In units of 1e-4; a reasonable value is 3.&#13;Set to 0 to disable.&#13;See the paper Truncation Sampling as Language Model Desmoothing by Hewitt et al. (2022) for details." title="Eta cutoff is the main parameter of the special Eta Sampling technique.&#13;In units of 1e-4; a reasonable value is 3.&#13;Set to 0 to disable.&#13;See the paper Truncation Sampling as Language Model Desmoothing by Hewitt et al. (2022) for details."></div>
</small> </small>
<input class="neo-range-slider" type="range" id="eta_cutoff_textgenerationwebui" name="volume" min="0" max="20" step="0.01"> <input class="neo-range-slider" type="range" id="eta_cutoff_textgenerationwebui" name="volume" min="0" max="20" step="0.01">
<input class="neo-range-input" type="number" min="0" max="20" step="0.01" data-for="eta_cutoff_textgenerationwebui" id="eta_cutoff_counter_textgenerationwebui"> <input class="neo-range-input" type="number" min="0" max="20" step="0.01" data-for="eta_cutoff_textgenerationwebui" id="eta_cutoff_counter_textgenerationwebui">
@ -1585,7 +1585,7 @@
<hr class="wide100p"> <hr class="wide100p">
<h4 class="range-block-title justifyCenter"> <h4 class="range-block-title justifyCenter">
<span data-i18n="Sampler Priority">Sampler Priority</span> <span data-i18n="Sampler Priority">Sampler Priority</span>
<div class="margin5 fa-solid fa-circle-info opacity50p" title="Ooba only. Determines the order of samplers."></div> <div class="margin5 fa-solid fa-circle-info opacity50p" title="Ooba only. Determines the order of samplers." data-i18n="[title]Ooba only. Determines the order of samplers."></div>
</h4> </h4>
<div class="toggle-description widthUnset" data-i18n="Ooba only. Determines the order of samplers."> <div class="toggle-description widthUnset" data-i18n="Ooba only. Determines the order of samplers.">
Ooba only. Determines the order of samplers. Ooba only. Determines the order of samplers.
@ -1613,7 +1613,7 @@
<div id="openai_settings"> <div id="openai_settings">
<div class=""> <div class="">
<div class="range-block"> <div class="range-block">
<label for="wrap_in_quotes" title="Wrap user messages in quotes before sending" class="checkbox_label widthFreeExpand"> <label for="wrap_in_quotes" title="Wrap user messages in quotes before sending" data-i18n="[title]Wrap user messages in quotes before sending" class="checkbox_label widthFreeExpand">
<input id="wrap_in_quotes" type="checkbox" /><span data-i18n="Wrap in Quotes"> <input id="wrap_in_quotes" type="checkbox" /><span data-i18n="Wrap in Quotes">
Wrap in Quotes</span> Wrap in Quotes</span>
</label> </label>
@ -1625,11 +1625,11 @@
</div> </div>
</div> </div>
<div class="range-block"> <div class="range-block">
<label for="names_in_completion" title="Add character names" class="checkbox_label widthFreeExpand"> <label for="names_in_completion" title="Add character names" data-i18n="[title]Add character names" class="checkbox_label widthFreeExpand">
<input id="names_in_completion" type="checkbox" /><span data-i18n="Add character names">Add character names</span> <input id="names_in_completion" type="checkbox" /><span data-i18n="Add character names">Add character names</span>
</label> </label>
<div class="toggle-description justifyLeft"> <div class="toggle-description justifyLeft">
<span data-i18n="Send names in the message objects.">Send names in the message objects. Helps the model to associate messages with characters.</span> <span data-i18n="Send names in the message objects. Helps the model to associate messages with characters.">Send names in the message objects. Helps the model to associate messages with characters.</span>
</div> </div>
</div> </div>
<div class="range-block"> <div class="range-block">
@ -1638,22 +1638,21 @@
<span data-i18n="Continue prefill">Continue prefill</span> <span data-i18n="Continue prefill">Continue prefill</span>
</label> </label>
<div class="toggle-description justifyLeft"> <div class="toggle-description justifyLeft">
<span data-i18n="Continue sends the last message."> <span data-i18n="Continue sends the last message as assistant role instead of system message with instruction.">
Continue sends the last message as assistant role instead of system message with instruction. Continue sends the last message as assistant role instead of system message with instruction.
</span> </span>
</div> </div>
</div> </div>
<div class="range-block"> <div class="range-block">
<label for="squash_system_messages" title="Squash system messages" class="checkbox_label widthFreeExpand"> <label for="squash_system_messages" title="Squash system messages" data-i18n="[title]Squash system messages" class="checkbox_label widthFreeExpand">
<input id="squash_system_messages" type="checkbox" /> <input id="squash_system_messages" type="checkbox" />
<span data-i18n="Squash system messages"> <span data-i18n="Squash system messages">
Squash system messages Squash system messages
</span> </span>
</label> </label>
<div class="toggle-description justifyLeft"> <div class="toggle-description justifyLeft">
<span data-i18n="Combines consecutive system messages into one."> <span data-i18n="Combines consecutive system messages into one (excluding example dialogues). May improve coherence for some models.">
Combines consecutive system messages into one (excluding example dialogues). Combines consecutive system messages into one (excluding example dialogues). May improve coherence for some models.
May improve coherence for some models.
</span> </span>
</div> </div>
</div> </div>
@ -1696,7 +1695,7 @@
</span> </span>
</label> </label>
<div class="toggle-description justifyLeft marginBot5"> <div class="toggle-description justifyLeft marginBot5">
<span data-i18n="Send the system prompt for supported models."> <span data-i18n="Send the system prompt for supported models. If disabled, the user message is added to the beginning of the prompt.">
Send the system prompt for supported models. If disabled, the user message is added to the beginning of the prompt. Send the system prompt for supported models. If disabled, the user message is added to the beginning of the prompt.
</span> </span>
</div> </div>

View File

@ -1334,12 +1334,12 @@ class PromptManager {
<select id="${this.configuration.prefix}prompt_manager_footer_append_prompt" class="text_pole" name="append-prompt"> <select id="${this.configuration.prefix}prompt_manager_footer_append_prompt" class="text_pole" name="append-prompt">
${prompts} ${prompts}
</select> </select>
<a class="menu_button fa-chain fa-solid" title="Insert prompt" data-i18n="Insert"></a> <a class="menu_button fa-chain fa-solid" title="Insert prompt" data-i18n="[title]Insert prompt"></a>
<a class="caution menu_button fa-x fa-solid" title="Delete prompt" data-i18n="Delete"></a> <a class="caution menu_button fa-x fa-solid" title="Delete prompt" data-i18n="[title]Delete prompt"></a>
<a class="menu_button fa-file-import fa-solid" id="prompt-manager-import" title="Import a prompt list" data-i18n="Import"></a> <a class="menu_button fa-file-import fa-solid" id="prompt-manager-import" title="Import a prompt list" data-i18n="[title]Import a prompt list"></a>
<a class="menu_button fa-file-export fa-solid" id="prompt-manager-export" title="Export this prompt list" data-i18n="Export"></a> <a class="menu_button fa-file-export fa-solid" id="prompt-manager-export" title="Export this prompt list" data-i18n="[title]Export this prompt list"></a>
<a class="menu_button fa-undo fa-solid" id="prompt-manager-reset-character" title="Reset current character" data-i18n="Reset current character"></a> <a class="menu_button fa-undo fa-solid" id="prompt-manager-reset-character" title="Reset current character" data-i18n="[title]Reset current character"></a>
<a class="menu_button fa-plus-square fa-solid" title="New prompt" data-i18n="New"></a> <a class="menu_button fa-plus-square fa-solid" title="New prompt" data-i18n="[title]New prompt"></a>
</div> </div>
`; `;

View File

@ -1,53 +1,58 @@
<h3> <h3>
<span id="version_display_welcome">SillyTavern</span> <span id="version_display_welcome" data-i18n="sillyTavern">SillyTavern</span>
<div id="version_display_welcome"></div> <div id="version_display_welcome" data-i18n=""></div>
</h3> </h3>
<a href="https://docs.sillytavern.app/usage/update/"" target=" _blank"> <a href="https://docs.sillytavern.app/usage/update/" target="_blank" data-i18n="Want to update?">
Want to update? Want to update?
</a> </a>
<hr> <hr>
<h3>How to start chatting?</h3> <h3 data-i18n="How to start chatting?">How to start chatting?</h3>
<ol> <ol>
<li>Click <code><i class="fa-solid fa-plug"></i></code> and select a <a href="https://docs.sillytavern.app/usage/api-connections/" target="_blank">Chat API</a>.</li> <li>
<li>Click <code><i class="fa-solid fa-address-card"></i></code> and pick a character</li> <span data-i18n="Click ">Click </span><code><i class="fa-solid fa-plug"></i></code><span data-i18n="and select a"> and select a </span><a href="https://docs.sillytavern.app/usage/api-connections/" target="_blank" data-i18n="Chat API">Chat API</a>.</span>
</li>
<li>
<span data-i18n="Click ">Click </span><code><i class="fa-solid fa-address-card"></i></code><span data-i18n="and pick a character"> and pick a character</span>
</li>
</ol> </ol>
<hr> <hr>
<h3>Confused or lost?</h3> <h3 data-i18n="Confused or lost?">Confused or lost?</h3>
<ul> <ul>
<li> <li>
<span class="note-link-span"><a class="fa-solid fa-circle-question" target="_blank" href="https://docs.sillytavern.app/"></a></span> - click these icons! <span class="note-link-span"><a class="fa-solid fa-circle-question" target="_blank" href="https://docs.sillytavern.app/" data-i18n=""></a></span> - <span data-i18n="click these icons!">click these icons!</span>
</li> </li>
<li> <li>
Enter <code>/?</code> in the chat bar <span data-i18n="Enter">Enter </span><code>/?</code><span data-i18n="in the chat bar"> in the chat bar</span>
</li> </li>
<li> <li>
<a target="_blank" href="https://docs.sillytavern.app/"> <a target="_blank" href="https://docs.sillytavern.app/" data-i18n="SillyTavern Documentation Site">
SillyTavern Documentation Site SillyTavern Documentation Site
</a> </a>
</li> </li>
<li> <li>
<a target="_blank" href="https://docs.sillytavern.app/extras/installation/"> <a target="_blank" href="https://docs.sillytavern.app/extras/installation/" data-i18n="Extras Installation Guide">
Extras Installation Guide Extras Installation Guide
</a> </a>
</li> </li>
</ul> </ul>
<hr> <hr data-i18n="">
<h3>Still have questions?</h3> <h3 data-i18n="Still have questions?">Still have questions?</h3>
<ul> <ul>
<li> <li>
<a target="_blank" href="https://discord.gg/sillytavern"> <a target="_blank" href="https://discord.gg/sillytavern" data-i18n="Join the SillyTavern Discord">
Join the SillyTavern Discord Join the SillyTavern Discord
</a> </a>
</li> </li>
<li> <li>
<a target="_blank" href="https://github.com/SillyTavern/SillyTavern/issues"> <a target="_blank" href="https://github.com/SillyTavern/SillyTavern/issues" data-i18n="Post a GitHub issue">
Post a GitHub issue Post a GitHub issue
</a> </a>
</li> </li>
<li> <li>
<a target="_blank" href="https://github.com/SillyTavern/SillyTavern#questions-or-suggestions"> <a target="_blank" href="https://github.com/SillyTavern/SillyTavern#questions-or-suggestions" data-i18n="Contact the developers">
Contact the developers Contact the developers
</a> </a>
</li> </li>
</ul> </ul>