- Breaking change: Extension now formatted as export (and `this` is set to editor, including for `callback`)
- Breaking change: Locale now formatted as export
- Breaking change: Moved out remaining modular i18n (imagelib) to own folder
- Breaking change: Drop `executeAfterLoads` (and getJSPDF/getCanvg)
- Breaking change: `RGBColor` must accept `new`
- Breaking change: canvg - `stackBlurCanvasRGBA` must be set now by function (`setStackBlurCanvasRGBA`) rather than global; `canvg` now a named export
- Breaking change: Avoid passing `canvg`/`buildCanvgCallback` to extensions (have them import)
- Fix: i18nize imaglib more deeply
- Fix: Positioning of Document Properties dialog (Fixes #246)
- Fix (regression): PDF Export (Fixes #249)
- Fix (regression): Add polyfill for `ChildNode`/`ParentNode` (and use further)
- Fix (regression): Apply Babel universally to dependencies
- Fix (regression): Ordering of `uaPrefix` function in `svgEditor.js`
- Fix (regression): Embedded API
- Fix (embedded editor): Fix backspace key in Firefox so it doesn't navigate out of frame
- Fix: Alert if no exportWindow for PDF (e.g., if blocked)
- Refactoring( RGBColor) `RGBColor` as class, without rebuilding constants, optimize string replacement, move methods to prototype, use templates and object literals, use `Object.keys`
- Refactoring (canvg) Use classes more internally, use shorthand objects; array extras, return to lazy-loading
- Refactoring: Use Promises in place of `$.getScript`; always return Promises in case deciding to await resolving
- Refactoring: Avoid importing `RGBColor` into `svgutils.js` (jsPDF imports it itself)
- Refactoring: Arrow functions, destructuring, shorter property references
- Refactoring: Fix `lang` and `dir` for locales (though not in use currently anyways)
- Refactoring: Provide path config for canvg, jspdf
2018-06-02 01:14:38 +00:00
export default {
lang : 'zh-HK' ,
dir : 'ltr' ,
2018-05-18 06:23:36 +00:00
common : {
2018-05-28 14:00:20 +00:00
ok : '确定' ,
2018-07-31 14:45:43 +00:00
cancel : '取消' ,
key _backspace : 'backspace' ,
key _del : 'delete' ,
key _down : 'down' ,
key _up : 'up' ,
more _opts : 'More Options' ,
url : 'URL' ,
width : 'Width' ,
height : 'Height'
2018-05-18 06:23:36 +00:00
} ,
misc : {
2018-07-31 14:45:43 +00:00
powered _by : 'Powered by'
2018-05-18 06:23:36 +00:00
} ,
ui : {
2018-07-31 14:45:43 +00:00
toggle _stroke _tools : 'Show/hide more stroke tools' ,
palette _info : '点击更改填充颜色, 按住Shift键单击更改颜色中风' ,
zoom _level : '更改缩放级别' ,
panel _drag : 'Drag left/right to resize side panel' ,
2018-05-18 03:25:45 +00:00
quality : 'Quality:' ,
pathNodeTooltip : 'Drag node to move it. Double-click node to change segment type' ,
2018-07-31 14:45:43 +00:00
pathCtrlPtTooltip : 'Drag control point to adjust curve properties' ,
pick _stroke _paint _opacity : 'Pick a Stroke Paint and Opacity' ,
pick _fill _paint _opacity : 'Pick a Fill Paint and Opacity'
2018-05-18 06:23:36 +00:00
} ,
properties : {
2018-07-31 14:45:43 +00:00
id : 'Identify the element' ,
fill _color : '更改填充颜色' ,
stroke _color : '中风的颜色变化' ,
stroke _style : '更改行程冲刺风格' ,
stroke _width : '笔划宽度的变化' ,
pos _x : 'Change X coordinate' ,
pos _y : 'Change Y coordinate' ,
linecap _butt : 'Linecap: Butt' ,
linecap _round : 'Linecap: Round' ,
linecap _square : 'Linecap: Square' ,
linejoin _bevel : 'Linejoin: Bevel' ,
linejoin _miter : 'Linejoin: Miter' ,
linejoin _round : 'Linejoin: Round' ,
angle : '旋转角度的变化' ,
blur : 'Change gaussian blur value' ,
opacity : '更改所选项目不透明' ,
circle _cx : '改变循环的CX坐标' ,
circle _cy : '改变循环的赛扬坐标' ,
circle _r : '改变圆的半径' ,
ellipse _cx : '改变椭圆的CX坐标' ,
ellipse _cy : '改变椭圆的赛扬坐标' ,
ellipse _rx : '改变椭圆的x半径' ,
ellipse _ry : '改变椭圆的y半径' ,
line _x1 : '更改行的起点的x坐标' ,
line _x2 : '更改行的结束x坐标' ,
line _y1 : '更改行的起点的y坐标' ,
line _y2 : '更改行的结束y坐标' ,
rect _height : '更改矩形的高度' ,
rect _width : '更改矩形的宽度' ,
corner _radius : '角半径:' ,
image _width : '更改图像的宽度' ,
image _height : '更改图像高度' ,
image _url : '更改网址' ,
2018-05-20 07:04:11 +00:00
node _x : "Change node's x coordinate" ,
node _y : "Change node's y coordinate" ,
2018-07-31 14:45:43 +00:00
seg _type : 'Change Segment type' ,
straight _segments : 'Straight' ,
curve _segments : 'Curve' ,
text _contents : '更改文字内容' ,
font _family : '更改字体家族' ,
font _size : '更改字体大小' ,
bold : '粗体' ,
italic : '斜体文本'
2018-05-18 06:23:36 +00:00
} ,
tools : {
2018-07-31 14:45:43 +00:00
main _menu : 'Main Menu' ,
bkgnd _color _opac : '更改背景颜色/不透明' ,
connector _no _arrow : 'No arrow' ,
fitToContent : '适合内容' ,
fit _to _all : '适合于所有的内容' ,
fit _to _canvas : '适合画布' ,
fit _to _layer _content : '适合层内容' ,
fit _to _sel : '适合选择' ,
align _relative _to : '相对对齐 ...' ,
relativeTo : '相对于:' ,
page : '网页' ,
largest _object : '最大对象' ,
selected _objects : '选对象' ,
smallest _object : '最小的对象' ,
new _doc : '新形象' ,
open _doc : '打开图像' ,
export _img : 'Export' ,
save _doc : '保存图像' ,
import _doc : 'Import Image' ,
align _to _page : 'Align Element to Page' ,
align _bottom : '底部对齐' ,
align _center : '居中对齐' ,
align _left : '左对齐' ,
align _middle : '中间对齐' ,
align _right : '右对齐' ,
align _top : '顶端对齐' ,
mode _select : '选择工具' ,
mode _fhpath : '铅笔工具' ,
mode _line : '线工具' ,
mode _rect : 'Rectangle Tool' ,
mode _square : 'Square Tool' ,
mode _fhrect : '免费手矩形' ,
mode _ellipse : '椭圆' ,
mode _circle : '圈' ,
mode _fhellipse : '免费手椭圆' ,
mode _path : 'Path Tool' ,
mode _text : '文字工具' ,
mode _image : '图像工具' ,
mode _zoom : '缩放工具' ,
no _embed : 'NOTE: This image cannot be embedded. It will depend on this path to be displayed' ,
undo : '撤消' ,
redo : '重做' ,
tool _source : '编辑源' ,
wireframe _mode : 'Wireframe Mode' ,
clone : 'Clone Element(s)' ,
del : 'Delete Element(s)' ,
group _elements : '族元素' ,
make _link : 'Make (hyper)link' ,
set _link _url : 'Set link URL (leave empty to remove)' ,
to _path : 'Convert to Path' ,
reorient _path : 'Reorient path' ,
ungroup : 'Ungroup Elements' ,
docprops : '文档属性' ,
move _bottom : '移至底部' ,
move _top : '移动到顶部' ,
node _clone : 'Clone Node' ,
node _delete : 'Delete Node' ,
node _link : 'Link Control Points' ,
add _subpath : 'Add sub-path' ,
openclose _path : 'Open/close sub-path' ,
source _save : '保存' ,
cut : 'Cut' ,
copy : 'Copy' ,
paste : 'Paste' ,
paste _in _place : 'Paste in Place' ,
delete : 'Delete' ,
group : 'Group' ,
move _front : 'Bring to Front' ,
move _up : 'Bring Forward' ,
move _down : 'Send Backward' ,
move _back : 'Send to Back'
2018-05-18 06:23:36 +00:00
} ,
layers : {
2018-05-18 03:25:45 +00:00
layer : 'Layer' ,
2018-07-31 14:45:43 +00:00
layers : 'Layers' ,
del : '删除层' ,
move _down : '层向下移动' ,
new : '新层' ,
rename : '重命名层' ,
move _up : '移动层最多' ,
dupe : 'Duplicate Layer' ,
merge _down : 'Merge Down' ,
merge _all : 'Merge All' ,
move _elems _to : 'Move elements to:' ,
move _selected : 'Move selected elements to a different layer'
2018-05-18 06:23:36 +00:00
} ,
config : {
2018-07-31 14:45:43 +00:00
image _props : 'Image Properties' ,
doc _title : 'Title' ,
doc _dims : 'Canvas Dimensions' ,
included _images : 'Included Images' ,
image _opt _embed : 'Embed data (local files)' ,
image _opt _ref : 'Use file reference' ,
editor _prefs : 'Editor Preferences' ,
icon _size : 'Icon size' ,
language : 'Language' ,
background : 'Editor Background' ,
editor _img _url : 'Image URL' ,
editor _bg _note : 'Note: Background will not be saved with image.' ,
icon _large : 'Large' ,
icon _medium : 'Medium' ,
icon _small : 'Small' ,
icon _xlarge : 'Extra Large' ,
select _predefined : '选择预定义:' ,
units _and _rulers : 'Units & Rulers' ,
show _rulers : 'Show rulers' ,
base _unit : 'Base Unit:' ,
grid : 'Grid' ,
snapping _onoff : 'Snapping on/off' ,
snapping _stepsize : 'Snapping Step-Size:' ,
grid _color : 'Grid color'
2018-05-18 06:23:36 +00:00
} ,
notification : {
2018-05-18 03:25:45 +00:00
invalidAttrValGiven : 'Invalid value given' ,
noContentToFitTo : 'No content to fit to' ,
dupeLayerName : 'There is already a layer named that!' ,
enterUniqueLayerName : 'Please enter a unique layer name' ,
enterNewLayerName : 'Please enter the new layer name' ,
layerHasThatName : 'Layer already has that name' ,
2018-05-20 07:04:11 +00:00
QmoveElemsToLayer : "Move selected elements to layer '%s'?" ,
2018-05-18 03:25:45 +00:00
QwantToClear : 'Do you want to clear the drawing?\nThis will also erase your undo history!' ,
QwantToOpen : 'Do you want to open a new file?\nThis will also erase your undo history!' ,
QerrorsRevertToSource : 'There were parsing errors in your SVG source.\nRevert back to original SVG source?' ,
QignoreSourceChanges : 'Ignore changes made to SVG source?' ,
featNotSupported : 'Feature not supported' ,
enterNewImgURL : 'Enter the new image URL' ,
defsFailOnSave : 'NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.' ,
loadingImage : 'Loading image, please wait...' ,
2018-07-31 14:45:43 +00:00
saveFromBrowser : "Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file." ,
2018-05-18 03:25:45 +00:00
noteTheseIssues : 'Also note the following issues: ' ,
unsavedChanges : 'There are unsaved changes.' ,
enterNewLinkURL : 'Enter the new hyperlink URL' ,
errorLoadingSVG : 'Error: Unable to load SVG data' ,
URLloadFail : 'Unable to load from URL' ,
retrieving : 'Retrieving \'%s\' ...' ,
2018-07-31 14:45:43 +00:00
popupWindowBlocked : 'Popup window may be blocked by browser' ,
2018-05-18 03:25:45 +00:00
exportNoBlur : 'Blurred elements will appear as un-blurred' ,
exportNoforeignObject : 'foreignObject elements will not appear' ,
exportNoDashArray : 'Strokes will appear filled' ,
exportNoText : 'Text may not appear as expected'
2018-05-18 06:23:36 +00:00
}
- Breaking change: Extension now formatted as export (and `this` is set to editor, including for `callback`)
- Breaking change: Locale now formatted as export
- Breaking change: Moved out remaining modular i18n (imagelib) to own folder
- Breaking change: Drop `executeAfterLoads` (and getJSPDF/getCanvg)
- Breaking change: `RGBColor` must accept `new`
- Breaking change: canvg - `stackBlurCanvasRGBA` must be set now by function (`setStackBlurCanvasRGBA`) rather than global; `canvg` now a named export
- Breaking change: Avoid passing `canvg`/`buildCanvgCallback` to extensions (have them import)
- Fix: i18nize imaglib more deeply
- Fix: Positioning of Document Properties dialog (Fixes #246)
- Fix (regression): PDF Export (Fixes #249)
- Fix (regression): Add polyfill for `ChildNode`/`ParentNode` (and use further)
- Fix (regression): Apply Babel universally to dependencies
- Fix (regression): Ordering of `uaPrefix` function in `svgEditor.js`
- Fix (regression): Embedded API
- Fix (embedded editor): Fix backspace key in Firefox so it doesn't navigate out of frame
- Fix: Alert if no exportWindow for PDF (e.g., if blocked)
- Refactoring( RGBColor) `RGBColor` as class, without rebuilding constants, optimize string replacement, move methods to prototype, use templates and object literals, use `Object.keys`
- Refactoring (canvg) Use classes more internally, use shorthand objects; array extras, return to lazy-loading
- Refactoring: Use Promises in place of `$.getScript`; always return Promises in case deciding to await resolving
- Refactoring: Avoid importing `RGBColor` into `svgutils.js` (jsPDF imports it itself)
- Refactoring: Arrow functions, destructuring, shorter property references
- Refactoring: Fix `lang` and `dir` for locales (though not in use currently anyways)
- Refactoring: Provide path config for canvg, jspdf
2018-06-02 01:14:38 +00:00
} ;