mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Added message translatable about features importing without abiword
This commit is contained in:
parent
460200981e
commit
d7cca602df
6 changed files with 22 additions and 15 deletions
|
@ -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.
|
||||||
|
|
|
@ -41,6 +41,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
|
||||||
|
|
|
@ -44,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 = 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
|
||||||
|
|
|
@ -571,15 +571,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;
|
||||||
|
|
|
@ -219,6 +219,9 @@ 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")
|
||||||
{
|
{
|
||||||
|
@ -226,7 +229,7 @@ var padimpexp = (function()
|
||||||
$("#exportpdfa").remove();
|
$("#exportpdfa").remove();
|
||||||
$("#exportopena").remove();
|
$("#exportopena").remove();
|
||||||
|
|
||||||
$("#importform").attr('action', pad_root_url + "/import");
|
$("#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()
|
||||||
|
|
|
@ -246,7 +246,8 @@
|
||||||
<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="15" id="importfileinput">
|
||||||
|
|
Loading…
Reference in a new issue