mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
Merge branch 'develop' of github.com:ether/etherpad-lite into support-images
This commit is contained in:
commit
3f8e6faec0
30 changed files with 390 additions and 267 deletions
|
@ -294,15 +294,14 @@ returns the text of a pad formatted as HTML
|
|||
* `{code: 0, message:"ok", data: {html:"Welcome Text<br>More Text"}}`
|
||||
* `{code: 1, message:"padID does not exist", data: null}`
|
||||
|
||||
#### setHTML(padID, text)
|
||||
#### setHTML(padID, html)
|
||||
* API >= 1
|
||||
|
||||
sets the html of a pad
|
||||
sets the text of a pad based on HTML, HTML must be well formed. Malformed HTML will send a warning to the API log.
|
||||
|
||||
*Example returns:*
|
||||
* `{code: 0, message:"ok", data: null}`
|
||||
* `{code: 1, message:"padID does not exist", data: null}`
|
||||
* `{code: 1, message:"text too long", data: null}`
|
||||
|
||||
#### getAttributePool(padID)
|
||||
* API >= 1.2.8
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"1": "Xuacu"
|
||||
}
|
||||
"authors": [
|
||||
"Xuacu"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nuevu bloc",
|
||||
"index.createOpenPad": "o crear/abrir un bloc col nome:",
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Christian List",
|
||||
"1": "Peter Alberti",
|
||||
"3": "Steenth"
|
||||
}
|
||||
"authors": [
|
||||
"Christian List",
|
||||
"Peter Alberti",
|
||||
"Steenth"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Ny Pad",
|
||||
"index.createOpenPad": "eller opret/åbn en Pad med navnet:",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Metalhead64",
|
||||
"1": "Mklehr",
|
||||
"2": "Nipsky",
|
||||
"4": "Wikinaut"
|
||||
}
|
||||
"authors": [
|
||||
"Metalhead64",
|
||||
"Mklehr",
|
||||
"Nipsky",
|
||||
"Wikinaut"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Neues Pad",
|
||||
"index.createOpenPad": "Pad mit folgendem Namen öffnen:",
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Armando-Martin",
|
||||
"1": "Jacobo",
|
||||
"2": "Joker",
|
||||
"3": "Larjona",
|
||||
"4": "Mklehr",
|
||||
"5": "Rubenwap",
|
||||
"7": "VegaDark",
|
||||
"8": "Vivaelcelta",
|
||||
"9": "Xuacu"
|
||||
}
|
||||
"authors": [
|
||||
"Armando-Martin",
|
||||
"Jacobo",
|
||||
"Joker",
|
||||
"Larjona",
|
||||
"Mklehr",
|
||||
"Rubenwap",
|
||||
"VegaDark",
|
||||
"Vivaelcelta",
|
||||
"Xuacu"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nuevo Pad",
|
||||
"index.createOpenPad": "o crea/abre un Pad con el nombre:",
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "BMRG14",
|
||||
"1": "Dalba",
|
||||
"2": "Ebraminio",
|
||||
"3": "Reza1615",
|
||||
"5": "ZxxZxxZ",
|
||||
"6": "الناز"
|
||||
}
|
||||
"authors": [
|
||||
"BMRG14",
|
||||
"Dalba",
|
||||
"Ebraminio",
|
||||
"Reza1615",
|
||||
"ZxxZxxZ",
|
||||
"الناز"
|
||||
]
|
||||
},
|
||||
"index.newPad": "دفترچه یادداشت تازه",
|
||||
"index.createOpenPad": "یا ایجاد/بازکردن یک دفترچه یادداشت با نام:",
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Artnay",
|
||||
"1": "Jl",
|
||||
"2": "Lliehu",
|
||||
"3": "Nedergard",
|
||||
"4": "Nike",
|
||||
"6": "Stryn",
|
||||
"7": "Veikk0.ma",
|
||||
"8": "VezonThunder"
|
||||
}
|
||||
"authors": [
|
||||
"Artnay",
|
||||
"Jl",
|
||||
"Lliehu",
|
||||
"Nedergard",
|
||||
"Nike",
|
||||
"Stryn",
|
||||
"Tomi Toivio",
|
||||
"Veikk0.ma",
|
||||
"VezonThunder"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Uusi muistio",
|
||||
"index.createOpenPad": "tai luo tai avaa muistio nimellä:",
|
||||
|
@ -19,8 +20,8 @@
|
|||
"pad.toolbar.strikethrough.title": "Yliviivaus",
|
||||
"pad.toolbar.ol.title": "Numeroitu lista",
|
||||
"pad.toolbar.ul.title": "Numeroimaton lista",
|
||||
"pad.toolbar.indent.title": "Sisennä",
|
||||
"pad.toolbar.unindent.title": "Ulonna",
|
||||
"pad.toolbar.indent.title": "Sisennä (TAB)",
|
||||
"pad.toolbar.unindent.title": "Ulonna (Shift+TAB)",
|
||||
"pad.toolbar.undo.title": "Kumoa (Ctrl-Z)",
|
||||
"pad.toolbar.redo.title": "Tee uudelleen (Ctrl-Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "Poista kirjoittajavärit",
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Cquoi",
|
||||
"1": "Crochet.david",
|
||||
"2": "Gomoko",
|
||||
"3": "Goofy",
|
||||
"4": "Goofy-bz",
|
||||
"5": "Jean-Frédéric",
|
||||
"6": "Leviathan",
|
||||
"7": "McDutchie",
|
||||
"8": "Metroitendo",
|
||||
"9": "Od1n",
|
||||
"10": "Peter17",
|
||||
"11": "Quenenni",
|
||||
"12": "Rastus Vernon",
|
||||
"14": "Stephane Cottin",
|
||||
"15": "Tux-tn"
|
||||
}
|
||||
"authors": [
|
||||
"Cquoi",
|
||||
"Crochet.david",
|
||||
"Gomoko",
|
||||
"Goofy",
|
||||
"Goofy-bz",
|
||||
"Jean-Frédéric",
|
||||
"Leviathan",
|
||||
"McDutchie",
|
||||
"Metroitendo",
|
||||
"Od1n",
|
||||
"Peter17",
|
||||
"Quenenni",
|
||||
"Rastus Vernon",
|
||||
"Stephane Cottin",
|
||||
"Tux-tn"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nouveau pad",
|
||||
"index.createOpenPad": "ou créer/ouvrir un pad intitulé :",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"1": "Toliño"
|
||||
}
|
||||
"authors": [
|
||||
"Toliño"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Novo documento",
|
||||
"index.createOpenPad": "ou cree/abra un documento co nome:",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Amire80",
|
||||
"1": "Ofrahod",
|
||||
"3": "YaronSh",
|
||||
"4": "תומר ט"
|
||||
}
|
||||
"authors": [
|
||||
"Amire80",
|
||||
"Ofrahod",
|
||||
"YaronSh",
|
||||
"תומר ט"
|
||||
]
|
||||
},
|
||||
"index.newPad": "פנקס חדש",
|
||||
"index.createOpenPad": "ליצור או לפתוח פנקס בשם:",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Dj",
|
||||
"1": "Misibacsi",
|
||||
"2": "R-Joe",
|
||||
"4": "Tgr"
|
||||
}
|
||||
"authors": [
|
||||
"Dj",
|
||||
"Misibacsi",
|
||||
"R-Joe",
|
||||
"Tgr"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Új notesz",
|
||||
"index.createOpenPad": "vagy notesz létrehozása ezen a néven:",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Beta16",
|
||||
"1": "Gianfranco",
|
||||
"2": "Muxator",
|
||||
"4": "Vituzzu"
|
||||
}
|
||||
"authors": [
|
||||
"Beta16",
|
||||
"Gianfranco",
|
||||
"Muxator",
|
||||
"Vituzzu"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nuovo Pad",
|
||||
"index.createOpenPad": "o creare o aprire un Pad con il nome:",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Hym411",
|
||||
"2": "아라"
|
||||
}
|
||||
"authors": [
|
||||
"Hym411",
|
||||
"아라"
|
||||
]
|
||||
},
|
||||
"index.newPad": "새 패드",
|
||||
"index.createOpenPad": "또는 다음 이름으로 패드 만들기/열기:",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"1": "Purodha"
|
||||
}
|
||||
"authors": [
|
||||
"Purodha"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Neu Padd",
|
||||
"index.createOpenPad": "udder maach e Padd op med däm Naame:",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Robby",
|
||||
"2": "Soued031"
|
||||
}
|
||||
"authors": [
|
||||
"Robby",
|
||||
"Soued031"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Neie Pad",
|
||||
"pad.toolbar.ol.title": "Numeréiert Lëscht",
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
"pad.toolbar.strikethrough.title": "Garis lorek",
|
||||
"pad.toolbar.ol.title": "Senarai tertib",
|
||||
"pad.toolbar.ul.title": "Senarai tak tertib",
|
||||
"pad.toolbar.indent.title": "Engsot ke dalam",
|
||||
"pad.toolbar.unindent.title": "Engsot ke luar",
|
||||
"pad.toolbar.indent.title": "Engsot ke dalam (TAB)",
|
||||
"pad.toolbar.unindent.title": "Engsot ke luar (Shift + TAB)",
|
||||
"pad.toolbar.undo.title": "Buat asal (Ctrl-Z)",
|
||||
"pad.toolbar.redo.title": "Buat semula (Ctrl-Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "Padamkan Warna Pengarang",
|
||||
|
@ -66,11 +66,15 @@
|
|||
"pad.modals.initsocketfail.cause": "Ini mungkin disebabkan oleh masalah dengan pelayar atau sambungan internet anda.",
|
||||
"pad.modals.slowcommit.explanation": "Pelayan tidak membalas.",
|
||||
"pad.modals.slowcommit.cause": "Ini mungkin disebabkan oleh masalah dengan kesambungan rangkaian anda.",
|
||||
"pad.modals.badChangeset.explanation": "Suntingan yang telah anda lakukan telah dikira sebagai terlarang oleh pelayan penyegerakan.",
|
||||
"pad.modals.badChangeset.cause": "Ini mungkin disebabkan oleh konfigurasi pelayan salah atau sesuatu kelakuan yang tidak dijangka. Sila hubungi penyelia servis anda jika anda merasakan ini adalah satu kesilapan. Cuba sambungkan semula talian untuk terus menyuntung.",
|
||||
"pad.modals.corruptPad.explanation": "Pad yang anda cuba akses itu telah tercemar.",
|
||||
"pad.modals.corruptPad.cause": "Ini mungkin disebabkan oleh konfigurasi pelayan salah atau sesuatu kelakuan yang tidak dijangka. Sila hubungi penyelia servis anda.",
|
||||
"pad.modals.deleted": "Dihapuskan.",
|
||||
"pad.modals.deleted.explanation": "Pad ini telah dibuang.",
|
||||
"pad.modals.disconnected": "Sambungan anda telah diputuskan.",
|
||||
"pad.modals.disconnected.explanation": "Sambungan ke pelayan terputus",
|
||||
"pad.modals.disconnected.cause": "Pelayan mungkin tidak dapat dicapai. Sila beritahu kami jika masalah ini berterusan.",
|
||||
"pad.modals.disconnected.cause": "Pelayan mungkin tidak dapat dicapai. Sila beritahu penyelia servis jika masalah ini berterusan.",
|
||||
"pad.share": "Kongsikan pad ini",
|
||||
"pad.share.readonly": "Baca sahaja",
|
||||
"pad.share.link": "Pautan",
|
||||
|
|
86
src/locales/ne.json
Normal file
86
src/locales/ne.json
Normal file
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"सरोज कुमार ढकाल"
|
||||
]
|
||||
},
|
||||
"index.newPad": "नयाँ प्याड",
|
||||
"index.createOpenPad": "नाम सहितको नयाँ प्याड सिर्जना गर्ने / खोल्ने :",
|
||||
"pad.toolbar.bold.title": "मोटो (Ctrl-B)",
|
||||
"pad.toolbar.italic.title": "ढल्के (Ctrl-I)",
|
||||
"pad.toolbar.underline.title": "निम्न रेखाङ्कन (Ctrl-U)",
|
||||
"pad.toolbar.strikethrough.title": "बीचको धर्को",
|
||||
"pad.toolbar.ol.title": "क्रमवद्ध सूची",
|
||||
"pad.toolbar.ul.title": "अक्रमाङ्कित सूची",
|
||||
"pad.toolbar.timeslider.title": "टाइमस्लाइडर",
|
||||
"pad.toolbar.savedRevision.title": "पुनरावलोकन संग्रहगर्ने",
|
||||
"pad.toolbar.settings.title": "सेटिङ्गहरू",
|
||||
"pad.toolbar.embed.title": "यस प्याडलाई बाड्ने या इम्बेड गर्ने",
|
||||
"pad.toolbar.showusers.title": "यस प्याडमा रहेका प्रयोगकर्ता देखाउने",
|
||||
"pad.colorpicker.save": "संग्रह गर्ने",
|
||||
"pad.colorpicker.cancel": "रद्द",
|
||||
"pad.loading": "लोड हुदैछ...",
|
||||
"pad.passwordRequired": "यो प्यड खोल्न पासवर्ड चाहिन्छ",
|
||||
"pad.permissionDenied": "तपाईँलाई यस प्याड खोल्न अनुमति छैन",
|
||||
"pad.wrongPassword": "तपाईँको पासवर्ड गलत थियो",
|
||||
"pad.settings.padSettings": "प्याड सेटिङ्गहरू",
|
||||
"pad.settings.myView": "मेरो दृष्य",
|
||||
"pad.settings.stickychat": "पर्दामा सधै च्याट गर्ने",
|
||||
"pad.settings.colorcheck": "लेखकीय रङ्ग",
|
||||
"pad.settings.linenocheck": "हरफ संख्या",
|
||||
"pad.settings.rtlcheck": "के सामग्री दाहिने देखि देब्रे पढ्ने हो ?",
|
||||
"pad.settings.fontType": "फन्ट प्रकार:",
|
||||
"pad.settings.fontType.normal": "सामान्य",
|
||||
"pad.settings.fontType.monospaced": "मोनोस्पेस",
|
||||
"pad.settings.globalView": "विश्वव्यापी दृष्य",
|
||||
"pad.settings.language": "भाषा:",
|
||||
"pad.importExport.import_export": "आयात/निर्यात",
|
||||
"pad.importExport.import": "कुनै पनि पाठ रहेको फाइल या कागजात अपलोड गर्नुहोस्",
|
||||
"pad.importExport.importSuccessful": "सफल भयो!",
|
||||
"pad.importExport.export": "निम्न रुपमा प्याड निर्यात गर्ने :",
|
||||
"pad.importExport.exporthtml": "HTML",
|
||||
"pad.importExport.exportplain": "साधारण पाठ",
|
||||
"pad.importExport.exportword": "माइक्रोसफ्ट वर्ड",
|
||||
"pad.importExport.exportpdf": "पिडिएफ",
|
||||
"pad.importExport.exportopen": "ओडिएफ(खुल्ला कागजात ढाँचा)",
|
||||
"pad.importExport.exportdokuwiki": "डकुविकि",
|
||||
"pad.modals.connected": "जोडीएको।",
|
||||
"pad.modals.reconnecting": "तपाईँको प्याडमा पुन: जडान गर्दै",
|
||||
"pad.modals.deleted": "मेटिएको ।",
|
||||
"pad.modals.deleted.explanation": "यो प्याड हटाइसकेको छ ।",
|
||||
"pad.modals.disconnected": "तपाईँको जडान अवरुद्ध भयो ।",
|
||||
"pad.modals.disconnected.explanation": "तपाईँको सर्भरसँगको जडान अवरुद्ध भयो",
|
||||
"pad.share": "यस प्यडलाई बाड्ने",
|
||||
"pad.share.readonly": "पढ्ने मात्र",
|
||||
"pad.share.link": "लिङ्क",
|
||||
"pad.chat": "कुराकानी",
|
||||
"pad.chat.title": "यस प्याडको लागि कुराकानी खोल्ने",
|
||||
"pad.chat.loadmessages": "थप सन्देशहरू खोल्ने",
|
||||
"timeslider.toolbar.returnbutton": "प्याडमा फर्कनुहोस्",
|
||||
"timeslider.toolbar.authors": "लेखकहरु:",
|
||||
"timeslider.toolbar.authorsList": "कुनै पनि लेखकहरू छैनन्",
|
||||
"timeslider.toolbar.exportlink.title": "निर्यात",
|
||||
"timeslider.exportCurrent": "हालको संस्करण निम्म रुपमा निर्यात गर्ने :",
|
||||
"timeslider.version": "संस्करण {{version}}",
|
||||
"timeslider.saved": "सङ्ग्रह गरिएको {{month}} {{day}}, {{year}}",
|
||||
"timeslider.dateformat": "{{month}}/{{day}}/{{year}} {{hours}}:{{minutes}}:{{seconds}}",
|
||||
"timeslider.month.january": "जनवरी",
|
||||
"timeslider.month.february": "फेब्रुअरी",
|
||||
"timeslider.month.march": "मार्च",
|
||||
"timeslider.month.april": "एप्रील",
|
||||
"timeslider.month.may": "मे",
|
||||
"timeslider.month.june": "जुन",
|
||||
"timeslider.month.july": "जुलाई",
|
||||
"timeslider.month.august": "अगस्ट",
|
||||
"timeslider.month.september": "सेप्टेम्बर",
|
||||
"timeslider.month.october": "अक्टोबर",
|
||||
"timeslider.month.november": "नोभेम्बर",
|
||||
"timeslider.month.december": "डिसेम्बर",
|
||||
"timeslider.unnamedauthors": "{{num}} unnamed {[plural(num) one: author, other: authors ]}",
|
||||
"pad.savedrevs.marked": "यस संस्करणलाई संग्रहितको रुपमा चिनो लगाइएको छैन",
|
||||
"pad.userlist.entername": "तपाईँको नाम लेख्नुहोस्",
|
||||
"pad.userlist.unnamed": "नाम नखुलाइएको",
|
||||
"pad.userlist.guest": "पाहुना",
|
||||
"pad.userlist.deny": "अस्वीकार गर्ने",
|
||||
"pad.userlist.approve": "स्वीकृत गर्ने"
|
||||
}
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"1": "Unhammer"
|
||||
}
|
||||
"authors": [
|
||||
"Unhammer"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Ny blokk",
|
||||
"index.createOpenPad": "eller opprett/opna ei blokk med namnet:",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Rezonansowy",
|
||||
"2": "Ty221",
|
||||
"3": "WTM",
|
||||
"4": "Woytecr"
|
||||
}
|
||||
"authors": [
|
||||
"Rezonansowy",
|
||||
"Ty221",
|
||||
"WTM",
|
||||
"Woytecr"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nowy dokument",
|
||||
"index.createOpenPad": "lub stwórz/otwórz dokument o nazwie:",
|
||||
|
@ -15,8 +15,8 @@
|
|||
"pad.toolbar.strikethrough.title": "Przekreślenie",
|
||||
"pad.toolbar.ol.title": "Lista uporządkowana",
|
||||
"pad.toolbar.ul.title": "Lista nieuporządkowana",
|
||||
"pad.toolbar.indent.title": "Wcięcie",
|
||||
"pad.toolbar.unindent.title": "Zmniejsz wcięcie",
|
||||
"pad.toolbar.indent.title": "Wcięcie (TAB)",
|
||||
"pad.toolbar.unindent.title": "Wcięcie (Shift + TAB)",
|
||||
"pad.toolbar.undo.title": "Cofnij (Ctrl-Z)",
|
||||
"pad.toolbar.redo.title": "Ponów (Ctrl-Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "Usuń kolory autorów",
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Hamilton Abreu",
|
||||
"1": "Luckas",
|
||||
"3": "Tuliouel",
|
||||
"4": "Waldir"
|
||||
}
|
||||
"authors": [
|
||||
"Hamilton Abreu",
|
||||
"Luckas",
|
||||
"Tuliouel",
|
||||
"Waldir"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nova Nota",
|
||||
"index.createOpenPad": "ou crie/abra uma Nota com o nome:",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Lokal Profil",
|
||||
"2": "WikiPhoenix"
|
||||
}
|
||||
"authors": [
|
||||
"Lokal Profil",
|
||||
"WikiPhoenix"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Nytt block",
|
||||
"index.createOpenPad": "eller skapa/öppna ett block med namnet:",
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "JVRKPRASAD",
|
||||
"1": "Malkum",
|
||||
"3": "Veeven"
|
||||
}
|
||||
"authors": [
|
||||
"JVRKPRASAD",
|
||||
"Malkum",
|
||||
"Veeven"
|
||||
]
|
||||
},
|
||||
"index.newPad": "కొత్త పలక",
|
||||
"index.createOpenPad": "ఒక పేరుతో పలకని సృష్టించండి లేదా అదే పేరుతో ఉన్న పలకని తెరవండి",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"authors": [
|
||||
"Emperyan",
|
||||
"Erdemaslancan",
|
||||
"Joseph",
|
||||
"Meelo"
|
||||
]
|
||||
},
|
||||
|
@ -14,8 +15,8 @@
|
|||
"pad.toolbar.strikethrough.title": "Üstü Çizili",
|
||||
"pad.toolbar.ol.title": "Sıralı liste",
|
||||
"pad.toolbar.ul.title": "Sırasız Liste",
|
||||
"pad.toolbar.indent.title": "Girintiyi arttır",
|
||||
"pad.toolbar.unindent.title": "Girintiyi azalt",
|
||||
"pad.toolbar.indent.title": "Girintiyi arttır (TAB)",
|
||||
"pad.toolbar.unindent.title": "Girintiyi azalt (Shift+TAB)",
|
||||
"pad.toolbar.undo.title": "Geri Al (Ctrl-Z)",
|
||||
"pad.toolbar.redo.title": "Yenile (Ctrl-Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "Yazarlık Renklerini Temizle",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Andriykopanytsia",
|
||||
"1": "Base",
|
||||
"2": "Olvin",
|
||||
"4": "Steve.rusyn",
|
||||
"5": "SteveR"
|
||||
}
|
||||
"authors": [
|
||||
"Andriykopanytsia",
|
||||
"Base",
|
||||
"Olvin",
|
||||
"Steve.rusyn",
|
||||
"SteveR"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Створити",
|
||||
"index.createOpenPad": "або створити/відкрити документ з назвою:",
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
"pad.toolbar.strikethrough.title": "删除线",
|
||||
"pad.toolbar.ol.title": "有序列表",
|
||||
"pad.toolbar.ul.title": "无序列表",
|
||||
"pad.toolbar.indent.title": "增加缩进",
|
||||
"pad.toolbar.unindent.title": "减少缩进",
|
||||
"pad.toolbar.indent.title": "增加缩进(TAB)",
|
||||
"pad.toolbar.unindent.title": "减少缩进(Shift+TAB)",
|
||||
"pad.toolbar.undo.title": "撤消 (Ctrl-Z)",
|
||||
"pad.toolbar.redo.title": "重做 (Ctrl-Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "清除作者颜色",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": {
|
||||
"0": "Justincheng12345",
|
||||
"1": "Liuxinyu970226",
|
||||
"2": "Shangkuanlc",
|
||||
"3": "Shirayuki",
|
||||
"5": "Simon Shek"
|
||||
}
|
||||
"authors": [
|
||||
"Justincheng12345",
|
||||
"Liuxinyu970226",
|
||||
"Shangkuanlc",
|
||||
"Shirayuki",
|
||||
"Simon Shek"
|
||||
]
|
||||
},
|
||||
"index.newPad": "新Pad",
|
||||
"index.createOpenPad": "或創建/開啟以下名稱的pad:",
|
||||
|
|
|
@ -361,6 +361,8 @@ exports.getHTML = function(padID, rev, callback)
|
|||
exportHtml.getPadHTML(pad, rev, function(err, html)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||
html += "</body></html>";
|
||||
data = {html: html};
|
||||
callback(null, data);
|
||||
});
|
||||
|
@ -371,6 +373,8 @@ exports.getHTML = function(padID, rev, callback)
|
|||
exportHtml.getPadHTML(pad, undefined, function (err, html)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||
html += "</body></html>";
|
||||
data = {html: html};
|
||||
callback(null, data);
|
||||
});
|
||||
|
@ -378,15 +382,30 @@ exports.getHTML = function(padID, rev, callback)
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
setHTML(padID, html) sets the text of a pad based on HTML
|
||||
|
||||
Example returns:
|
||||
|
||||
{code: 0, message:"ok", data: null}
|
||||
{code: 1, message:"padID does not exist", data: null}
|
||||
*/
|
||||
exports.setHTML = function(padID, html, callback)
|
||||
{
|
||||
//html is required
|
||||
if(typeof html != "string")
|
||||
{
|
||||
callback(new customError("html is no string","apierror"));
|
||||
return;
|
||||
}
|
||||
|
||||
//get the pad
|
||||
getPadSafe(padID, true, function(err, pad)
|
||||
{
|
||||
if(ERR(err, callback)) return;
|
||||
|
||||
// add a new changeset with the new html to the pad
|
||||
importHtml.setPadHTML(pad, cleanText(html));
|
||||
importHtml.setPadHTML(pad, cleanText(html), callback);
|
||||
|
||||
//update the clients on the pad
|
||||
padMessageHandler.updatePadClients(pad, callback);
|
||||
|
|
|
@ -203,7 +203,11 @@ Pad.prototype.getInternalRevisionAText = function getInternalRevisionAText(targe
|
|||
{
|
||||
curRev++;
|
||||
var cs = changesets[curRev];
|
||||
try{
|
||||
atext = Changeset.applyToAText(cs, atext, apool);
|
||||
}catch(e) {
|
||||
return callback(e)
|
||||
}
|
||||
}
|
||||
|
||||
callback(null);
|
||||
|
|
|
@ -1255,7 +1255,7 @@ function handleChangesetRequest(client, message)
|
|||
//build the requested rough changesets and send them back
|
||||
getChangesetInfo(padIds.padId, start, end, granularity, function(err, changesetInfo)
|
||||
{
|
||||
ERR(err);
|
||||
if(err) return console.error('Error while handling a changeset request for '+padIds.padId, err, message.data);
|
||||
|
||||
var data = changesetInfo;
|
||||
data.requestID = message.data.requestID;
|
||||
|
@ -1281,6 +1281,7 @@ function getChangesetInfo(padId, startNum, endNum, granularity, callback)
|
|||
var composedChangesets = {};
|
||||
var revisionDate = [];
|
||||
var lines;
|
||||
var head_revision = 0;
|
||||
|
||||
async.series([
|
||||
//get the pad from the database
|
||||
|
@ -1290,6 +1291,7 @@ function getChangesetInfo(padId, startNum, endNum, granularity, callback)
|
|||
{
|
||||
if(ERR(err, callback)) return;
|
||||
pad = _pad;
|
||||
head_revision = pad.getHeadRevisionNumber();
|
||||
callback();
|
||||
});
|
||||
},
|
||||
|
@ -1369,13 +1371,12 @@ function getChangesetInfo(padId, startNum, endNum, granularity, callback)
|
|||
|
||||
while (compositeStart < endNum)
|
||||
{
|
||||
if (compositeStart + granularity > endNum)
|
||||
var compositeEnd = compositeStart + granularity;
|
||||
if (compositeEnd > endNum || compositeEnd > head_revision)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
var compositeEnd = compositeStart + granularity;
|
||||
|
||||
var forwards = composedChangesets[compositeStart + "/" + compositeEnd];
|
||||
var backwards = Changeset.inverse(forwards, lines.textlines, lines.alines, pad.apool());
|
||||
|
||||
|
@ -1479,7 +1480,7 @@ function getPadLines(padId, revNum, callback)
|
|||
function composePadChangesets(padId, startNum, endNum, callback)
|
||||
{
|
||||
var pad;
|
||||
var changesets = [];
|
||||
var changesets = {};
|
||||
var changeset;
|
||||
|
||||
async.series([
|
||||
|
@ -1498,6 +1499,11 @@ function composePadChangesets(padId, startNum, endNum, callback)
|
|||
{
|
||||
var changesetsNeeded=[];
|
||||
|
||||
var headNum = pad.getHeadRevisionNumber();
|
||||
if (endNum > headNum)
|
||||
endNum = headNum;
|
||||
if (startNum < 0)
|
||||
startNum = 0;
|
||||
//create a array for all changesets, we will
|
||||
//replace the values with the changeset later
|
||||
for(var r=startNum;r<endNum;r++)
|
||||
|
|
|
@ -25,11 +25,6 @@ function setPadHTML(pad, html, callback)
|
|||
{
|
||||
var apiLogger = log4js.getLogger("ImportHtml");
|
||||
|
||||
// Clean the pad. This makes the rest of the code easier
|
||||
// by several orders of magnitude.
|
||||
pad.setText("");
|
||||
var padText = pad.text();
|
||||
|
||||
// Parse the incoming HTML with jsdom
|
||||
try{
|
||||
var doc = jsdom(html.replace(/>\n+</g, '><'));
|
||||
|
@ -44,8 +39,15 @@ function setPadHTML(pad, html, callback)
|
|||
// Convert a dom tree into a list of lines and attribute liens
|
||||
// using the content collector object
|
||||
var cc = contentcollector.makeContentCollector(true, null, pad.pool);
|
||||
try{ // we use a try here because if the HTML is bad it will blow up
|
||||
cc.collectContent(doc.childNodes[0]);
|
||||
}catch(e){
|
||||
apiLogger.warn("HTML was not properly formed", e);
|
||||
return; // We don't process the HTML because it was bad..
|
||||
}
|
||||
|
||||
var result = cc.finish();
|
||||
|
||||
apiLogger.debug('Lines:');
|
||||
var i;
|
||||
for (i = 0; i < result.lines.length; i += 1)
|
||||
|
@ -90,6 +92,7 @@ function setPadHTML(pad, html, callback)
|
|||
// the changeset is ready!
|
||||
var theChangeset = builder.toString();
|
||||
apiLogger.debug('The changeset: ' + theChangeset);
|
||||
pad.setText("");
|
||||
pad.appendRevision(theChangeset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue