#98 build issue fixed
parent
0d3df6bf7b
commit
d4385e7e72
|
@ -359,10 +359,11 @@ export default {
|
|||
newUI: true,
|
||||
name: svgEditor.i18next.t(`${name}:name`),
|
||||
callback() {
|
||||
const btitle = svgEditor.i18next.t(`${name}:langListTitle`);
|
||||
// Add the button and its handler(s)
|
||||
const buttonTemplate = document.createElement("template");
|
||||
buttonTemplate.innerHTML = `
|
||||
<se-button id="mode_connect" title="${svgEditor.i18next.t(`${name}:langListTitle`)}" src="./images/conn.svg"></se-button>
|
||||
<se-button id="mode_connect" title="${btitle}" src="./images/conn.svg"></se-button>
|
||||
`;
|
||||
$id('tools_left').append(buttonTemplate.content.cloneNode(true));
|
||||
$id('mode_connect').addEventListener("click", () => {
|
||||
|
|
|
@ -45,10 +45,11 @@ export default {
|
|||
newUI: true,
|
||||
name: svgEditor.i18next.t(`${name}:name`),
|
||||
callback() {
|
||||
const btitle = svgEditor.i18next.t(`${name}:buttons.0.title`);
|
||||
// Add the button and its handler(s)
|
||||
const buttonTemplate = document.createElement("template");
|
||||
buttonTemplate.innerHTML = `
|
||||
<se-button id="ext-panning" title="${svgEditor.i18next.t(`${name}:buttons.0.title`)}" src="./images/panning.svg"></se-button>
|
||||
<se-button id="ext-panning" title="${btitle}" src="./images/panning.svg"></se-button>
|
||||
`;
|
||||
insertAfter($id('tool_zoom'), buttonTemplate.content.cloneNode(true));
|
||||
$id('ext-panning').addEventListener("click", () => {
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
/* globals i18next */
|
||||
|
||||
const template = document.createElement('template');
|
||||
const notification = i18next.t('notification.editorPreferencesMsg');
|
||||
const prefs_and_content = i18next.t('properties.prefs_and_content');
|
||||
const prefs_only = i18next.t('properties.prefs_only');
|
||||
const no_prefs_or_content = i18next.t('properties.no_prefs_or_content');
|
||||
const remember_this_choice = i18next.t('tools.remember_this_choice');
|
||||
const remember_this_choice_title = i18next.t('notification.remember_this_choice_title');
|
||||
const ok = i18next.t('common.ok');
|
||||
const cancel = i18next.t('common.cancel');
|
||||
template.innerHTML = `
|
||||
<style>
|
||||
|
||||
|
@ -52,25 +60,25 @@ template.innerHTML = `
|
|||
<div id="dialog_container">
|
||||
<div id="dialog_content">
|
||||
<p>
|
||||
${i18next.t('notification.editorPreferencesMsg')}
|
||||
${notification}
|
||||
</p>
|
||||
<select id="se-storage-pref">
|
||||
<option value="prefsAndContent">${i18next.t('properties.prefs_and_content')}</option>
|
||||
<option value="prefsOnly">${i18next.t('properties.prefs_only')}</option>
|
||||
<option value="noPrefsOrContent">${i18next.t('properties.no_prefs_or_content')}</option>
|
||||
<option value="prefsAndContent">${prefs_and_content}</option>
|
||||
<option value="prefsOnly">${prefs_only}</option>
|
||||
<option value="noPrefsOrContent">${no_prefs_or_content}</option>
|
||||
</select>
|
||||
<label title="If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again.">
|
||||
${i18next.t('tools.remember_this_choice')}<input type="checkbox" id="se-remember" value="" checked>
|
||||
<label title="${remember_this_choice_title}">
|
||||
${remember_this_choice}<input type="checkbox" id="se-remember" value="" checked>
|
||||
</label>
|
||||
</div>
|
||||
<div id="dialog_buttons">
|
||||
<button id="storage_ok">
|
||||
<img class="svg_icon" src="./images/ok.svg" alt="icon" width="16" height="16" />
|
||||
${i18next.t('common.ok')}
|
||||
${ok}
|
||||
</button>
|
||||
<button id="storage_cancel">
|
||||
<img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />
|
||||
${i18next.t('common.cancel')}
|
||||
${cancel}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -164,7 +164,8 @@ export default {
|
|||
tool_unlink_use: 'Break link to reference element (make unique)',
|
||||
ellipse_circle_tool: 'Ellipse/Circle Tool',
|
||||
square_rect_tool: 'Square/Rect Tool',
|
||||
remember_this_choice: 'Remember this choice?'
|
||||
remember_this_choice: 'Remember this choice?',
|
||||
remember_this_choice_title: 'If you choose to opt out of storage while remembering this choice, the URL will change so as to avoid asking again.',
|
||||
},
|
||||
layers: {
|
||||
layer: 'Layer',
|
||||
|
|
Loading…
Reference in New Issue