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

View File

@ -206,7 +206,8 @@ export default {
grid: 'Grid',
snapping_onoff: 'Snapping on/off',
snapping_stepsize: 'Snapping Step-Size:',
grid_color: 'Grid color:'
grid_color: 'Grid color:',
done: "Done",
},
notification: {
invalidAttrValGiven: 'Invalid value given',
@ -236,6 +237,7 @@ export default {
exportNoforeignObject: 'foreignObject elements will not appear',
exportNoDashArray: 'Strokes will appear filled',
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.'
}
};