Changes related to lang vars

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent e1500a4d63
commit ac92888af7
  1. 2
      main/admin/user_update_import.php
  2. 72
      main/document/document.php
  3. 2
      main/forum/forumfunction.inc.php
  4. 2
      main/newscorm/openoffice_document.class.php

@ -385,8 +385,6 @@ if (isset($_POST['formSent']) && $_POST['formSent'] AND $_FILES['import_file']['
$inserted_in_course = array();
if (strcmp($file_type, 'csv') === 0) {
updateUsers($users_to_insert);
} else {
$error_message = get_lang('YouMustImportAFileAccordingToSelectedOption1');
}
if (count($errors) > 0) {

@ -433,7 +433,7 @@ switch ($action) {
$fileInfo = pathinfo($file);
if ($fileInfo['extension'] == $formatTarget) {
Display::addFlash(Display::return_message(
get_lang('ErrorSameFormat'),
get_lang('ConversionToSameFileFormat'),
'warning'
));
} elseif (
@ -456,7 +456,7 @@ switch ($action) {
)
) {
Display::addFlash(Display::return_message(
get_lang('FormatNotSupported'),
get_lang('FileFormatNotSupported'),
'warning'
));
} else {
@ -2008,40 +2008,42 @@ if (!empty($table_footer)) {
echo '
<div id="convertModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="text-align: center;">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
<span class="sr-only">' . get_lang('Close') . '</span>
</button>
<h4 class="modal-title">' . get_lang('PleaseSelectConvertFormat') . '</h4>
</div>
<div class="modal-body" style="text-align: center;">
<p>' . get_lang('ConvertFormats') . '&hellip;</p>
<select id="convertSelect" class="input-lg text-center">
<option value="">
' . get_lang('Select') . '
</option>
<option value="pdf">
PDF - Portable Document File
</option>
<option value="odt" style="display:none;" class="textFormatType">
ODT - Open Document Text
</option>
<option value="odp" style="display:none;" class="presentationFormatType">
ODP - Open Document Portable
</option>
<option value="ods" style="display:none;" class="spreadsheetFormatType">
ODS - Open Document Spreadsheet
</option>
</select>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">' . get_lang('Close') . '</button>
</div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="text-align: center;">
<button type="button" class="close" data-dismiss="modal" aria-label="' . get_lang('Close') . '">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">' . get_lang('Convert') . '</h4>
</div>
<div class="modal-body">
<form action="#" class="form-horizontal">
<div class="form-group">
<label class="col-sm-4 control-label" for="convertSelect">' . get_lang('ConvertFormats') . '</label>
<div class="col-sm-8">
<select id="convertSelect">
<option value="">' . get_lang('Select') . '</option>
<option value="pdf">
PDF - Portable Document File
</option>
<option value="odt" style="display:none;" class="textFormatType">
ODT - Open Document Text
</option>
<option value="odp" style="display:none;" class="presentationFormatType">
ODP - Open Document Portable
</option>
<option value="ods" style="display:none;" class="spreadsheetFormatType">
ODS - Open Document Spreadsheet
</option>
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">' . get_lang('Close') . '</button>
</div>
</div>
</div>
</div>';
// Footer

@ -70,7 +70,7 @@ $(function () {
file.delete + '<\/td>' +
'<input type=\"hidden\" value=\"' + file.id +'\" name=\"file_ids[]\">' + '<\/tr>');
} else {
alert('" . get_lang('ErrorUploadAttachment') . "');
alert('" . get_lang('UploadError') . "');
}
}
});

@ -311,7 +311,7 @@ abstract class OpenofficeDocument extends learnpath
filesize($this->base_work_dir . '/' . $this->created_dir),
$convertedTitle,
sprintf(
get_lang('ConvertedFromXToY'),
get_lang('FileConvertedFromXToY'),
strtoupper($originalPathInfo['extension']),
strtoupper($convertedPathInfo['extension'])
),

Loading…
Cancel
Save