- Add in locales for English

This commit is contained in:
Brett Zamir
2018-05-25 21:25:38 +08:00
parent 8c9e40d349
commit bf261fd670

View File

@@ -9,37 +9,37 @@ svgEditor.readLang({
key_del: 'Del', key_del: 'Del',
key_down: 'Down', key_down: 'Down',
key_up: 'Up', key_up: 'Up',
more_opts: 'more_opts', more_opts: 'More options',
url: 'url', url: 'url',
width: 'width', width: 'width',
height: 'height' height: 'height'
}, },
misc: { misc: {
powered_by: 'powered_by' powered_by: 'Powered by'
}, },
ui: { ui: {
toggle_stroke_tools: 'toggle_stroke_tools', toggle_stroke_tools: 'Show/hide more stroke tools',
palette_info: 'palette_info', palette_info: 'Click to change fill color, shift-click to change stroke color',
zoom_level: 'zoom_level', zoom_level: 'Change zoom level',
panel_drag: 'panel_drag', panel_drag: 'Drag left/right to resize side panel',
quality: 'Quality:', quality: 'Quality:',
pathNodeTooltip: 'Drag node to move it. Double-click node to change segment type', pathNodeTooltip: 'Drag node to move it. Double-click node to change segment type',
pathCtrlPtTooltip: 'Drag control point to adjust curve properties' pathCtrlPtTooltip: 'Drag control point to adjust curve properties'
}, },
properties: { properties: {
id: 'id', id: 'id',
fill_color: 'fill_color', fill_color: 'Change fill color',
stroke_color: 'stroke_color', stroke_color: 'Change stroke color',
stroke_style: 'stroke_style', stroke_style: 'Change stroke dash style',
stroke_width: 'stroke_width', stroke_width: 'Change stroke width by 1, shift-click to change by 0.1',
pos_x: 'pos_x', pos_x: 'Change X coordinate',
pos_y: 'pos_y', pos_y: 'Change Y coordinate',
linecap_butt: 'linecap_butt', linecap_butt: 'Linecap: Butt',
linecap_round: 'linecap_round', linecap_round: 'Linecap: Round',
linecap_square: 'linecap_square', linecap_square: 'Linecap: Square',
linejoin_bevel: 'linejoin_bevel', linejoin_bevel: 'Linejoin: Bevel',
linejoin_miter: 'linejoin_miter', linejoin_miter: 'Linejoin: Miter',
linejoin_round: 'linejoin_round', linejoin_round: 'Linejoin: Round',
angle: 'angle', angle: 'angle',
blur: 'blur', blur: 'blur',
opacity: 'opacity', opacity: 'opacity',
@@ -54,140 +54,140 @@ svgEditor.readLang({
line_x2: "Change line's ending x coordinate", line_x2: "Change line's ending x coordinate",
line_y1: "Change line's starting y coordinate", line_y1: "Change line's starting y coordinate",
line_y2: "Change line's ending y coordinate", line_y2: "Change line's ending y coordinate",
rect_height: 'rect_height', rect_height: 'Change rectangle height',
rect_width: 'rect_width', rect_width: 'Change rectangle width',
corner_radius: 'corner_radius', corner_radius: 'Change Rectangle Corner Radius',
image_width: 'image_width', image_width: 'Change image width',
image_height: 'image_height', image_height: 'Change image height',
image_url: 'image_url', image_url: 'Change URL',
node_x: "Change node's x coordinate", node_x: "Change node's x coordinate",
node_y: "Change node's y coordinate", node_y: "Change node's y coordinate",
seg_type: 'seg_type', seg_type: 'Change Segment type',
straight_segments: 'straight_segments', straight_segments: 'Straight',
curve_segments: 'curve_segments', curve_segments: 'Curve',
text_contents: 'text_contents', text_contents: 'text_contents',
font_family: 'font_family', font_family: 'Change Font Family',
font_size: 'font_size', font_size: 'Change Font Size',
bold: 'bold', bold: 'Bold Text [B]',
italic: 'italic' italic: 'Italic Text [I]'
}, },
tools: { tools: {
main_menu: 'main_menu', main_menu: 'Main Menu',
bkgnd_color_opac: 'bkgnd_color_opac', bkgnd_color_opac: 'bkgnd_color_opac',
connector_no_arrow: 'connector_no_arrow', connector_no_arrow: 'No arrow',
fitToContent: 'fitToContent', fitToContent: 'Fit to Content',
fit_to_all: 'fit_to_all', fit_to_all: 'Fit to all content',
fit_to_canvas: 'fit_to_canvas', fit_to_canvas: 'Fit to canvas',
fit_to_layer_content: 'fit_to_layer_content', fit_to_layer_content: 'Fit to layer content',
fit_to_sel: 'fit_to_sel', fit_to_sel: 'Fit to selection',
align_relative_to: 'align_relative_to', align_relative_to: 'Align relative to ...',
relativeTo: 'relativeTo', relativeTo: 'relative to:',
page: 'page', page: 'page',
largest_object: 'largest_object', largest_object: 'largest object',
selected_objects: 'selected_objects', selected_objects: 'selected objects',
smallest_object: 'smallest_object', smallest_object: 'smallest object',
new_doc: 'new_doc', new_doc: 'New Image',
open_doc: 'open_doc', open_doc: 'Open SVG',
export_img: 'export_img', export_img: 'Export',
save_doc: 'save_doc', save_doc: 'Save Image',
import_doc: 'import_doc', import_doc: 'Import Image',
align_to_page: 'align_to_page', align_to_page: 'Align Element to Page',
align_bottom: 'align_bottom', align_bottom: 'Align Bottom',
align_center: 'align_center', align_center: 'Align Center',
align_left: 'align_left', align_left: 'Align Left',
align_middle: 'align_middle', align_middle: 'Align Middle',
align_right: 'align_right', align_right: 'Align Right',
align_top: 'align_top', align_top: 'Align Top',
mode_select: 'mode_select', mode_select: 'Select Tool',
mode_fhpath: 'mode_fhpath', mode_fhpath: 'Pencil Tool',
mode_line: 'mode_line', mode_line: 'Line Tool',
mode_connect: 'mode_connect', mode_connect: 'Connect two objects',
mode_rect: 'mode_rect', mode_rect: 'Rectangle',
mode_square: 'mode_square', mode_square: 'Square',
mode_fhrect: 'mode_fhrect', mode_fhrect: 'Free-Hand Rectangle',
mode_ellipse: 'mode_ellipse', mode_ellipse: 'Ellipse',
mode_circle: 'mode_circle', mode_circle: 'Circle',
mode_fhellipse: 'mode_fhellipse', mode_fhellipse: 'Free-Hand Ellipse',
mode_path: 'mode_path', mode_path: 'Path Tool',
mode_shapelib: 'mode_shapelib', mode_shapelib: 'Shape library',
mode_text: 'mode_text', mode_text: 'Text Tool',
mode_image: 'mode_image', mode_image: 'Image Tool',
mode_zoom: 'mode_zoom', mode_zoom: 'Zoom Tool [Ctrl+Up/Down]',
mode_eyedropper: 'mode_eyedropper', mode_eyedropper: 'Eye Dropper Tool',
no_embed: 'no_embed', no_embed: 'NOTE: This image cannot be embedded. It will depend on this path to be displayed',
undo: 'undo', undo: 'Undo [Z]',
redo: 'redo', redo: 'Redo [Y]',
tool_source: 'tool_source', tool_source: 'Edit Source [U]',
wireframe_mode: 'wireframe_mode', wireframe_mode: 'Wireframe Mode [F]',
toggle_grid: 'toggle_grid', toggle_grid: 'Show/Hide Grid',
clone: 'clone', clone: 'Duplicate Element [D]',
del: 'del', del: 'Delete Element [Delete/Backspace]',
group_elements: 'group_elements', group_elements: 'Group Elements [G]',
make_link: 'make_link', make_link: 'Make (hyper)link',
set_link_url: 'set_link_url', set_link_url: 'Set link URL (leave empty to remove)',
to_path: 'to_path', to_path: 'Convert to Path',
reorient_path: 'reorient_path', reorient_path: 'Reorient path',
ungroup: 'ungroup', ungroup: 'Ungroup Elements [G]',
docprops: 'docprops', docprops: 'Document Properties (D)',
imagelib: 'imagelib', imagelib: 'Image library',
move_bottom: 'move_bottom', move_bottom: 'Send to Back [ Ctrl+Shift+[ ]',
move_top: 'move_top', move_top: 'Bring to Front [ Ctrl+Shift+] ]',
node_clone: 'node_clone', node_clone: 'Clone Node',
node_delete: 'node_delete', node_delete: 'Delete Node',
node_link: 'node_link', node_link: 'Link Control Points',
add_subpath: 'add_subpath', add_subpath: 'Add sub-path',
openclose_path: 'openclose_path', openclose_path: 'Open/close sub-path',
source_save: 'source_save', source_save: 'Apply Changes',
cut: 'cut', cut: 'Cut',
copy: 'copy', copy: 'Copy',
paste: 'paste', paste: 'Paste',
paste_in_place: 'paste_in_place', paste_in_place: 'Paste in Place',
delete: 'delete', delete: 'Delete',
group: 'group', group: 'Group',
move_front: 'move_front', move_front: 'Bring to Front (SHFT+CTRL+])',
move_up: 'move_up', move_up: 'Bring Forward (CTRL+])',
move_down: 'move_down', move_down: 'Send Backward (CTRL+[)',
move_back: 'move_back' move_back: 'Send to Back (SHFT+CTRL+[)'
}, },
layers: { layers: {
layer: 'Layer', layer: 'Layer',
layers: 'layers', layers: 'Layers',
del: 'del', del: 'Delete Layer',
move_down: 'move_down', move_down: 'Move Layer Down',
new: 'new', new: 'New Layer',
rename: 'rename', rename: 'Rename Layer',
move_up: 'move_up', move_up: 'Move Layer Up',
dupe: 'dupe', dupe: 'Duplicate Layer...',
merge_down: 'merge_down', merge_down: 'Merge Down',
merge_all: 'merge_all', merge_all: 'Merge All',
move_elems_to: 'move_elems_to', move_elems_to: 'Move elements to:',
move_selected: 'move_selected' move_selected: 'Move selected elements to a different layer'
}, },
config: { config: {
image_props: 'image_props', image_props: 'Image Properties',
doc_title: 'doc_title', doc_title: 'Title:',
doc_dims: 'doc_dims', doc_dims: 'Canvas Dimensions',
included_images: 'included_images', included_images: 'Included Images',
image_opt_embed: 'image_opt_embed', image_opt_embed: 'Embed data (local files)',
image_opt_ref: 'image_opt_ref', image_opt_ref: 'Use file reference',
editor_prefs: 'editor_prefs', editor_prefs: 'Editor Preferences',
icon_size: 'icon_size', icon_size: 'Icon size:',
language: 'language', language: 'Language:',
background: 'background', background: 'Editor Background',
editor_img_url: 'editor_img_url', editor_img_url: 'URL:',
editor_bg_note: 'editor_bg_note', editor_bg_note: 'Note: Background will not be saved with image.',
icon_large: 'icon_large', icon_large: 'Large',
icon_medium: 'icon_medium', icon_medium: 'Medium',
icon_small: 'icon_small', icon_small: 'Small',
icon_xlarge: 'icon_xlarge', icon_xlarge: 'Extra Large',
select_predefined: 'select_predefined', select_predefined: 'Select predefined:',
units_and_rulers: 'units_and_rulers', units_and_rulers: 'Units & Rulers',
show_rulers: 'show_rulers', show_rulers: 'Show rulers',
base_unit: 'base_unit', base_unit: 'Base Unit:',
grid: 'grid', grid: 'Grid',
snapping_onoff: 'snapping_onoff', snapping_onoff: 'Snapping on/off',
snapping_stepsize: 'snapping_stepsize', snapping_stepsize: 'Snapping Step-Size:',
grid_color: 'grid_color' grid_color: 'Grid color:'
}, },
shape_cats: { shape_cats: {
basic: 'basic', basic: 'basic',
@@ -197,20 +197,20 @@ svgEditor.readLang({
flowchart: 'flowchart', flowchart: 'flowchart',
animal: 'animal', animal: 'animal',
game: 'game', game: 'game',
dialog_balloon: 'dialog_balloon', dialog_balloon: 'Dialog balloons',
electronics: 'electronics', electronics: 'Electronics',
math: 'math', math: 'Mathematical',
music: 'music', music: 'Music',
misc: 'misc', misc: 'Miscellaneous',
raphael_1: 'raphael_1', raphael_1: 'raphaeljs.com set 1',
raphael_2: 'raphael_2' raphael_2: 'raphaeljs.com set 2'
}, },
imagelib: { imagelib: {
select_lib: 'select_lib', select_lib: 'Select an image library',
show_list: 'show_list', show_list: 'Show library list',
import_single: 'import_single', import_single: 'Import single',
import_multi: 'import_multi', import_multi: 'Import multiple',
open: 'open' open: 'Open as new document'
}, },
notification: { notification: {
invalidAttrValGiven: 'Invalid value given', invalidAttrValGiven: 'Invalid value given',