Merge remote branch 'ether/develop' into develop

This commit is contained in:
Iván Eixarch 2012-12-06 11:22:05 +01:00
commit f9b6d9f122
30 changed files with 485 additions and 247 deletions

View file

@ -65,7 +65,7 @@
"maxAge" : 21600, // 60 * 60 * 6 = 6 hours "maxAge" : 21600, // 60 * 60 * 6 = 6 hours
/* This is the path to the Abiword executable. Setting it to null, disables abiword. /* This is the path to the Abiword executable. Setting it to null, disables abiword.
Abiword is needed to enable the import/export of pads*/ Abiword is needed to advanced import/export features of pads*/
"abiword" : null, "abiword" : null,
/* This setting is used if you require authentication of all users. /* This setting is used if you require authentication of all users.

36
src/locales/ca.ini Normal file
View file

@ -0,0 +1,36 @@
; Exported from translatewiki.net
; Author: Pginer
; Author: Toniher
[ca]
pad.toolbar.bold.title = Negreta (Ctrl-B)
pad.toolbar.italic.title = Cursiva (Ctrl-I)
pad.toolbar.ol.title = Llista ordenada
pad.toolbar.ul.title = Llista sense ordenar
pad.toolbar.undo.title = Desfés (Ctrl-Z)
pad.toolbar.redo.title = Refés (Ctrl-Y)
pad.toolbar.settings.title = Configuració
pad.colorpicker.save = Desa
pad.colorpicker.cancel = Cancel·la
pad.loading = S'està carregant...
pad.settings.fontType.normal = Normal
pad.settings.language = Llengua:
pad.importExport.import_export = Importació/exportació
pad.importExport.exporthtml = HTML
pad.importExport.exportplain = Text net
pad.modals.slowcommit.explanation = El servidor no respon.
pad.share.readonly = Només de lectura
pad.share.link = Enllaç
timeslider.toolbar.authors = Autors:
timeslider.toolbar.authorsList = No hi ha autors
timeslider.month.january = Gener
timeslider.month.february = Febrer
timeslider.month.march = Març
timeslider.month.april = Abril
timeslider.month.may = Maig
timeslider.month.june = Juny
timeslider.month.july = Juliol
timeslider.month.august = Agost
timeslider.month.september = Setembre
timeslider.month.october = Octubre
timeslider.month.november = Novembre
timeslider.month.december = Desembre

View file

@ -1,5 +1,6 @@
; Exported from translatewiki.net ; Exported from translatewiki.net
; Author: Metalhead64 ; Author: Metalhead64
; Author: Mklehr
; Author: Wikinaut ; Author: Wikinaut
[de] [de]
index.newPad = Neues Pad index.newPad = Neues Pad
@ -77,3 +78,18 @@ timeslider.toolbar.returnbutton = Zurück zum Pad
timeslider.toolbar.authors = Autoren: timeslider.toolbar.authors = Autoren:
timeslider.toolbar.authorsList = keine Autoren timeslider.toolbar.authorsList = keine Autoren
timeslider.exportCurrent = Exportiere diese Version als: timeslider.exportCurrent = Exportiere diese Version als:
timeslider.version = Version {{version}}
timeslider.saved = Gespeichert am {{day}}.{{month}}.{{year}}
timeslider.dateformat = {{day}}.{{month}}.{{year}} {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = Januar
timeslider.month.february = Februar
timeslider.month.march = März
timeslider.month.april = April
timeslider.month.may = Mai
timeslider.month.june = Juni
timeslider.month.july = Juli
timeslider.month.august = August
timeslider.month.september = September
timeslider.month.october = Oktober
timeslider.month.november = November
timeslider.month.december = Dezember

View file

@ -21,6 +21,9 @@ pad.toolbar.showusers.title = Show the users on this pad
pad.colorpicker.save = Save pad.colorpicker.save = Save
pad.colorpicker.cancel = Cancel pad.colorpicker.cancel = Cancel
pad.loading = Loading... pad.loading = Loading...
pad.passwordRequired = You need a password to access this pad
pad.permissionDenied = You do not have permission to access this pad
pad.wrongPassword = Your password was wrong
pad.settings.padSettings = Pad Settings pad.settings.padSettings = Pad Settings
pad.settings.myView = My View pad.settings.myView = My View
pad.settings.stickychat = Chat always on screen pad.settings.stickychat = Chat always on screen
@ -41,6 +44,7 @@ pad.importExport.exportword = Microsoft Word
pad.importExport.exportpdf = PDF pad.importExport.exportpdf = PDF
pad.importExport.exportopen = ODF (Open Document Format) pad.importExport.exportopen = ODF (Open Document Format)
pad.importExport.exportdokuwiki = DokuWiki pad.importExport.exportdokuwiki = DokuWiki
pad.importExport.abiword.innerHTML = You only can import from plain text or html formats. For more advanced import features please <a href="https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-in-Ubuntu-or-OpenSuse-or-SLES-with-AbiWord">install abiword</a>.
pad.modals.connected = Connected. pad.modals.connected = Connected.
pad.modals.reconnecting = Reconnecting to your pad.. pad.modals.reconnecting = Reconnecting to your pad..
pad.modals.forcereconnect = Force reconnect pad.modals.forcereconnect = Force reconnect

View file

@ -1,4 +1,5 @@
; Exported from translatewiki.net ; Exported from translatewiki.net
; Author: Armando-Martin
; Author: Jacobo ; Author: Jacobo
; Author: McDutchie ; Author: McDutchie
; Author: Xuacu ; Author: Xuacu
@ -45,6 +46,7 @@ pad.importExport.exportword = Microsoft Word
pad.importExport.exportpdf = PDF pad.importExport.exportpdf = PDF
pad.importExport.exportopen = ODF (Open Document Format) pad.importExport.exportopen = ODF (Open Document Format)
pad.importExport.exportdokuwiki = DokuWiki pad.importExport.exportdokuwiki = DokuWiki
pad.importExport.abiword.innerHTML = Sólo puede importar formatos de texto plano o html. Para funciones más avanzadas instale <a href="https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-in-Ubuntu-or-OpenSuse-or-SLES-with-AbiWord">abiword</a>.
pad.modals.connected = Conectado. pad.modals.connected = Conectado.
pad.modals.reconnecting = Reconectando a tu pad.. pad.modals.reconnecting = Reconectando a tu pad..
pad.modals.forcereconnect = Reconexión forzosa pad.modals.forcereconnect = Reconexión forzosa
@ -78,3 +80,18 @@ timeslider.toolbar.returnbutton = Volver al pad
timeslider.toolbar.authors = Autores: timeslider.toolbar.authors = Autores:
timeslider.toolbar.authorsList = Sin autores timeslider.toolbar.authorsList = Sin autores
timeslider.exportCurrent = Exportar la versión actual como: timeslider.exportCurrent = Exportar la versión actual como:
timeslider.version = Versión {{version}}
timeslider.saved = Guardado el {{day}} de {{month}} de {{year}}
timeslider.dateformat = {{day}}/{{month}}/{{year}} {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = Enero
timeslider.month.february = Febrero
timeslider.month.march = Marzo
timeslider.month.april = Abril
timeslider.month.may = Mayo
timeslider.month.june = Junio
timeslider.month.july = Julio
timeslider.month.august = Agosto
timeslider.month.september = Septiembre
timeslider.month.october = Octubre
timeslider.month.november = Noviembre
timeslider.month.december = Diciembre

View file

@ -5,7 +5,7 @@
; Author: Nike ; Author: Nike
[fi] [fi]
index.newPad = Uusi muistio index.newPad = Uusi muistio
index.createOpenPad = tai luo/avaa muistio nimellä: index.createOpenPad = tai luo tai avaa muistio nimellä:
pad.toolbar.bold.title = Lihavointi (Ctrl-B) pad.toolbar.bold.title = Lihavointi (Ctrl-B)
pad.toolbar.italic.title = Kursivointi (Ctrl-I) pad.toolbar.italic.title = Kursivointi (Ctrl-I)
pad.toolbar.underline.title = Alleviivaus (Ctrl-U) pad.toolbar.underline.title = Alleviivaus (Ctrl-U)

View file

@ -1,6 +1,7 @@
; Exported from translatewiki.net ; Exported from translatewiki.net
; Author: Crochet.david ; Author: Crochet.david
; Author: Gomoko ; Author: Gomoko
; Author: Goofy
; Author: Jean-Frédéric ; Author: Jean-Frédéric
; Author: Leviathan ; Author: Leviathan
; Author: McDutchie ; Author: McDutchie
@ -13,14 +14,14 @@ pad.toolbar.italic.title = Italique (Ctrl-I)
pad.toolbar.underline.title = Souligner (Ctrl-U) pad.toolbar.underline.title = Souligner (Ctrl-U)
pad.toolbar.strikethrough.title = Barrer pad.toolbar.strikethrough.title = Barrer
pad.toolbar.ol.title = Liste ordonnée pad.toolbar.ol.title = Liste ordonnée
pad.toolbar.ul.title = Liste non-ordonnée pad.toolbar.ul.title = Liste à puces
pad.toolbar.indent.title = Indenter pad.toolbar.indent.title = Indenter
pad.toolbar.unindent.title = Désindenter pad.toolbar.unindent.title = Désindenter
pad.toolbar.undo.title = Annuler (Ctrl-Z) pad.toolbar.undo.title = Annuler (Ctrl-Z)
pad.toolbar.redo.title = Rétablir (Ctrl-Y) pad.toolbar.redo.title = Rétablir (Ctrl-Y)
pad.toolbar.clearAuthorship.title = Effacer les couleurs identifiant les auteurs pad.toolbar.clearAuthorship.title = Effacer les couleurs identifiant les auteurs
pad.toolbar.import_export.title = Importer/Exporter de/vers un format de fichier différent pad.toolbar.import_export.title = Importer/Exporter de/vers un format de fichier différent
pad.toolbar.timeslider.title = Navigateur dhistorique pad.toolbar.timeslider.title = Historique dynamique
pad.toolbar.savedRevision.title = Versions enregistrées pad.toolbar.savedRevision.title = Versions enregistrées
pad.toolbar.settings.title = Paramètres pad.toolbar.settings.title = Paramètres
pad.toolbar.embed.title = Intégrer ce Pad pad.toolbar.embed.title = Intégrer ce Pad
@ -30,9 +31,9 @@ pad.colorpicker.cancel = Annuler
pad.loading = Chargement… pad.loading = Chargement…
pad.settings.padSettings = Paramètres du Pad pad.settings.padSettings = Paramètres du Pad
pad.settings.myView = Ma vue pad.settings.myView = Ma vue
pad.settings.stickychat = Messagerie toujours affichée pad.settings.stickychat = Toujours afficher le chat
pad.settings.colorcheck = Couleurs didentification pad.settings.colorcheck = Couleurs didentification
pad.settings.linenocheck = Numéros des lignes pad.settings.linenocheck = Numéros de lignes
pad.settings.fontType = Type de police : pad.settings.fontType = Type de police :
pad.settings.fontType.normal = Normal pad.settings.fontType.normal = Normal
pad.settings.fontType.monospaced = Monospace pad.settings.fontType.monospaced = Monospace
@ -55,29 +56,44 @@ pad.modals.uderdup = Ouvert dans une autre fenêtre
pad.modals.userdup.explanation = Il semble que ce Pad soit ouvert dans plusieurs fenêtres de votre navigateur sur cet ordinateur. pad.modals.userdup.explanation = Il semble que ce Pad soit ouvert dans plusieurs fenêtres de votre navigateur sur cet ordinateur.
pad.modals.userdup.advice = Se reconnecter en utilisant cette fenêtre. pad.modals.userdup.advice = Se reconnecter en utilisant cette fenêtre.
pad.modals.unauth = Non autorisé pad.modals.unauth = Non autorisé
pad.modals.unauth.explanation = Vos permissions ont été changées lors de la visualisation de cette page. Essayer de vous reconnecter. pad.modals.unauth.explanation = Vos permissions ont été changées lors de l'affichage de cette page. Essayer de vous reconnecter.
pad.modals.looping = Déconnecté. pad.modals.looping = Déconnecté.
pad.modals.looping.explanation = Nous éprouvons un problème de communication au serveur de synchronisation. pad.modals.looping.explanation = Nous éprouvons un problème de communication au serveur de synchronisation.
pad.modals.looping.cause = Il est possible que leur connection soit protégée par un pare-feu incompatible ou un serveur proxy incompatible. pad.modals.looping.cause = Il est possible que votre connexion soit protégée par un pare-feu incompatible ou un serveur proxy incompatible.
pad.modals.initsocketfail = Le serveur est introuvable. pad.modals.initsocketfail = Le serveur est introuvable.
pad.modals.initsocketfail.explanation = Impossible de se connecter au serveur de synchronisation. pad.modals.initsocketfail.explanation = Impossible de se connecter au serveur de synchronisation.
pad.modals.initsocketfail.cause = La cause de ce problème peut être liée à votre fureteur web. pad.modals.initsocketfail.cause = Le problème peut venir de votre navigateur web ou de votre connexion Internet.
pad.modals.slowcommit = Déconnecté. pad.modals.slowcommit = Déconnecté.
pad.modals.slowcommit.explanation = Le serveur ne répond pas. pad.modals.slowcommit.explanation = Le serveur ne répond pas.
pad.modals.slowcommit.cause = La cause de ce problème peut être liée à une erreur de connectivité du réseau. pad.modals.slowcommit.cause = Ce problème peut venir d'une mauvaise connectivité au réseau.
pad.modals.deleted = Supprimé. pad.modals.deleted = Supprimé.
pad.modals.deleted.explanation = Ce Pad a été supprimé. pad.modals.deleted.explanation = Ce Pad a été supprimé.
pad.modals.disconnected = Vous avez été déconnecté. pad.modals.disconnected = Vous avez été déconnecté.
pad.modals.disconnected.explanation = La connexion au serveur a échoué. pad.modals.disconnected.explanation = La connexion au serveur a échoué.
pad.modals.disconnected.cause = Ce serveur est possiblement hors-ligne. Veuillez nous joindre si le problème persiste. pad.modals.disconnected.cause = Il se peut que le serveur soit indisponible. Veuillez nous en informer si le problème persiste.
pad.share = Partager ce Pad pad.share = Partager ce Pad
pad.share.readonly = Lecture seule pad.share.readonly = Lecture seule
pad.share.link = Lien pad.share.link = Lien
pad.share.emebdcode = Lien à intégrer pad.share.emebdcode = Lien à intégrer
pad.chat = Messagerie pad.chat = Chat
pad.chat.title = Ouvrir la messagerie liée au Pad. pad.chat.title = Ouvrir le chat associé à ce pad.
timeslider.pageTitle = {{appTitle}} Curseur temporel timeslider.pageTitle = Historique dynamique de {{appTitle}}
timeslider.toolbar.returnbutton = Retour à ce Pad. timeslider.toolbar.returnbutton = Retour à ce Pad.
timeslider.toolbar.authors = Auteurs : timeslider.toolbar.authors = Auteurs :
timeslider.toolbar.authorsList = Aucun auteur timeslider.toolbar.authorsList = Aucun auteur
timeslider.exportCurrent = Exporter version actuelle vers : timeslider.exportCurrent = Exporter la version actuelle en :
timeslider.version = Version {{version}}
timeslider.saved = Enregistré le {{day}} {{month}} {{year}}
timeslider.dateformat = {{day}}/{{month}}/{{year}} à {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = Janvier
timeslider.month.february = Février
timeslider.month.march = Mars
timeslider.month.april = Avril
timeslider.month.may = Mai
timeslider.month.june = Juin
timeslider.month.july = Juillet
timeslider.month.august = Août
timeslider.month.september = Septembre
timeslider.month.october = Octobre
timeslider.month.november = Novembre
timeslider.month.december = Décembre

View file

@ -76,3 +76,18 @@ timeslider.toolbar.returnbutton = Volver ao documento
timeslider.toolbar.authors = Autores: timeslider.toolbar.authors = Autores:
timeslider.toolbar.authorsList = Ningún autor timeslider.toolbar.authorsList = Ningún autor
timeslider.exportCurrent = Exportar a versión actual en formato: timeslider.exportCurrent = Exportar a versión actual en formato:
timeslider.version = Versión {{version}}
timeslider.saved = Gardado o {{day}} de {{month}} de {{year}}
timeslider.dateformat = {{day}}/{{month}}/{{year}} {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = xaneiro
timeslider.month.february = febreiro
timeslider.month.march = marzo
timeslider.month.april = abril
timeslider.month.may = maio
timeslider.month.june = xuño
timeslider.month.july = xullo
timeslider.month.august = agosto
timeslider.month.september = setembro
timeslider.month.october = outubro
timeslider.month.november = novembro
timeslider.month.december = decembro

View file

@ -76,3 +76,18 @@ timeslider.toolbar.returnbutton = パッドに戻る
timeslider.toolbar.authors = 作者: timeslider.toolbar.authors = 作者:
timeslider.toolbar.authorsList = 作者なし timeslider.toolbar.authorsList = 作者なし
timeslider.exportCurrent = 現在の版をエクスポートする形式: timeslider.exportCurrent = 現在の版をエクスポートする形式:
timeslider.version = バージョン {{version}}
timeslider.saved = | {{year}}年{{month}}{{day}}日に保存
timeslider.dateformat = {{year}}年{{month}}{{day}}日 {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = 1月
timeslider.month.february = 2月
timeslider.month.march = 3月
timeslider.month.april = 4月
timeslider.month.may = 5月
timeslider.month.june = 6月
timeslider.month.july = 7月
timeslider.month.august = 8月
timeslider.month.september = 9月
timeslider.month.october = 10月
timeslider.month.november = 11月
timeslider.month.december = 12月

View file

@ -40,10 +40,8 @@ pad.importExport.export = Don dat Pädd äxpoteere alß:
pad.importExport.exporthtml = HTML pad.importExport.exporthtml = HTML
pad.importExport.exportplain = Eijfach Täx pad.importExport.exportplain = Eijfach Täx
pad.importExport.exportword = Microsoft Word pad.importExport.exportword = Microsoft Word
pad.importExport.exportpdf = <i lang="en">PDF</i> pad.importExport.exportpdf = PDF (Poteerbaa Dokemänte Fommaat)
(Poteerbaa Dokemänte Fommaat) pad.importExport.exportopen = ODF (Offe Dokemänte-Fommaat)
pad.importExport.exportopen = <i lang="en">ODF</i>
(Offe Dokemänte-Fommaat)
pad.importExport.exportdokuwiki = DokuWiki pad.importExport.exportdokuwiki = DokuWiki
pad.modals.connected = Verbonge. pad.modals.connected = Verbonge.
pad.modals.reconnecting = Ben wider aam Verbenge&nbsp;&hellip; pad.modals.reconnecting = Ben wider aam Verbenge&nbsp;&hellip;
@ -55,7 +53,7 @@ pad.modals.unauth = Nit berääschtesch
pad.modals.unauth.explanation = Ding Berääschtejong hät sesch jeändert, derwiehl De di Sigg aam beloore wohrß. Versöhk en neu Verbendong ze maache. pad.modals.unauth.explanation = Ding Berääschtejong hät sesch jeändert, derwiehl De di Sigg aam beloore wohrß. Versöhk en neu Verbendong ze maache.
pad.modals.looping = De Verbendong es fott. pad.modals.looping = De Verbendong es fott.
pad.modals.looping.explanation = Et jitt Probleeme met dä Verbendong mem ẞööver för de Schriiver ier Aandeile zesamme_ze_bränge. pad.modals.looping.explanation = Et jitt Probleeme met dä Verbendong mem ẞööver för de Schriiver ier Aandeile zesamme_ze_bränge.
pad.modals.looping.cause = Künnt sin, Ding Verbendong jeiht dorj_en onzopaß <i lang="en">proxy</i>-ööver udder <i lang="en">firewall</i> pad.modals.looping.cause = Künnt sin, Ding Verbendong jeiht dorj_ene onzopaß <i lang="en">proxy</i>-ööver udder <i lang="en">firewall</i>.
pad.modals.initsocketfail = Dä ẞööver es nit ze äreische. pad.modals.initsocketfail = Dä ẞööver es nit ze äreische.
pad.modals.initsocketfail.explanation = Kein Verbendong met däm ẞööver ze krijje. pad.modals.initsocketfail.explanation = Kein Verbendong met däm ẞööver ze krijje.
pad.modals.initsocketfail.cause = Dat künnt aam Brauser udder aan däm singer Verbendong övver et Internet lijje. pad.modals.initsocketfail.cause = Dat künnt aam Brauser udder aan däm singer Verbendong övver et Internet lijje.
@ -79,3 +77,18 @@ timeslider.toolbar.returnbutton = Jangk retuur nohm Pädd
timeslider.toolbar.authors = Schriiver: timeslider.toolbar.authors = Schriiver:
timeslider.toolbar.authorsList = Kein Schriivere timeslider.toolbar.authorsList = Kein Schriivere
timeslider.exportCurrent = Donn de meußte Väsjohn äxpotteere alß: timeslider.exportCurrent = Donn de meußte Väsjohn äxpotteere alß:
timeslider.version = Väsjon {{version}}
timeslider.saved = Faßjehallde aam {{day}}. {{month}} {{year}}
timeslider.dateformat = amm {{day}}. {{month}} {{year}} öm {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = Jannewaa
timeslider.month.february = Fääbrowaa
timeslider.month.march = Määz
timeslider.month.april = Apprell
timeslider.month.may = Mai
timeslider.month.june = Juuni
timeslider.month.july = Juuli
timeslider.month.august = Oujoß
timeslider.month.september = Säptämber
timeslider.month.october = Oktoober
timeslider.month.november = Novämber
timeslider.month.december = Dezämber

View file

@ -76,3 +76,18 @@ timeslider.toolbar.returnbutton = Назад на тетратката
timeslider.toolbar.authors = Автори: timeslider.toolbar.authors = Автори:
timeslider.toolbar.authorsList = Нема автори timeslider.toolbar.authorsList = Нема автори
timeslider.exportCurrent = Извези ја тековната верзија како: timeslider.exportCurrent = Извези ја тековната верзија како:
timeslider.version = Верзија {{version}}
timeslider.saved = Зачувано на {{day}} {{month}} {{year}} г.
timeslider.dateformat = {{day}}/{{month}}/{{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 = декември

View file

@ -1,78 +1,93 @@
; Exported from translatewiki.net ; Exported from translatewiki.net
; Author: Praveenp
; Author: Santhosh.thottingal ; Author: Santhosh.thottingal
[ml] [ml]
index.newPad = പുതിയ ഏടു index.newPad = പുതിയ പാഡ
index.createOpenPad = അല്ലെങ്കിൽ പേരുകൊടുത്തു് ഒരു ഏടുണ്ടാക്കുകയോ തുറക്കുകയോ ചെയ്യുക index.createOpenPad = അല്ലെങ്കിൽ പേരുപയോഗിച്ച് പാഡ് സൃഷ്ടിക്കുക/തുറക്കുക:
pad.toolbar.bold.title = കട്ടി (Ctrl-B) pad.toolbar.bold.title = കട്ടികൂട്ടിയെഴുതുക (Ctrl-B)
pad.toolbar.italic.title = ചെരിക്കുക (Ctrl-I) pad.toolbar.italic.title = ചെരിച്ചെഴുതുക (Ctrl-I)
pad.toolbar.underline.title = അടിവര (Ctrl-U) pad.toolbar.underline.title = അടിവരയിടുക (Ctrl-U)
pad.toolbar.strikethrough.title = വെട്ടുക pad.toolbar.strikethrough.title = വെട്ടുക
pad.toolbar.ol.title = ക്രമത്തിലുള്ള പട്ടിക pad.toolbar.ol.title = ക്രമത്തിലുള്ള പട്ടിക
pad.toolbar.ul.title = ക്രമരഹിത പട്ടിക pad.toolbar.ul.title = ക്രമരഹിത പട്ടിക
pad.toolbar.indent.title = വലത്തേക്ക് തള്ളുക pad.toolbar.indent.title = വലത്തേക്ക് തള്ളുക
pad.toolbar.unindent.title = ഇടത്തേക്ക് തള്ളുക pad.toolbar.unindent.title = ഇടത്തേക്ക് തള്ളുക
pad.toolbar.undo.title = വേണ്ട (Ctrl-Z) pad.toolbar.undo.title = തിരസ്കരിക്കുക (Ctrl-Z)
pad.toolbar.redo.title = വീണ്ടും (Ctrl-Y) pad.toolbar.redo.title = വീണ്ടും ചെയ്യുക (Ctrl-Y)
pad.toolbar.clearAuthorship.title = എഴുത്തിയവർക്കുള്ള നിറം കളയുക pad.toolbar.clearAuthorship.title = രചയിതാക്കൾക്കുള്ള നിറം കളയുക
pad.toolbar.import_export.title = ിവിധ ഫയൽത്തരങ്ങളിലേക്ക്/നിന്നും എടുക്കുക pad.toolbar.import_export.title = ്യത്യസ്ത ഫയൽ തരങ്ങളിലേക്ക്/തരങ്ങളിൽ നിന്ന് ഇറക്കുമതി/കയറ്റുമതി ചെയ്യുക
pad.toolbar.timeslider.title = സമയരേഖ pad.toolbar.timeslider.title = സമയരേഖ
pad.toolbar.savedRevision.title = എടുത്തുവെച്ച ലക്കങ്ങ pad.toolbar.savedRevision.title = സേവ് ചെയ്തിട്ടുള്ള നാൾപ്പതിപ്പുക
pad.toolbar.settings.title = ക്രമീകരണങ്ങൾ pad.toolbar.settings.title = സജ്ജീകരണങ്ങൾ
pad.toolbar.embed.title = ഏടു് ഉൾപ്പെടുത്തുക pad.toolbar.embed.title = പാഡ് എംബെഡ് ചെയ്യുക
pad.toolbar.showusers.title = ഏടിലുള്ളവരെ കാണുക pad.toolbar.showusers.title = പാഡിലുള്ള ഉപയോക്താക്കളെ പ്രദർശിപ്പിക്കുക
pad.colorpicker.save = എടുത്തുവെയ്ക്കുക pad.colorpicker.save = സേവ് ചെയ്യുക
pad.colorpicker.cancel = റദ്ദാക്കുക pad.colorpicker.cancel = റദ്ദാക്കുക
pad.loading = എടുക്കുന്നു... pad.loading = ശേഖരിക്കുന്നു...
pad.settings.padSettings = ഏടിന്റെ ക്രമീകരണങ്ങൾ pad.settings.padSettings = പാഡ് സജ്ജീകരണങ്ങൾ
pad.settings.myView = എന്റെ കാഴ്ച pad.settings.myView = എന്റെ കാഴ്ച
pad.settings.stickychat = സംവാദം കാണിക്കുക pad.settings.stickychat = തത്സമയം സംവാദം എപ്പോഴും സ്ക്രീനിൽ കാണിക്കുക
pad.settings.colorcheck = എഴുത്തുകാർക്കുള്ള നിറങ്ങൾ pad.settings.colorcheck = എഴുത്തുകാർക്കുള്ള നിറങ്ങൾ
pad.settings.linenocheck = എണ്ണമിട്ട വരികൾ pad.settings.linenocheck = എണ്ണമിട്ട വരികൾ
pad.settings.fontType = അക്ഷരത്തിന്റെ തരം pad.settings.fontType = ഫോണ്ട് തരം:
pad.settings.fontType.normal = സാധാരണം pad.settings.fontType.normal = സാധാരണം
pad.settings.fontType.monospaced = ഒരേവീതി pad.settings.fontType.monospaced = മോണോസ്പേസ്
pad.settings.globalView = മൊത്തക്കാഴ്ച pad.settings.globalView = മൊത്തക്കാഴ്ച
pad.settings.language = ഭാഷ: pad.settings.language = ഭാഷ:
pad.importExport.import_export = എടുക്കുക/കയറ്റുക pad.importExport.import_export = ഇറക്കുമതി/കയറ്റുമതി ചെയ്യുക
pad.importExport.import = ഫയലോ രേഖയോ കേറ്റൂ pad.importExport.import = എന്തെങ്കിലും എഴുത്തു പ്രമാണമോ രേഖയോ അപ്‌ലോഡ് ചെയ്യു
pad.importExport.successful = വിജയകരം! pad.importExport.successful = വിജയകരം!
pad.importExport.export = ഈ ഏടു് എടുത്തുവെയ്ക്കുക: pad.importExport.export = ഇപ്പോഴത്തെ പാഡ് ഇങ്ങനെ കയറ്റുമതി ചെയ്യുക:
pad.importExport.exporthtml = HTML pad.importExport.exporthtml = എച്ച്.റ്റി.എം.എൽ.
pad.importExport.exportplain = വെറും എഴുത്ത pad.importExport.exportplain = വെറും എഴുത്ത
pad.importExport.exportword = Microsoft Word pad.importExport.exportword = മൈക്രോസോഫ്റ്റ് വേഡ്
pad.importExport.exportpdf = PDF pad.importExport.exportpdf = പി.ഡി.എഫ്.
pad.importExport.exportopen = ODF (Open Document Format) pad.importExport.exportopen = ഒ.ഡി.എഫ്. (ഓപ്പൺ ഡോക്യുമെന്റ് ഫോർമാറ്റ്)
pad.importExport.exportdokuwiki = DokuWiki pad.importExport.exportdokuwiki = ഡോകുവിക്കി
pad.modals.connected = ബന്ധിപ്പിച്ചിരിക്കുന്നു. pad.modals.connected = ബന്ധിപ്പിച്ചിരിക്കുന്നു.
pad.modals.reconnecting = ഏടു് വീണ്ടും ബന്ധിപ്പിക്കുന്നു... pad.modals.reconnecting = താങ്കളുടെ പാഡിലേയ്ക്ക് വീണ്ടും ബന്ധിപ്പിക്കുന്നു...
pad.modals.forcereconnect = എന്തായാലും ബന്ധിപ്പിക്കുക pad.modals.forcereconnect = എന്തായാലും ബന്ധിപ്പിക്കുക
pad.modals.uderdup = വേറെ ജാലകത്തിൽ തുറന്നു pad.modals.uderdup = മറ്റൊരു ജാലകത്തിൽ തുറന്നു
pad.modals.userdup.explanation = ഏടു് ഒന്നിലധികം ബൌസർ ജാലകങ്ങളിൽ ഈ കമ്പ്യൂട്ടറിൽ തുറന്നതായി കാണുന്നു. pad.modals.userdup.explanation = കമ്പ്യൂട്ടറിൽ ഈ പാഡ് ഒന്നിലധികം ബ്രൗസർ ജാലകങ്ങളിൽ തുറന്നതായി കാണുന്നു.
pad.modals.userdup.advice = ഈ ജാലകം തന്നെ ഉപയോഗിക്കാനായി ബന്ധിപ്പിക്കുക pad.modals.userdup.advice = ഈ ജാലകം തന്നെ ഉപയോഗിക്കാനായി ബന്ധിപ്പിക്കുക
pad.modals.unauth = അനുവാദമില്ല. pad.modals.unauth = അനുവാദമില്ല
pad.modals.unauth.explanation = നിങ്ങളുടെ അനുവാദങ്ങൾ മാറിയിരിക്കുന്നു. വീണ്ടും ബന്ധിപ്പിക്കുക pad.modals.unauth.explanation = ഈ താൾ കണ്ടുകൊണ്ടിരിക്കെ താങ്കൾക്കുള്ള അനുമതികളിൽ മാറ്റമുണ്ടായി. വീണ്ടും ബന്ധപ്പെടാൻ ശ്രമിക്കുക.
pad.modals.looping = വേർപെട്ടു. pad.modals.looping = വേർപെട്ടു.
pad.modals.looping.explanation = െർവറുമായുള്ള സംവേദനത്തിൽ തകരാറു് pad.modals.looping.explanation = ിംക്രണൈസേഷൻ സെർവറുമായുള്ള ആശയവിനിമയത്തിൽ പ്രശ്നങ്ങളുണ്ട്.
pad.modals.looping.cause = ഒരുപക്ഷേ പറ്റാത്ത ഫയർവാളിലൂടെയോ പ്രോക്സിയിലൂടെയോ ബന്ധിപ്പിച്ചിരിക്കാം pad.modals.looping.cause = ഒരുപക്ഷേ പൊരുത്തപ്പെടാത്ത ഫയർവാളിലൂടെയോ പ്രോക്സിയിലൂടെയോ ആകാം താങ്കൾ ബന്ധിച്ചിരുന്നത്.
pad.modals.initsocketfail = സെർവറിലെത്താൻ പറ്റുന്നില്ല. pad.modals.initsocketfail = സെർവറിലെത്താൻ പറ്റുന്നില്ല.
pad.modals.initsocketfail.explanation = െർവറുമായി ബന്ധപ്പെടാൻ കഴിയുന്നില്ല pad.modals.initsocketfail.explanation = ിംക്രണൈസേഷൻ സെർവറുമായി ബന്ധപ്പെടാൻ കഴിഞ്ഞില്ല.
pad.modals.initsocketfail.cause = ഇന്റർനെറ്റ് കണക്ഷന്റെയോ ബ്രസറിന്റെയോ പ്രശ്നമാകാം pad.modals.initsocketfail.cause = ഇന്റർനെറ്റ് കണക്ഷന്റെയോ ബ്രസറിന്റെയോ പ്രശ്നമാകാം
pad.modals.slowcommit = വേർപെട്ടു. pad.modals.slowcommit = വേർപെട്ടു.
pad.modals.slowcommit.explanation = സെർവർ പ്രതികരിക്കുന്നില്ല. pad.modals.slowcommit.explanation = സെർവർ പ്രതികരിക്കുന്നില്ല.
pad.modals.slowcommit.cause = നെറ്റ്‌വർക്ക് പ്രശ്നം കാരണമാകാം. pad.modals.slowcommit.cause = നെറ്റ്‌വർക്ക് പ്രശ്നം കാരണമാകാം.
pad.modals.deleted = മായ്ച്ചു pad.modals.deleted = മായ്ച്ചു
pad.modals.deleted.explanation = ഏടു് കളഞ്ഞു pad.modals.deleted.explanation = പാഡ് നീക്കം ചെയ്തു.
pad.modals.disconnected = നിങ്ങൾ വേർപെട്ടു pad.modals.disconnected = താങ്കൾ വേർപെട്ടിരിക്കുന്നു.
pad.modals.disconnected.explanation = സെർവറുമായുള്ള ബന്ധം നഷ്ടപ്പെട്ടു pad.modals.disconnected.explanation = സെർവറുമായുള്ള ബന്ധം നഷ്ടപ്പെട്ടു
pad.modals.disconnected.cause = സെർവർ ഓടുന്നില്ലായിരിക്കാം. ഇതു് തുടരുന്നെങ്കിൽ ഞങ്ങളെ അറിയിക്കുക pad.modals.disconnected.cause = സെർവർ ലഭ്യമല്ലായിരിക്കാം. ഇത് തുടർച്ചയായി സംഭവിക്കുന്നുണ്ടെങ്കിൽ ദയവായി ഞങ്ങളെ അറിയിക്കുക.
pad.share = ഏടു് പങ്കിടുക pad.share = പാഡ് പങ്കിടുക
pad.share.readonly = വായിക്കാൻ മാത്രം pad.share.readonly = വായിക്ക മാത്രം
pad.share.link = കണ്ണി pad.share.link = കണ്ണി
pad.share.emebdcode = Embed URL pad.share.emebdcode = എംബെഡ് യു.ആർ.എൽ.
pad.chat = സംവാദം pad.chat = തത്സമയസംവാദം
pad.chat.title = ഏടിന്റെ സംവാദം തുറക്കുക pad.chat.title = പാഡിന്റെ തത്സമയസംവാദം തുറക്കുക.
timeslider.pageTitle = {{appTitle}} സമയരേഖ timeslider.pageTitle = {{appTitle}} സമയരേഖ
timeslider.toolbar.returnbutton = ഏടിലേക്കു് തിരിച്ചുപോവുക timeslider.toolbar.returnbutton = പാഡിലേക്ക് തിരിച്ചുപോവുക
timeslider.toolbar.authors = എഴുതിയവർ: timeslider.toolbar.authors = രചയിതാക്കൾ:
timeslider.toolbar.authorsList = ആരും എഴുതിയിട്ടില്ല timeslider.toolbar.authorsList = ആരും എഴുതിയിട്ടില്ല
timeslider.exportCurrent = ഈ പതിപ്പു് ഇങ്ങനെ എടുക്കുക: timeslider.exportCurrent = ഈ പതിപ്പ് ഇങ്ങനെ എടുക്കുക:
timeslider.version = പതിപ്പ് {{version}}
timeslider.saved = സേവ് ചെയ്തത് {{month}} {{day}}, {{year}}
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 = ഡിസംബർ

View file

@ -77,3 +77,18 @@ timeslider.toolbar.returnbutton = Terug naar pad
timeslider.toolbar.authors = Auteurs: timeslider.toolbar.authors = Auteurs:
timeslider.toolbar.authorsList = Geen auteurs timeslider.toolbar.authorsList = Geen auteurs
timeslider.exportCurrent = Huidige versie exporteren als: timeslider.exportCurrent = Huidige versie exporteren als:
timeslider.version = Versie {{version}}
timeslider.saved = Opgeslagen op {{day}} {{month}} {{year}}
timeslider.dateformat = {{year}}-{{month}}-{{day}} {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = januari
timeslider.month.february = februari
timeslider.month.march = maart
timeslider.month.april = april
timeslider.month.may = mei
timeslider.month.june = juni
timeslider.month.july = juli
timeslider.month.august = augustus
timeslider.month.september = september
timeslider.month.october = oktober
timeslider.month.november = november
timeslider.month.december = december

View file

@ -76,3 +76,18 @@ timeslider.toolbar.returnbutton = Återvänd till blocket
timeslider.toolbar.authors = Författare: timeslider.toolbar.authors = Författare:
timeslider.toolbar.authorsList = Ingen författare timeslider.toolbar.authorsList = Ingen författare
timeslider.exportCurrent = Exportera aktuell version som: timeslider.exportCurrent = Exportera aktuell version som:
timeslider.version = Version {{version}}
timeslider.saved = Sparades den {{day}} {{month}} {{year}}
timeslider.dateformat = {{day}}/{{month}}/{{year}} {{hours}}:{{minutes}}:{{seconds}}
timeslider.month.january = januari
timeslider.month.february = februari
timeslider.month.march = mars
timeslider.month.april = april
timeslider.month.may = maj
timeslider.month.june = juni
timeslider.month.july = juli
timeslider.month.august = augusti
timeslider.month.september = september
timeslider.month.october = oktober
timeslider.month.november = november
timeslider.month.december = december

View file

@ -25,7 +25,7 @@ var async = require("async");
var authorManager = require("./AuthorManager"); var authorManager = require("./AuthorManager");
var padManager = require("./PadManager"); var padManager = require("./PadManager");
var sessionManager = require("./SessionManager"); var sessionManager = require("./SessionManager");
var settings = require("../utils/Settings") var settings = require("../utils/Settings");
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString; var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
/** /**
@ -83,7 +83,7 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
// grant access, with author of token // grant access, with author of token
callback(null, statusObject); callback(null, statusObject);
} }
}) });
//don't continue //don't continue
return; return;
@ -133,10 +133,16 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
var now = Math.floor(new Date().getTime()/1000); var now = Math.floor(new Date().getTime()/1000);
//is it for this group? //is it for this group?
if(sessionInfo.groupID != groupID) return; if(sessionInfo.groupID != groupID) {
callback();
return;
}
//is validUntil still ok? //is validUntil still ok?
if(sessionInfo.validUntil <= now) return; if(sessionInfo.validUntil <= now){
callback();
return;
}
// There is a valid session // There is a valid session
validSession = true; validSession = true;
@ -282,4 +288,4 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
callback(null, statusObject); callback(null, statusObject);
}); });
} };

View file

@ -4,6 +4,7 @@
/* /*
* 2011 Peter 'Pita' Martischka (Primary Technology Ltd) * 2011 Peter 'Pita' Martischka (Primary Technology Ltd)
* 2012 Iván Eixarch
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,59 +19,48 @@
* limitations under the License. * limitations under the License.
*/ */
var ERR = require("async-stacktrace"); var ERR = require("async-stacktrace")
var padManager = require("../db/PadManager"); , padManager = require("../db/PadManager")
var padMessageHandler = require("./PadMessageHandler"); , padMessageHandler = require("./PadMessageHandler")
var async = require("async"); , async = require("async")
var fs = require("fs"); , fs = require("fs")
var settings = require('../utils/Settings'); , path = require("path")
var formidable = require('formidable'); , settings = require('../utils/Settings')
var os = require("os"); , formidable = require('formidable')
, os = require("os")
, importHtml = require("../utils/ImportHtml");
//load abiword only if its enabled //load abiword only if its enabled
if(settings.abiword != null) if(settings.abiword != null)
var abiword = require("../utils/Abiword"); var abiword = require("../utils/Abiword");
var tempDirectory = "/tmp/";
//tempDirectory changes if the operating system is windows
if(os.type().indexOf("Windows") > -1)
{
tempDirectory = process.env.TEMP;
}
/** /**
* do a requested import * do a requested import
*/ */
exports.doImport = function(req, res, padId) exports.doImport = function(req, res, padId)
{ {
//pipe to a file //pipe to a file
//convert file to text via abiword //convert file to html via abiword
//set text in the pad //set html in the pad
var srcFile, destFile; var srcFile, destFile
var pad; , pad
var text; , text;
async.series([ async.series([
//save the uploaded file to /tmp //save the uploaded file to /tmp
function(callback) function(callback) {
{
var form = new formidable.IncomingForm(); var form = new formidable.IncomingForm();
form.keepExtensions = true; form.keepExtensions = true;
form.uploadDir = tempDirectory;
form.parse(req, function(err, fields, files) form.parse(req, function(err, fields, files) {
{
//the upload failed, stop at this point //the upload failed, stop at this point
if(err || files.file === undefined) if(err || files.file === undefined) {
{
console.warn("Uploading Error: " + err.stack); console.warn("Uploading Error: " + err.stack);
callback("uploadFailed"); callback("uploadFailed");
} }
//everything ok, continue //everything ok, continue
else else {
{
//save the path of the uploaded file //save the path of the uploaded file
srcFile = files.file.path; srcFile = files.file.path;
callback(); callback();
@ -80,42 +70,31 @@ exports.doImport = function(req, res, padId)
//ensure this is a file ending we know, else we change the file ending to .txt //ensure this is a file ending we know, else we change the file ending to .txt
//this allows us to accept source code files like .c or .java //this allows us to accept source code files like .c or .java
function(callback) function(callback) {
{ var fileEnding = path.extname(srcFile).toLowerCase()
var fileEnding = (srcFile.split(".")[1] || "").toLowerCase(); , knownFileEndings = [".txt", ".doc", ".docx", ".pdf", ".odt", ".html", ".htm"]
var knownFileEndings = ["txt", "doc", "docx", "pdf", "odt", "html", "htm"]; , fileEndingKnown = (knownFileEndings.indexOf(fileEnding) > -1);
//find out if this is a known file ending
var fileEndingKnown = false;
for(var i in knownFileEndings)
{
if(fileEnding == knownFileEndings[i])
{
fileEndingKnown = true;
}
}
//if the file ending is known, continue as normal //if the file ending is known, continue as normal
if(fileEndingKnown) if(fileEndingKnown) {
{
callback(); callback();
} }
//we need to rename this file with a .txt ending //we need to rename this file with a .txt ending
else else {
{
var oldSrcFile = srcFile; var oldSrcFile = srcFile;
srcFile = srcFile.split(".")[0] + ".txt"; srcFile = path.join(path.dirname(srcFile),path.basename(srcFile, fileEnding)+".txt");
fs.rename(oldSrcFile, srcFile, callback); fs.rename(oldSrcFile, srcFile, callback);
} }
}, },
//convert file to text //convert file to html
function(callback) function(callback) {
{
var randNum = Math.floor(Math.random()*0xFFFFFFFF); var randNum = Math.floor(Math.random()*0xFFFFFFFF);
destFile = tempDirectory + "eplite_import_" + randNum + ".txt"; destFile = path.join(os.tmpDir(), "eplite_import_" + randNum + ".htm");
abiword.convertFile(srcFile, destFile, "txt", function(err){
if (abiword) {
abiword.convertFile(srcFile, destFile, "htm", function(err) {
//catch convert errors //catch convert errors
if(err) { if(err) {
console.warn("Converting Error:", err); console.warn("Converting Error:", err);
@ -124,13 +103,15 @@ exports.doImport = function(req, res, padId)
callback(); callback();
} }
}); });
} else {
// if no abiword only rename
fs.rename(srcFile, destFile, callback);
}
}, },
//get the pad object //get the pad object
function(callback) function(callback) {
{ padManager.getPad(padId, function(err, _pad){
padManager.getPad(padId, function(err, _pad)
{
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
pad = _pad; pad = _pad;
callback(); callback();
@ -138,52 +119,47 @@ exports.doImport = function(req, res, padId)
}, },
//read the text //read the text
function(callback) function(callback) {
{ fs.readFile(destFile, "utf8", function(err, _text){
fs.readFile(destFile, "utf8", function(err, _text)
{
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
text = _text; text = _text;
//node on windows has a delay on releasing of the file lock. //node on windows has a delay on releasing of the file lock.
//We add a 100ms delay to work around this //We add a 100ms delay to work around this
if(os.type().indexOf("Windows") > -1) if(os.type().indexOf("Windows") > -1){
{ setTimeout(function() {callback();}, 100);
setTimeout(function() } else {
{
callback();
}, 100);
}
else
{
callback(); callback();
} }
}); });
}, },
//change text of the pad and broadcast the changeset //change text of the pad and broadcast the changeset
function(callback) function(callback) {
{ var fileEnding = path.extname(srcFile).toLowerCase();
if (abiword || fileEnding == ".htm" || fileEnding == ".html") {
importHtml.setPadHTML(pad, text);
} else {
pad.setText(text); pad.setText(text);
}
padMessageHandler.updatePadClients(pad, callback); padMessageHandler.updatePadClients(pad, callback);
}, },
//clean up temporary files //clean up temporary files
function(callback) function(callback) {
{ //for node < 0.7 compatible
var fileExists = fs.exists || path.exists;
async.parallel([ async.parallel([
function(callback) function(callback){
{ fileExists (srcFile, function(exist) { (exist)? fs.unlink(srcFile, callback): callback(); });
fs.unlink(srcFile, callback);
}, },
function(callback) function(callback){
{ fileExists (destFile, function(exist) { (exist)? fs.unlink(destFile, callback): callback(); });
fs.unlink(destFile, callback);
} }
], callback); ], callback);
} }
], function(err) ], function(err) {
{
var status = "ok"; var status = "ok";
//check for known errors and replace the status //check for known errors and replace the status

View file

@ -66,8 +66,6 @@ exports.restartServer = function () {
} else { } else {
console.log( "SSL -- not enabled!" );
var http = require('http'); var http = require('http');
server = http.createServer(app); server = http.createServer(app);
} }

View file

@ -28,12 +28,6 @@ exports.expressCreateServer = function (hook_name, args, cb) {
//handle import requests //handle import requests
args.app.post('/p/:pad/import', function(req, res, next) { args.app.post('/p/:pad/import', function(req, res, next) {
//if abiword is disabled, skip handling this request
if(settings.abiword == null) {
next();
return;
}
hasPadAccess(req, res, function() { hasPadAccess(req, res, function() {
importHandler.doImport(req, res, req.params.pad); importHandler.doImport(req, res, req.params.pad);
}); });

View file

@ -15,8 +15,8 @@ exports.basicAuth = function (req, res, next) {
} }
var authorize = function (cb) { var authorize = function (cb) {
// Do not require auth for static paths...this could be a bit brittle // Do not require auth for static paths and the API...this could be a bit brittle
if (req.path.match(/^\/(static|javascripts|pluginfw)/)) return cb(true); if (req.path.match(/^\/(static|javascripts|pluginfw|api)/)) return cb(true);
if (req.path.indexOf('/admin') != 0) { if (req.path.indexOf('/admin') != 0) {
if (!settings.requireAuthentication) return cb(true); if (!settings.requireAuthentication) return cb(true);

View file

@ -1,4 +1,4 @@
var languages = require('languages') var languages = require('languages4translatewiki')
, fs = require('fs') , fs = require('fs')
, path = require('path') , path = require('path')
, express = require('express') , express = require('express')
@ -8,22 +8,23 @@ var localesPath = __dirname+"/../../locales";
// Serve English strings directly with /locales.ini // Serve English strings directly with /locales.ini
var localeIndex = fs.readFileSync(localesPath+'/en.ini')+'\r\n'; var localeIndex = fs.readFileSync(localesPath+'/en.ini')+'\r\n';
// add language base 'en' to availableLangs exports.availableLangs = {'en': {'nativeName': 'English', 'direction': 'ltr'}};
exports.availableLangs = {en: languages.getLanguageInfo('en')}
fs.readdir(localesPath, function(er, files) { fs.readdir(localesPath, function(er, files) {
files.forEach(function(locale) { files.forEach(function(locale) {
locale = locale.split('.')[0] var ext = path.extname(locale);
if(locale.toLowerCase() == 'en') return; locale = path.basename(locale, ext).toLowerCase();
if(locale == 'en' || ext != '.ini') return;
// build locale index // build locale index
localeIndex += '['+locale+']\r\n@import url(locales/'+locale+'.ini)\r\n' localeIndex += '['+locale+']\r\n@import url(locales/'+locale+'.ini)\r\n'
// add info language {name, nativeName, direction} to availableLangs // add info language {nativeName, direction} to availableLangs
exports.availableLangs[locale]=languages.getLanguageInfo(locale); exports.availableLangs[locale]=languages.getLanguageInfo(locale);
}) })
}) })
exports.expressCreateServer = function(n, args) { exports.expressCreateServer = function(n, args) {
args.app.use('/locales', express.static(localesPath)); args.app.use('/locales', express.static(localesPath));

View file

@ -36,7 +36,7 @@
"tinycon" : "0.0.1", "tinycon" : "0.0.1",
"underscore" : "1.3.1", "underscore" : "1.3.1",
"unorm" : "1.0.0", "unorm" : "1.0.0",
"languages" : "0.1.1" "languages4translatewiki" : "0.1.3"
}, },
"bin": { "etherpad-lite": "./node/server.js" }, "bin": { "etherpad-lite": "./node/server.js" },
"devDependencies": { "devDependencies": {

View file

@ -22,6 +22,7 @@ iframe {
.readonly .acl-write { .readonly .acl-write {
display: none; display: none;
} }
#users { #users {
background: #f7f7f7; background: #f7f7f7;
background: -webkit-linear-gradient( #F7F7F7,#EEE); background: -webkit-linear-gradient( #F7F7F7,#EEE);
@ -190,6 +191,19 @@ a img {
height: 30px; height: 30px;
z-index: 100; z-index: 100;
} }
#editorloadingbox .passForm{
padding:10px;
}
#editorloadingbox input{
padding:10px;
}
#editorloadingbox button{
padding:10px;
}
#editorcontainerbox { #editorcontainerbox {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -571,15 +585,20 @@ table#otheruserstable {
#exportdokuwiki { #exportdokuwiki {
background-position: 0px -459px background-position: 0px -459px
} }
#importstatusball {
display: none /* hidden element */
#importstatusball,
#importarrow,
#importmessagesuccess,
#importmessageabiword {
display: none;
} }
#importarrow {
display: none #importmessageabiword {
} color: #900;
#importmessagesuccess { font-size: small;
display: none
} }
#importsubmitinput { #importsubmitinput {
height: 25px; height: 25px;
width: 85px; width: 85px;
@ -755,7 +774,7 @@ input[type=checkbox] {
border-radius: 3px; border-radius: 3px;
border: 1px solid #ccc; border: 1px solid #ccc;
outline: none; outline: none;
min-width: 105px; width: 120px;
} }
.column { .column {
float: left; float: left;
@ -878,3 +897,15 @@ input[type=checkbox] {
line-height: 24px line-height: 24px
} }
} }
#passwordRequired{
display:none;
}
#permissionDenied{
display:none;
}
#wrongPassword{
display:none;
}

View file

@ -113,10 +113,15 @@ $(document).ready(function () {
for (plugin_name in data.results) { for (plugin_name in data.results) {
var plugin = data.results[plugin_name]; var plugin = data.results[plugin_name];
var row = widget.find(".template tr").clone(); var row = widget.find(".template tr").clone();
var version = '0.0.0';
// hack to access "versions" property of the npm package object
for (version in data.results[plugin_name].versions) break;
for (attr in plugin) { for (attr in plugin) {
row.find("." + attr).html(plugin[attr]); row.find("." + attr).html(plugin[attr]);
} }
row.find(".version").html(version);
widget.find(".results").append(row); widget.find(".results").append(row);
} }

View file

@ -51,18 +51,20 @@ var randomString = require('./pad_utils').randomString;
var hooks = require('./pluginfw/hooks'); var hooks = require('./pluginfw/hooks');
function createCookie(name, value, days, path) function createCookie(name, value, days, path){ /* Warning Internet Explorer doesn't use this it uses the one from pad_utils.js */
{
if (days) if (days)
{ {
var date = new Date(); var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString(); var expires = "; expires=" + date.toGMTString();
} }
else var expires = ""; else{
var expires = "";
}
if(!path) if(!path){ // If the path isn't set then just whack the cookie on the root path
path = "/"; path = "/";
}
//Check if the browser is IE and if so make sure the full path is set in the cookie //Check if the browser is IE and if so make sure the full path is set in the cookie
if(navigator.appName=='Microsoft Internet Explorer'){ if(navigator.appName=='Microsoft Internet Explorer'){
@ -202,6 +204,7 @@ function savePassword()
createCookie("password",$("#passwordinput").val(),null,document.location.pathname); createCookie("password",$("#passwordinput").val(),null,document.location.pathname);
//reload //reload
document.location=document.location; document.location=document.location;
return false;
} }
function handshake() function handshake()
@ -298,21 +301,25 @@ function handshake()
//the access was not granted, give the user a message //the access was not granted, give the user a message
if(!receivedClientVars && obj.accessStatus) if(!receivedClientVars && obj.accessStatus)
{ {
$('.passForm').submit(require(module.id).savePassword);
if(obj.accessStatus == "deny") if(obj.accessStatus == "deny")
{ {
$("#editorloadingbox").html("<b>You do not have permission to access this pad</b>"); $('#loading').hide();
$("#permissionDenied").show();
} }
else if(obj.accessStatus == "needPassword") else if(obj.accessStatus == "needPassword")
{ {
$("#editorloadingbox").html("<b>You need a password to access this pad</b><br>" + $('#loading').hide();
"<input id='passwordinput' type='password' name='password'>"+ $('#passwordRequired').show();
"<button type='button' onclick=\"" + padutils.escapeHtml('require('+JSON.stringify(module.id)+").savePassword()") + "\">ok</button>"); $("#passwordinput").focus();
} }
else if(obj.accessStatus == "wrongPassword") else if(obj.accessStatus == "wrongPassword")
{ {
$("#editorloadingbox").html("<b>Your password was wrong</b><br>" + $('#loading').hide();
"<input id='passwordinput' type='password' name='password'>"+ $('#wrongPassword').show();
"<button type='button' onclick=\"" + padutils.escapeHtml('require('+JSON.stringify(module.id)+").savePassword()") + "\">ok</button>"); $('#passwordRequired').show();
$("#passwordinput").focus();
} }
} }

View file

@ -219,14 +219,17 @@ var padimpexp = (function()
$("#exportplaina").attr("href", pad_root_path + "/export/txt"); $("#exportplaina").attr("href", pad_root_path + "/export/txt");
$("#exportdokuwikia").attr("href", pad_root_path + "/export/dokuwiki"); $("#exportdokuwikia").attr("href", pad_root_path + "/export/dokuwiki");
// activate action to import in the form
$("#importform").attr('action', pad_root_url + "/import");
//hide stuff thats not avaible if abiword is disabled //hide stuff thats not avaible if abiword is disabled
if(clientVars.abiwordAvailable == "no") if(clientVars.abiwordAvailable == "no")
{ {
$("#exportworda").remove(); $("#exportworda").remove();
$("#exportpdfa").remove(); $("#exportpdfa").remove();
$("#exportopena").remove(); $("#exportopena").remove();
$(".importformdiv").remove();
$("#import").html("Import is not available. To enable import please install abiword"); $("#importmessageabiword").show();
} }
else if(clientVars.abiwordAvailable == "withoutPDF") else if(clientVars.abiwordAvailable == "withoutPDF")
{ {
@ -237,16 +240,12 @@ var padimpexp = (function()
$("#importexport").css({"height":"142px"}); $("#importexport").css({"height":"142px"});
$("#importexportline").css({"height":"142px"}); $("#importexportline").css({"height":"142px"});
$("#importform").attr('action', pad_root_url + "/import");
} }
else else
{ {
$("#exportworda").attr("href", pad_root_path + "/export/doc"); $("#exportworda").attr("href", pad_root_path + "/export/doc");
$("#exportpdfa").attr("href", pad_root_path + "/export/pdf"); $("#exportpdfa").attr("href", pad_root_path + "/export/pdf");
$("#exportopena").attr("href", pad_root_path + "/export/odt"); $("#exportopena").attr("href", pad_root_path + "/export/odt");
$("#importform").attr('action', pad_root_path + "/import");
} }
$("#impexp-close").click(function() $("#impexp-close").click(function()

View file

@ -39,22 +39,31 @@ function randomString(len)
return randomstring; return randomstring;
} }
function createCookie(name, value, days, path) function createCookie(name, value, days, path){ /* Used by IE */
{
if (days) if (days)
{ {
var date = new Date(); var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString(); var expires = "; expires=" + date.toGMTString();
} }
else var expires = ""; else{
var expires = "";
}
if(!path) if(!path){ // IF the Path of the cookie isn't set then just create it on root
path = "/"; path = "/";
}
//Check if the browser is IE and if so make sure the full path is set in the cookie
if(navigator.appName=='Microsoft Internet Explorer'){
document.cookie = name + "=" + value + expires + "; path=/"; /* Note this bodge fix for IE is temporary until auth is rewritten */
}
else{
document.cookie = name + "=" + value + expires + "; path=" + path; document.cookie = name + "=" + value + expires + "; path=" + path;
} }
}
function readCookie(name) function readCookie(name)
{ {
var nameEQ = name + "="; var nameEQ = name + "=";

View file

@ -91,9 +91,12 @@ exports.search = function(query, cache, cb) {
if (er) return cb(er); if (er) return cb(er);
var res = {}; var res = {};
var i = 0; var i = 0;
for (key in data) { for (key in data) { // for every plugin in the data from npm
if ( key.indexOf(plugins.prefix) == 0 if ( key.indexOf(plugins.prefix) == 0
&& key.indexOf(query.pattern) != -1) { && key.indexOf(query.pattern) != -1
|| key.indexOf(plugins.prefix) == 0
&& data[key].description.indexOf(query.pattern) != -1
) { // If the name contains ep_ and the search string is in the name or description
i++; i++;
if (i > query.offset if (i > query.offset
&& i <= query.offset + query.limit) { && i <= query.offset + query.limit) {

View file

@ -30,6 +30,7 @@
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Description</th> <th>Description</th>
<th>Version</th>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -37,6 +38,7 @@
<tr id="installed-plugin-template"> <tr id="installed-plugin-template">
<td class="name"></td> <td class="name"></td>
<td class="description"></td> <td class="description"></td>
<td class="version"></td>
<td class="actions"> <td class="actions">
<input type="button" value="Uninstall" class="do-uninstall"> <input type="button" value="Uninstall" class="do-uninstall">
</td> </td>
@ -58,6 +60,7 @@
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Description</th> <th>Description</th>
<th>Version</th>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -65,6 +68,7 @@
<tr> <tr>
<td class="name"></td> <td class="name"></td>
<td class="description"></td> <td class="description"></td>
<td class="version"></td>
<td class="actions"> <td class="actions">
<input type="button" value="Install" class="do-install"> <input type="button" value="Install" class="do-install">
</td> </td>

View file

@ -41,7 +41,7 @@
if(language) document.documentElement.lang = language[1]; if(language) document.documentElement.lang = language[1];
})(document) })(document)
</script> </script>
<script type="text/javascript" src="static/js/l10n.js" async></script> <script type="text/javascript" src="static/js/l10n.js"></script>
<style> <style>
html, body { html, body {

View file

@ -184,7 +184,19 @@
<div id="editorcontainerbox"> <div id="editorcontainerbox">
<div id="editorcontainer"></div> <div id="editorcontainer"></div>
<div id="editorloadingbox"> <div id="editorloadingbox">
<p data-l10n-id="pad.loading">Loading...</p> <div id="passwordRequired">
<p data-l10n-id="pad.passwordRequired">You need a password to access this pad</p>
<form class='passForm' method='POST'>
<input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'>
</form>
</div>
<div id="permissionDenied">
<p data-l10n-id="pad.permissionDenied">You do not have permission to access this pad</p>
</div>
<div id="wrongPassword">
<p data-l10n-id="pad.wrongPassword">Your password was wrong</p>
</div>
<p data-l10n-id="pad.loading" id="loading">Loading...</p>
<noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript> <noscript><strong>Sorry, you have to enable Javascript in order to use this.</strong></noscript>
</div> </div>
</div> </div>
@ -246,10 +258,11 @@
<h1 data-l10n-id="pad.importExport.import_export"></h1> <h1 data-l10n-id="pad.importExport.import_export"></h1>
<div class="column acl-write"> <div class="column acl-write">
<% e.begin_block("importColumn"); %> <% e.begin_block("importColumn"); %>
<h2 data-l10n-id="pad.importExport.import"></h2><br> <h2 data-l10n-id="pad.importExport.import"></h2>
<div class="importmessage" id="importmessageabiword" data-l10n-id="pad.importExport.abiword"></div><br>
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data"> <form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
<div class="importformdiv" id="importformfilediv"> <div class="importformdiv" id="importformfilediv">
<input type="file" name="file" size="15" id="importfileinput"> <input type="file" name="file" size="10" id="importfileinput">
<div class="importmessage" id="importmessagefail"></div> <div class="importmessage" id="importmessagefail"></div>
</div> </div>
<div id="import"></div> <div id="import"></div>