#99 dialogs i18n translation changes

master
Agriya Dev5 2021-05-19 17:01:06 +05:30
parent 524e7126ec
commit 8df421d643
2 changed files with 11 additions and 7 deletions

View File

@ -1,4 +1,6 @@
/* globals svgEditor */
const template = document.createElement('template'); const template = document.createElement('template');
// eslint-disable-next-line no-unsanitized/property
template.innerHTML = ` template.innerHTML = `
<style> <style>
:not(:defined) { :not(:defined) {
@ -61,17 +63,17 @@ template.innerHTML = `
<div id="svg_source_container"> <div id="svg_source_container">
<div id="tool_source_back" class="toolbar_button"> <div id="tool_source_back" class="toolbar_button">
<button id="tool_source_save"> <button id="tool_source_save">
Apply Changes ${svgEditor.i18next.t('tools.source_save')}
</button> </button>
<button id="tool_source_cancel"> <button id="tool_source_cancel">
Cancel ${svgEditor.i18next.t('common.cancel')}
</button> </button>
</div> </div>
<div id="save_output_btns"> <div id="save_output_btns">
<p id="copy_save_note"> <p id="copy_save_note">
Copy the contents of this box into a text editor, ${svgEditor.i18next.t('notification.source_dialog_note')}
then save the file with a .svg extension.</p> </p>
<button id="copy_save_done">Done</button> <button id="copy_save_done">${svgEditor.i18next.t('config.done')}</button>
</div> </div>
<form> <form>
<textarea id="svg_source_textarea" spellcheck="false" rows="5" cols="80"></textarea> <textarea id="svg_source_textarea" spellcheck="false" rows="5" cols="80"></textarea>

View File

@ -206,7 +206,8 @@ export default {
grid: 'Grid', grid: 'Grid',
snapping_onoff: 'Snapping on/off', snapping_onoff: 'Snapping on/off',
snapping_stepsize: 'Snapping Step-Size:', snapping_stepsize: 'Snapping Step-Size:',
grid_color: 'Grid color:' grid_color: 'Grid color:',
done: "Done",
}, },
notification: { notification: {
invalidAttrValGiven: 'Invalid value given', invalidAttrValGiven: 'Invalid value given',
@ -236,6 +237,7 @@ export default {
exportNoforeignObject: 'foreignObject elements will not appear', exportNoforeignObject: 'foreignObject elements will not appear',
exportNoDashArray: 'Strokes will appear filled', exportNoDashArray: 'Strokes will appear filled',
exportNoText: 'Text may not appear as expected', exportNoText: 'Text may not appear as expected',
editorPreferencesMsg: 'By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.' editorPreferencesMsg: 'By default and where supported, SVG-Edit can store your editor preferences and SVG content locally on your machine so you do not need to add these back each time you load SVG-Edit. If, for privacy reasons, you do not wish to store this information on your machine, you can change away from the default option below.',
source_dialog_note: 'Copy the contents of this box into a text editor, then save the file with a .svg extension.'
} }
}; };