Files
svgedit/editor/locale/lang.fa.js
Brett Zamir ae2394f086 (INCOMPLETE: ES6 Module conversion and linting)
- Breaking change: Require `new` with `EmbeddedSVGEdit` (allows us to use `class` internally)
- Breaking change: If `svgcanvas.setUiStrings` must now be called if not using editor in order
    to get strings (for sake of i18n) (and if using path.js alone, must also have its `setUiStrings` called)
- Breaking change (ext-overview-window): Avoid global `overviewWindowGlobals`
- Breaking change (ext-imagelib): Change to object-based encoding for namespacing of
    messages (though keep stringifying/parsing ourselves until we remove IE9 support)
- Breaking change: Rename `jquery.js` to `jquery.min.js`
- Breaking change: Remove `scoped` attribute from `style`; it is now deprecated and
    obsolete; also move to head (after other stylesheets)
- Enhancement: Make SpinButton plugin independent of SVGEdit via
    generic state object for tool_scale
- Enhancement: Remove now unused Python l10n scripts (#238)
- Enhancement: ES6 Modules (including jQuery plugins but not jQuery)
- Enhancement: Further JSDoc (incomplete)
- Enhancement (Optimization): Compress images using imageoptim (and add
    npm script) (per #215)
- Fix: i18nize path.js strings and canvas notifications
- Fix: Attempt i18n for ext-markers
- Refactoring (ext-storage): Move locale info to own file imported by the extension (toward modularity; still should be split into separate files by language and *dynamically* imported, but we'll wait for better `import` support to refactor this)
- Refactoring: For imagelib, add local jQuery copy (using old 1.4.4 as had
    been using from server)
- Refactoring: For MathJax, add local copy (using old 2.3 as had been using from
    server); server had not been working
- Refactoring: Remove `use strict` (implicit in modules)
- Refactoring: Remove trailing whitespace, fix some code within comments
- Refactoring: Expect `jQuery` global rather than `$` for better modularity
    (also to adapt line later once available via `import`)
- Refactoring: Prefer `const` (and then `let`)
- Refactoring: Add block scope keywords closer to first block in which they appear
- Refactoring: Use ES6 `class`
- Refactoring `$.isArray` -> `Array.isArray` and avoid some other jQuery core methods
    with simple VanillaJS replacements
- Refactoring: Use abbreviated object property syntax
- Refactoring: Object destructuring
- Refactoring: Remove `uiStrings` contents in svg-editor.js (obtains from locale)
- Refactoring: Add favicon to embedded API file
- Refactoring: Use arrow functions for brief functions (incomplete)
- Refactoring: Use `Array.prototype.includes`/`String.prototype.includes`;
    `String.prototype.startsWith`, `String.prototype.trim`
- Refactoring: Remove now unnecessary svgutils do/while resetting of variables
- Refactoring: Use shorthand methods for object literals (avoid ": function")
- Refactoring: Avoid quoting object property keys where unnecessary
- Refactoring: Just do truthy/falsey check for lengths in place of comparison to 0
- Refactoring (Testing): Avoid jQuery usage within most test files (defer script,
    also in preparation for future switch to ES6 modules for tests)
- Refactoring: Make jpicker variable declaration indent bearable
- Refactoring (Linting): Finish svgcanvas.js
- Docs: Mention in comment no longer an entry file as before
- Docs: Migrate old config, extensions, and FAQ docs
- Licensing: Indicate MIT is license type of rgbcolor; rename/add license file name for
    jgraduate and screencast to reflect type (Apache 2.0); rename file to reflect it
    contains license information (of type MIT) for Raphael icons
2018-05-22 18:02:57 +08:00

237 lines
11 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* globals svgEditor */
svgEditor.readLang({
lang: 'fa',
dir: 'ltr',
common: {
ok: '‫تأیید‬',
cancel: '‫لغو‬',
key_backspace: '‫پس بر ',
key_del: '‫حذف ',
key_down: '‫پایین ',
key_up: '‫بالا ',
more_opts: 'More Options',
url: 'URL',
width: 'Width',
height: 'Height'
},
misc: {
powered_by: 'Powered by'
},
ui: {
toggle_stroke_tools: 'Show/hide more stroke tools',
palette_info: '‫برای تغییر رنگ، کلیک کنید. برای تغییر رنگ لبه، کلید تبدیل (shift) را فشرده و کلیک کنید‬',
zoom_level: '‫تغییر بزرگ نمایی‬',
panel_drag: 'Drag left/right to resize side panel'
},
properties: {
id: 'Identify the element',
fill_color: '‫تغییر رنگ‬',
stroke_color: '‫تغییر رنگ لبه‬',
stroke_style: '‫تغییر نقطه چین لبه‬',
stroke_width: '‫تغییر عرض لبه‬',
pos_x: '‫تغییر مختصات X',
pos_y: '‫تغییر مختصات Y',
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: '‫تغییر مختصات cy دایره‬',
circle_r: '‫تغییر شعاع دایره‬',
ellipse_cx: '‫تغییر مختصات cx بیضی‬',
ellipse_cy: '‫تغییر مختصات cy بیضی‬',
ellipse_rx: '‫تغییر شعاع rx بیضی‬',
ellipse_ry: '‫تغییر شعاع ry بیضی‬',
line_x1: '‫تغییر مختصات x آغاز خط‬',
line_x2: '‫تغییر مختصات x پایان خط‬',
line_y1: '‫تغییر مختصات y آغاز خط‬',
line_y2: '‫تغییر مختصات y پایان خط‬',
rect_height: '‫تغییر ارتفاع مستطیل‬',
rect_width: '‫تغییر عرض مستطیل‬',
corner_radius: '‫شعاع گوشه:',
image_width: '‫تغییر عرض تصویر‬',
image_height: '‫تغییر ارتفاع تصویر‬',
image_url: '‫تغییر نشانی وب (url)',
node_x: '‫تغییر مختصات x نقطه‬',
node_y: '‫تغییر مختصات y نقطه‬',
seg_type: '‫تغییر نوع قطعه (segment)',
straight_segments: '‫مستقیم‬',
curve_segments: '‫منحنی‬',
text_contents: '‫تغییر محتویات متن‬',
font_family: '‫تغییر خانواده قلم‬',
font_size: '‫تغییر اندازه قلم‬',
bold: '‫متن توپر ',
italic: '‫متن کج '
},
tools: {
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_connect: 'Connect two objects',
mode_rect: 'Rectangle Tool',
mode_square: 'Square Tool',
mode_fhrect: '‫مستطیل با قابلیت تغییر پویا‬',
mode_ellipse: '‫بیضی‬',
mode_circle: '‫دایره‬',
mode_fhellipse: '‫بیضی با قابلیت تغییر پویا‬',
mode_path: '‫ابزار مسیر ',
mode_shapelib: 'Shape library',
mode_text: '‫ابزار متن ',
mode_image: '‫ابزار تصویر ',
mode_zoom: '‫ابزار بزرگ نمایی ',
mode_eyedropper: 'Eye Dropper Tool',
no_embed: 'NOTE: This image cannot be embedded. It will depend on this path to be displayed',
undo: '‫واگرد ',
redo: '‫ازنو ',
tool_source: '‫ویرایش منبع ',
wireframe_mode: '‫حالت نمایش لبه ها ',
toggle_grid: 'Show/Hide Grid',
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: '‫تبدیل به مسیر‬',
reorient_path: '‫جهت دهی مجدد مسیر‬',
ungroup: '‫خارج کردن عناصر از گروه ',
docprops: '‫مشخصات سند ',
imagelib: 'Image Library',
move_bottom: '‫انتقال به پایین ترین ',
move_top: '‫انتقال به بالاترین ',
node_clone: '‫ایجاد کپی از نقطه‬',
node_delete: '‫حذف نقطه‬',
node_link: '‫پیوند دادن نقاط کنترل‬',
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: 'حذف',
group: 'Group',
move_front: 'Bring to Front',
move_up: 'Bring Forward',
move_down: 'Send Backward',
move_back: 'Send to Back'
},
layers: {
layer: '‫لایه‬',
layers: 'Layers',
del: '‫حذف لایه‬',
move_down: '‫انتقال لایه به پایین‬',
new: '‫لایه جدید‬',
rename: '‫تغییر نام لایه‬',
move_up: '‫انتقال لایه به بالا‬',
dupe: 'Duplicate Layer',
merge_down: 'Merge Down',
merge_all: 'Merge All',
move_elems_to: '‫انتقال عناصر به:',
move_selected: '‫انتقال عناصر انتخاب شده به یک لایه متفاوت‬'
},
config: {
image_props: '‫مشخصات تصویر‬',
doc_title: '‫عنوان‬',
doc_dims: '‫ابعاد صفحه مجازی (بوم)',
included_images: '‫تصاویر گنجانده شده‬',
image_opt_embed: '‫داده های جای داده شده (پرونده های محلی)',
image_opt_ref: '‫استفاده از ارجاع به پرونده‬',
editor_prefs: '‫تنظیمات ویراستار‬',
icon_size: '‫اندازه شمایل‬',
language: '‫زبان‬',
background: '‫پس زمینه ویراستار‬',
editor_img_url: 'Image URL',
editor_bg_note: '‫توجه: پس زمینه همراه تصویر ذخیره نخواهد شد.',
icon_large: '‫بزرگ‬',
icon_medium: '‫متوسط‬',
icon_small: '‫کوچک‬',
icon_xlarge: '‫خیلی بزرگ‬',
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'
},
shape_cats: {
basic: 'Basic',
object: 'Objects',
symbol: 'Symbols',
arrow: 'Arrows',
flowchart: 'Flowchart',
animal: 'Animals',
game: 'Cards & Chess',
dialog_balloon: 'Dialog balloons',
electronics: 'Electronics',
math: 'Mathematical',
music: 'Music',
misc: 'Miscellaneous',
raphael_1: 'raphaeljs.com set 1',
raphael_2: 'raphaeljs.com set 2'
},
imagelib: {
select_lib: 'Select an image library',
show_list: 'Show library list',
import_single: 'Import single',
import_multi: 'Import multiple',
open: 'Open as new document'
},
notification: {
invalidAttrValGiven: '‫مقدار داده شده نامعتبر است‬',
noContentToFitTo: '‫محتوایی برای هم اندازه شدن وجود ندارد‬',
dupeLayerName: '‫لایه ای با آن نام وجود دارد!',
enterUniqueLayerName: '‫لطفا یک نام لایه یکتا انتخاب کنید‬',
enterNewLayerName: '‫لطفا نام لایه جدید را وارد کنید‬',
layerHasThatName: '‫لایه از قبل آن نام را دارد‬',
QmoveElemsToLayer: "‫عناصر انتخاب شده به لایه '%s' منتقل شوند؟‬",
QwantToClear: '‫آیا مطمئن هستید که می خواهید نقاشی را پاک کنید؟\nاین عمل باعث حذف تاریخچه واگرد شما خواهد شد!',
QwantToOpen: 'Do you want to open a new file?\nThis will also erase your undo history!',
QerrorsRevertToSource: '‫در منبع SVG شما خطاهای تجزیه (parse) وجود داشت.\nبه منبع SVG اصلی بازگردانده شود؟‬',
QignoreSourceChanges: '‫تغییرات اعمال شده در منبع SVG نادیده گرفته شوند؟‬',
featNotSupported: '‫این ویژگی پشتیبانی نشده است‬',
enterNewImgURL: '‫نشانی وب (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...',
saveFromBrowser: 'Select "Save As..." in your browser to save this image as a %s file.',
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"...'
}
});