#99 i18n translation changes

master
Agriya Dev5 2021-05-19 16:38:13 +05:30
parent 71eddf38c7
commit 524e7126ec
2 changed files with 15 additions and 13 deletions

View File

@ -86,7 +86,7 @@ class MainMenu {
// Set image save option // Set image save option
this.editor.configObj.pref("img_save", save); this.editor.configObj.pref("img_save", save);
this.editor.updateCanvas(); this.editor.updateCanvas();
this.editor.hideDocProperties(); this.hideDocProperties();
return true; return true;
} }
/** /**

View File

@ -1,6 +1,8 @@
/* globals svgEditor */
import { isValidUnit } from '../../common/units.js'; import { isValidUnit } from '../../common/units.js';
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) {
@ -69,46 +71,46 @@ template.innerHTML = `
<elix-dialog id="svg_docprops" aria-label="Sample dialog" closed> <elix-dialog id="svg_docprops" aria-label="Sample dialog" closed>
<div id="svg_docprops_container"> <div id="svg_docprops_container">
<div id="tool_docprops_back" class="toolbar_button"> <div id="tool_docprops_back" class="toolbar_button">
<button id="tool_docprops_save">OK</button> <button id="tool_docprops_save">${svgEditor.i18next.t('common.ok')}</button>
<button id="tool_docprops_cancel">Cancel</button> <button id="tool_docprops_cancel">${svgEditor.i18next.t('common.cancel')}</button>
</div> </div>
<fieldset id="svg_docprops_docprops"> <fieldset id="svg_docprops_docprops">
<legend id="svginfo_image_props">Image Properties</legend> <legend id="svginfo_image_props">${svgEditor.i18next.t('config.image_props')}</legend>
<label> <label>
<span id="svginfo_title">Title:</span> <span id="svginfo_title">${svgEditor.i18next.t('config.doc_title')}</span>
<input type="text" id="canvas_title" /> <input type="text" id="canvas_title" />
</label> </label>
<fieldset id="change_resolution"> <fieldset id="change_resolution">
<legend id="svginfo_dim">Canvas Dimensions</legend> <legend id="svginfo_dim">${svgEditor.i18next.t('config.doc_dims')}</legend>
<label> <label>
<span id="svginfo_width">width:</span> <span id="svginfo_width">${svgEditor.i18next.t('common.width')}</span>
<input type="text" id="canvas_width" size="6" /> <input type="text" id="canvas_width" size="6" />
</label> </label>
<label> <label>
<span id="svginfo_height">height:</span> <span id="svginfo_height">${svgEditor.i18next.t('common.height')}</span>
<input type="text" id="canvas_height" size="6" /> <input type="text" id="canvas_height" size="6" />
</label> </label>
<label> <label>
<select id="resolution"> <select id="resolution">
<option id="selectedPredefined" selected="selected">Select predefined:</option> <option id="selectedPredefined" selected="selected">${svgEditor.i18next.t('config.select_predefined')}</option>
<option>640x480</option> <option>640x480</option>
<option>800x600</option> <option>800x600</option>
<option>1024x768</option> <option>1024x768</option>
<option>1280x960</option> <option>1280x960</option>
<option>1600x1200</option> <option>1600x1200</option>
<option id="fitToContent" value="content">Fit to Content</option> <option id="fitToContent" value="content">${svgEditor.i18next.t('tools.fitToContent')}</option>
</select> </select>
</label> </label>
</fieldset> </fieldset>
<fieldset id="image_save_opts"> <fieldset id="image_save_opts">
<legend id="includedImages">Included Images</legend> <legend id="includedImages">${svgEditor.i18next.t('config.included_images')}</legend>
<label> <label>
<input type="radio" id="image_embed" name="image_opt" value="embed" checked="checked" /> <input type="radio" id="image_embed" name="image_opt" value="embed" checked="checked" />
<span id="image_opt_embed">Embed data (local files)</span> <span id="image_opt_embed">${svgEditor.i18next.t('config.image_opt_embed')}</span>
</label> </label>
<label> <label>
<input type="radio" id="image_ref" name="image_opt" value="ref" /> <input type="radio" id="image_ref" name="image_opt" value="ref" />
<span id="image_opt_ref">Use file reference</span> <span id="image_opt_ref">${svgEditor.i18next.t('config.image_opt_ref')}</span>
</label> </label>
</fieldset> </fieldset>
</fieldset> </fieldset>