From 04d59319055e9c1910a600d6b2b0e9155896b6fd Mon Sep 17 00:00:00 2001
From: Julio Montoya
Date: Mon, 28 Oct 2019 13:04:22 +0100
Subject: [PATCH] Update get_lang calls using full string.
---
main/coursecopy/copy_course.php | 28 ++--
main/coursecopy/copy_course_session.php | 50 +++----
.../copy_course_session_selected.php | 30 ++--
main/coursecopy/create_backup.php | 16 +--
main/coursecopy/import_backup.php | 54 ++++----
main/coursecopy/import_moodle.php | 12 +-
main/coursecopy/recycle_course.php | 18 +--
main/create_course/add_course.php | 52 +++----
main/document/add_link.php | 34 ++---
main/document/create_audio.php | 18 +--
main/document/create_document.php | 36 ++---
main/document/create_draw.php | 6 +-
main/document/create_paint.php | 10 +-
main/document/document.php | 130 +++++++++---------
main/document/document_quota.php | 10 +-
main/document/download.php | 2 +-
main/document/download_scorm.php | 4 +-
main/document/edit_document.php | 62 ++++-----
main/document/edit_draw.php | 10 +-
main/document/edit_odf.php | 2 +-
main/document/edit_paint.php | 8 +-
main/document/exit_pixlr.php | 2 +-
main/document/record_audio.php | 6 +-
main/document/recycle.php | 6 +-
main/document/save_pixlr.php | 6 +-
main/document/showinframes.php | 6 +-
main/document/slideshow.php | 26 ++--
main/document/slideshowoptions.php | 16 +--
main/document/upload.php | 32 ++---
main/document/webcam_clip.php | 8 +-
main/document/webcam_receiver.php | 2 +-
main/inc/introductionSection.inc.php | 30 ++--
.../lib/formvalidator/Element/SelectAjax.php | 2 +-
.../lib/formvalidator/FormValidator.class.php | 78 +++++------
main/inc/lib/javascript/chat/video.php | 4 +-
.../svgedit/extensions/imagelib/groups.php | 6 +-
.../svgedit/extensions/imagelib/index.php | 4 +-
.../svgedit/extensions/imagelib/users.php | 6 +-
.../svgedit/extensions/savefile_config.php | 6 +-
.../pear/HTML/QuickForm/advanced_settings.php | 2 +-
main/inc/lib/pear/HTML/QuickForm/file.php | 2 +-
.../svg-edit/extensions/imagelib/groups.php | 6 +-
.../svg-edit/extensions/imagelib/index.php | 4 +-
.../svg-edit/extensions/imagelib/users.php | 6 +-
.../svg-edit/extensions/savefile_config.php | 8 +-
main/inc/lib/webservices/Rest.php | 14 +-
main/inc/lib/zombie/zombie_report.class.php | 28 ++--
main/lp/blank.php | 10 +-
main/lp/content_makers.inc.php | 2 +-
main/lp/download.php | 2 +-
main/messages/inbox.php | 6 +-
main/messages/new_message.php | 54 ++++----
main/messages/outbox.php | 4 +-
main/messages/record_audio.php | 2 +-
main/messages/view_message.php | 4 +-
main/portfolio/add_category.php | 4 +-
main/portfolio/add_item.php | 4 +-
main/portfolio/edit_category.php | 4 +-
main/portfolio/edit_item.php | 4 +-
main/portfolio/index.php | 8 +-
main/portfolio/list.php | 2 +-
main/ticket/assign_tickets.php | 8 +-
main/ticket/categories.php | 12 +-
main/ticket/categories_add_user.php | 4 +-
main/ticket/new_ticket.php | 30 ++--
main/ticket/priorities.php | 10 +-
main/ticket/projects.php | 10 +-
main/ticket/settings.php | 2 +-
main/ticket/status.php | 10 +-
main/ticket/ticket_assign_log.php | 5 +-
main/ticket/ticket_details.php | 45 +++---
main/ticket/tickets.php | 44 +++---
main/ticket/tutor_report.lib.php | 2 +-
main/upload/form.document.php | 2 +-
main/upload/form.scorm.php | 18 +--
main/upload/upload.document.php | 26 ++--
main/upload/upload_ppt.php | 29 ++--
main/upload/upload_word.php | 28 ++--
main/webservices/cm_webservice.php | 10 +-
.../cm_webservice_announcements.php | 4 +-
main/webservices/cm_webservice_courses.php | 4 +-
main/webservices/cm_webservice_forum.php | 16 +--
main/webservices/cm_webservice_inbox.php | 10 +-
main/webservices/cm_webservice_user.php | 14 +-
main/webservices/registration.soap.php | 8 +-
85 files changed, 679 insertions(+), 690 deletions(-)
diff --git a/main/coursecopy/copy_course.php b/main/coursecopy/copy_course.php
index c0cabadce3..ae80ef5986 100755
--- a/main/coursecopy/copy_course.php
+++ b/main/coursecopy/copy_course.php
@@ -25,15 +25,15 @@ api_set_more_memory_and_time_limits();
// Breadcrumbs
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'course_info/maintenance.php?'.api_get_cidreq(),
- 'name' => get_lang('Maintenance'),
+ 'name' => get_lang('Backup'),
];
// The section (for the tabs)
$this_section = SECTION_COURSES;
// Display the header
-Display::display_header(get_lang('CopyCourse'));
-echo Display::page_header(get_lang('CopyCourse'));
+Display::display_header(get_lang('Copy course'));
+echo Display::page_header(get_lang('Copy course'));
$action = isset($_POST['action']) ? $_POST['action'] : '';
@@ -55,7 +55,7 @@ if (Security::check_token('post') && (
$cr->set_file_option($_POST['same_file_name_option']);
$cr->restore($_POST['destination_course']);
echo Display::return_message(
- get_lang('CopyFinished').': '.
+ get_lang('Copying is finished').': '.
Security::remove_XSS($_POST['destination_course']).
' ',
'normal',
@@ -92,7 +92,7 @@ if (Security::check_token('post') && (
);
if (empty($courseList)) {
- echo Display::return_message(get_lang('NoDestinationCoursesAvailable'), 'normal');
+ echo Display::return_message(get_lang('No destination course available'), 'normal');
} else {
$options = [];
foreach ($courseList as $courseItem) {
@@ -105,38 +105,38 @@ if (Security::check_token('post') && (
'post',
api_get_path(WEB_CODE_PATH).'coursecopy/copy_course.php?'.api_get_cidreq()
);
- $form->addElement('select', 'destination_course', get_lang('SelectDestinationCourse'), $options);
+ $form->addElement('select', 'destination_course', get_lang('Select target course'), $options);
$group = [];
- $group[] = $form->createElement('radio', 'copy_option', null, get_lang('FullCopy'), 'full_copy');
- $group[] = $form->createElement('radio', 'copy_option', null, get_lang('LetMeSelectItems'), 'select_items');
- $form->addGroup($group, '', get_lang('SelectOptionForBackup'));
+ $group[] = $form->createElement('radio', 'copy_option', null, get_lang('Full copy'), 'full_copy');
+ $group[] = $form->createElement('radio', 'copy_option', null, get_lang('Let me select learning objects'), 'select_items');
+ $form->addGroup($group, '', get_lang('Please select a backup option'));
$group = [];
$group[] = $form->createElement(
'radio',
'same_file_name_option',
null,
- get_lang('SameFilenameSkip'),
+ get_lang('Skip same file name'),
FILE_SKIP
);
$group[] = $form->createElement(
'radio',
'same_file_name_option',
null,
- get_lang('SameFilenameRename'),
+ get_lang('Rename file (eg file.pdf becomes file_1.pdf)'),
FILE_RENAME
);
$group[] = $form->createElement(
'radio',
'same_file_name_option',
null,
- get_lang('SameFilenameOverwrite'),
+ get_lang('Overwrite file'),
FILE_OVERWRITE
);
- $form->addGroup($group, '', get_lang('SameFilename'));
+ $form->addGroup($group, '', get_lang('What should be done with imported files with the same file name as existing files?'));
$form->addProgress();
- $form->addButtonSave(get_lang('CopyCourse'));
+ $form->addButtonSave(get_lang('Copy course'));
$form->setDefaults(['copy_option' => 'select_items', 'same_file_name_option' => FILE_OVERWRITE]);
// Add Security token
diff --git a/main/coursecopy/copy_course_session.php b/main/coursecopy/copy_course_session.php
index 53ef8cfa2c..412d6ab214 100755
--- a/main/coursecopy/copy_course_session.php
+++ b/main/coursecopy/copy_course_session.php
@@ -32,10 +32,10 @@ if (!api_is_allowed_to_edit() && !api_is_session_admin()) {
$action = isset($_POST['action']) ? $_POST['action'] : '';
$this_section = SECTION_PLATFORM_ADMIN;
-$nameTools = get_lang('CopyCourse');
+$nameTools = get_lang('Copy course');
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'admin/index.php',
- 'name' => get_lang('PlatformAdmin'),
+ 'name' => get_lang('Administration'),
];
// Database Table Definitions
@@ -63,9 +63,9 @@ function make_select_session_list($name, $sessions, $attr = [])
$output = '';
if (count($sessions) == 0) {
- $output .= ''.get_lang('ThereIsNotStillASession').' ';
+ $output .= ''.get_lang('There are no sessions available').' ';
} else {
- $output .= ''.get_lang('SelectASession').' ';
+ $output .= ''.get_lang('Select a session').' ';
}
if (is_array($sessions)) {
@@ -95,18 +95,18 @@ function display_form()
// Link back to the documents overview
$actionsLeft = ''.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('PlatformAdmin'), '', ICON_SIZE_MEDIUM).
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Administration'), '', ICON_SIZE_MEDIUM).
' ';
$html .= Display::toolbarAction('toolbar-copysession', [$actionsLeft]);
- $html .= Display::return_message(get_lang('CopyCourseFromSessionToSessionExplanation'), 'warning');
+ $html .= Display::return_message(get_lang('Copy courseFromSessionToSessionExplanation'), 'warning');
$html .= '
';
+ $message = get_lang('There are a file with the same name in your private user file area. Do you want replace it?').'
';
$message .= ''
@@ -504,10 +504,10 @@ switch ($action) {
}
if (isset($_GET['copy']) && $_GET['copy'] === 'yes') {
if (!copy($file, $copyfile)) {
- Display::addFlash(Display::return_message(get_lang('CopyFailed'), 'error'));
+ Display::addFlash(Display::return_message(get_lang('Copy failed'), 'error'));
} else {
Display::addFlash(Display::return_message(
- get_lang('OverwritenFile').' '.$file_link,
+ get_lang('File replaced').' '.$file_link,
'confirmation',
false
));
@@ -515,10 +515,10 @@ switch ($action) {
}
} else {
if (!copy($file, $copyfile)) {
- Display::addFlash(Display::return_message(get_lang('CopyFailed'), 'error'));
+ Display::addFlash(Display::return_message(get_lang('Copy failed'), 'error'));
} else {
Display::addFlash(
- Display::return_message(get_lang('CopyMade').' '.$file_link, 'confirmation', false)
+ Display::return_message(get_lang('The copy has been made').' '.$file_link, 'confirmation', false)
);
}
}
@@ -543,7 +543,7 @@ switch ($action) {
$fileInfo = pathinfo($file);
if ($fileInfo['extension'] == $formatTarget) {
Display::addFlash(Display::return_message(
- get_lang('ConversionToSameFileFormat'),
+ get_lang('Conversion to same file format. Please choose another.'),
'warning'
));
} elseif (
@@ -551,7 +551,7 @@ switch ($action) {
!(in_array($formatTarget, DocumentManager::getJodconverterExtensionList('to', $formatType)))
) {
Display::addFlash(Display::return_message(
- get_lang('FileFormatNotSupported'),
+ get_lang('File format not supported'),
'warning'
));
} else {
@@ -562,7 +562,7 @@ switch ($action) {
$obj = new OpenofficePresentation(true);
if (file_exists($convertedFile)) {
Display::addFlash(Display::return_message(
- get_lang('FileExists'),
+ get_lang('The operation is impossible, a file with this name already exists.'),
'error'
));
} else {
@@ -573,7 +573,7 @@ switch ($action) {
);
if (empty($result)) {
Display::addFlash(Display::return_message(
- get_lang('CopyFailed'),
+ get_lang('Copy failed'),
'error'
));
} else {
@@ -581,14 +581,14 @@ switch ($action) {
$id_session = api_get_session_id();
$gidReq = Security::remove_XSS($_GET['gidReq']);
$file_link = Display::url(
- get_lang('SeeFile'),
+ get_lang('See file'),
api_get_path(WEB_CODE_PATH)
.'document/showinframes.php?'
.api_get_cidreq_params($cidReq, $id_session, $gidReq)
.'&id='.current($result)
);
Display::addFlash(Display::return_message(
- get_lang('CopyMade').' '.$file_link,
+ get_lang('The copy has been made').' '.$file_link,
'confirmation',
false
));
@@ -787,7 +787,7 @@ if (isset($_GET['curdirpath']) && $_GET['curdirpath'] == '/certificates' &&
$htmlHeadXtra[] = '";
$tpl = new Template($tool_name);
-$content = Display::page_subheader(get_lang('ShowCourseQuotaUse')).'
';
+$content = Display::page_subheader(get_lang('Space Available')).'
';
$tpl->assign('content', $content);
$tpl->display_one_col_template();
diff --git a/main/document/download.php b/main/document/download.php
index eb757c3768..ad863a1a37 100755
--- a/main/document/download.php
+++ b/main/document/download.php
@@ -108,7 +108,7 @@ if (Security::check_abs_path($sys_course_path.$doc_url, $sys_course_path.'/')) {
}
if (!api_is_allowed_to_edit() && !$is_visible) {
- echo Display::return_message(get_lang('ProtectedDocument'), 'error'); //api_not_allowed backbutton won't work.
+ echo Display::return_message(get_lang('Protected Document'), 'error'); //api_not_allowed backbutton won't work.
exit; // You shouldn't be here anyway.
}
// Launch event
diff --git a/main/document/download_scorm.php b/main/document/download_scorm.php
index 51b76a49ad..11812d0447 100755
--- a/main/document/download_scorm.php
+++ b/main/document/download_scorm.php
@@ -58,8 +58,8 @@ if (Security::check_abs_path($sys_course_path.$doc_url, $sys_course_path.'/')) {
$fixLinks = api_get_configuration_value('lp_replace_http_to_https');
$result = DocumentManager::file_send_for_download($full_file_name, false, '', $fixLinks);
if ($result === false) {
- api_not_allowed(true, get_lang('FileNotFound'), 404);
+ api_not_allowed(true, get_lang('The file was not found'), 404);
}
} else {
- api_not_allowed(true, get_lang('FileNotFound'), 404);
+ api_not_allowed(true, get_lang('The file was not found'), 404);
}
diff --git a/main/document/edit_document.php b/main/document/edit_document.php
index 1e61ffb516..1535da1ccb 100755
--- a/main/document/edit_document.php
+++ b/main/document/edit_document.php
@@ -154,7 +154,7 @@ $course_id = api_get_course_int_id();
if (!empty($group_id)) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
- 'name' => get_lang('GroupSpace'),
+ 'name' => get_lang('Group area'),
];
$group_document = true;
}
@@ -167,7 +167,7 @@ if (!$is_certificate_mode) {
} else {
$interbreadcrumb[] = [
'url' => Category::getUrl(),
- 'name' => get_lang('Gradebook'),
+ 'name' => get_lang('Assessments'),
];
}
@@ -217,7 +217,7 @@ if (!empty($sessionId)) {
if (api_is_in_group()) {
$group_properties = GroupManager::get_group_properties($group_id);
- GroupManager::allowUploadEditDocument(
+ GroupManager::allowUploadEdit(
api_get_user_id(),
api_get_course_int_id(),
$group_properties,
@@ -257,12 +257,12 @@ if (isset($_POST['comment'])) {
$em->flush();
if ($file_type != 'link') {
- Display::addFlash(Display::return_message(get_lang('Updated')));
+ Display::addFlash(Display::return_message(get_lang('Update successful')));
} else {
- Display::addFlash(Display::return_message(get_lang('CloudLinkModified')));
+ Display::addFlash(Display::return_message(get_lang('Cloud file link updated.')));
}
} else {
- Display::addFlash(Display::return_message(get_lang('UrlAlreadyExists'), 'warning'));
+ Display::addFlash(Display::return_message(get_lang('This URL already exists'), 'warning'));
}
}
}
@@ -310,7 +310,7 @@ if (in_array($extension, ['html', 'htm'])) {
}
// Display the header
-$nameTools = get_lang('EditDocument').': '.Security::remove_XSS($document_data['title']);
+$nameTools = get_lang('Edit').': '.Security::remove_XSS($document_data['title']);
Display::display_header($nameTools, 'Doc');
$owner_id = $node->getCreator()->getId();
@@ -368,12 +368,12 @@ if ($owner_id == api_get_user_id() ||
}
if (!empty($createdDate)) {
- $form->addLabel(get_lang('CreatedOn'), Display::dateToStringAgoAndLongDate($createdDate));
+ $form->addLabel(get_lang('Created on'), Display::dateToStringAgoAndLongDate($createdDate));
}
if ($file_type != 'link') {
if (!$group_document && !DocumentManager::is_my_shared_folder(api_get_user_id(), $currentDirPath, $sessionId)) {
- $form->addLabel(get_lang('UpdatedOn'), Display::dateToStringAgoAndLongDate($last_edit_date));
+ $form->addLabel(get_lang('Update successfulOn'), Display::dateToStringAgoAndLongDate($last_edit_date));
}
if (!empty($document_info['insert_user_id'])) {
@@ -392,7 +392,7 @@ if ($owner_id == api_get_user_id() ||
$urlWLRegEx = '/(\/\/|\.)('.implode('|', $urlWL).')/i';
$urlWLText = "\n\t* ".implode("\n\t* ", $urlWL);
$urlWLHTML = "";
- $form->addText('comment', get_lang('Url'));
+ $form->addText('comment', get_lang('URL'));
$form->addElement(
'static',
'info',
@@ -407,7 +407,7 @@ if ($owner_id == api_get_user_id() ||
if ($file_type != 'link') {
if ($owner_id == api_get_user_id() || api_is_platform_admin()) {
- $checked = &$form->addElement('checkbox', 'readonly', null, get_lang('ReadOnly'));
+ $checked = &$form->addElement('checkbox', 'readonly', null, get_lang('Read only'));
if ($readonly == 1) {
$checked->setChecked(true);
}
@@ -415,22 +415,22 @@ if ($owner_id == api_get_user_id() ||
}
if ($file_type == 'link') {
- $form->addRule('title', get_lang('PleaseEnterCloudLinkName'), 'required');
- $form->addRule('comment', get_lang('PleaseEnterURL'), 'required');
+ $form->addRule('title', get_lang('Please enter a name for this Cloud link'), 'required');
+ $form->addRule('comment', get_lang('Please enter the URL'), 'required');
// Well formed url pattern (must have the protocol)
$urlRegEx = DocumentManager::getWellFormedUrlRegex();
- $form->addRule('comment', get_lang('NotValidURL'), 'regex', $urlRegEx, 'client');
- $form->addRule('comment', get_lang('NotValidURL'), 'regex', $urlRegEx, 'server');
- $form->addRule('comment', get_lang('NotValidDomain').$urlWLText, 'regex', $urlWLRegEx, 'client');
- $form->addRule('comment', get_lang('NotValidDomain').$urlWLHTML, 'regex', $urlWLRegEx, 'server');
+ $form->addRule('comment', get_lang('URL field format invalid. Example of expected format: http://dropbox.com/sh/loremipsum/loremipsum?dl=0'), 'regex', $urlRegEx, 'client');
+ $form->addRule('comment', get_lang('URL field format invalid. Example of expected format: http://dropbox.com/sh/loremipsum/loremipsum?dl=0'), 'regex', $urlRegEx, 'server');
+ $form->addRule('comment', get_lang('The domain is not valid. It must be one of the following:').$urlWLText, 'regex', $urlWLRegEx, 'client');
+ $form->addRule('comment', get_lang('The domain is not valid. It must be one of the following:').$urlWLHTML, 'regex', $urlWLRegEx, 'server');
}
if ($is_certificate_mode) {
- $form->addButtonUpdate(get_lang('SaveCertificate'));
+ $form->addButtonUpdate(get_lang('Save certificate'));
} elseif ($file_type == 'link') {
- $form->addButtonUpdate(get_lang('SaveLink'));
+ $form->addButtonUpdate(get_lang('Save link'));
} else {
- $form->addButtonUpdate(get_lang('SaveDocument'));
+ $form->addButtonUpdate(get_lang('Save document'));
}
$form->addHidden('formSent', 1);
$form->addHidden('filename', $filename);
@@ -462,7 +462,7 @@ if ($owner_id == api_get_user_id() ||
foreach ($all_information_by_create_certificate[0] as $info_value) {
$str_info .= $info_value.' ';
}
- $create_certificate = get_lang('CreateCertificateWithTags');
+ $create_certificate = get_lang('Create your certificate copy-pasting the following tags. They will be replaced in the document by their student-specific value:');
echo Display::return_message(
$create_certificate.': '.$str_info,
'normal',
@@ -473,7 +473,7 @@ if ($owner_id == api_get_user_id() ||
if ($extension == 'svg' && !api_browser_support('svg') &&
api_get_setting('enabled_support_svg') == 'true'
) {
- echo Display::return_message(get_lang('BrowserDontSupportsSVG'), 'warning');
+ echo Display::return_message(get_lang('Your browser does not support SVG files. To use the drawing tool you must have an advanced browser such as Firefox or Chrome'), 'warning');
}
if ($file_type != 'link') {
// HTML-editor
@@ -521,27 +521,27 @@ function show_return($document_id, $path, $call_from_tool = '', $slide_id = 0, $
if ($is_certificate_mode) {
$selectedCategory = (isset($_GET['curdirpath']) ? Security::remove_XSS($_GET['curdirpath']) : '');
$actionsLeft .= ' '.
- Display::return_icon('back.png', get_lang('Back').' '.get_lang('To').' '.get_lang('CertificateOverview'), '', ICON_SIZE_MEDIUM).' ';
+ Display::return_icon('back.png', get_lang('Back').' '.get_lang('To').' '.get_lang('Certificate overview'), '', ICON_SIZE_MEDIUM).'';
$actionsLeft .= ''.Display::return_icon('expand.png', get_lang('Expand'), ['id' => 'expand'], ICON_SIZE_MEDIUM).Display::return_icon('contract.png', get_lang('Collapse'), ['id' => 'contract', 'class' => 'hide'], ICON_SIZE_MEDIUM).' ';
} elseif ($call_from_tool == 'slideshow') {
$actionsLeft .= ''.
- Display::return_icon('slideshow.png', get_lang('BackTo').' '.get_lang('ViewSlideshow'), '', ICON_SIZE_MEDIUM).' ';
+ Display::return_icon('slideshow.png', get_lang('Back to').' '.get_lang('View Slideshow'), '', ICON_SIZE_MEDIUM).'';
} elseif ($call_from_tool == 'editdraw') {
$actionsLeft .= ''.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).' ';
- $actionsLeft .= ''.Display::return_icon('draw.png', get_lang('BackTo').' '.get_lang('Draw'), [], 32).' ';
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), '', ICON_SIZE_MEDIUM).'';
+ $actionsLeft .= ''.Display::return_icon('draw.png', get_lang('Back to').' '.get_lang('Draw'), [], 32).' ';
} elseif ($call_from_tool == 'editodf') {
$actionsLeft .= ''.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).' ';
- $actionsLeft .= ''.Display::return_icon('draw.png', get_lang('BackTo').' '.get_lang('Write'), [], 32).' ';
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), '', ICON_SIZE_MEDIUM).'';
+ $actionsLeft .= ''.Display::return_icon('draw.png', get_lang('Back to').' '.get_lang('Write'), [], 32).' ';
$actionsLeft .= ''.Display::return_icon('expand.png', get_lang('Expand'), ['id' => 'expand'], ICON_SIZE_MEDIUM).Display::return_icon('contract.png', get_lang('Collapse'), ['id' => 'contract', 'class' => 'hide'], ICON_SIZE_MEDIUM).' ';
} elseif ($call_from_tool == 'editpaint' && api_get_setting('enabled_support_pixlr') === 'true') {
$actionsLeft .= ''.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), [], ICON_SIZE_MEDIUM).' ';
- $actionsLeft .= ''.Display::return_icon('paint.png', get_lang('BackTo').' '.get_lang('Paint'), [], 32).' ';
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), [], ICON_SIZE_MEDIUM).'';
+ $actionsLeft .= ''.Display::return_icon('paint.png', get_lang('Back to').' '.get_lang('Paint'), [], 32).' ';
} else {
$actionsLeft .= ''.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).' ';
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), '', ICON_SIZE_MEDIUM).'';
$actionsLeft .= ''.Display::return_icon('expand.png', get_lang('Expand'), ['id' => 'expand'], ICON_SIZE_MEDIUM).Display::return_icon('contract.png', get_lang('Collapse'), ['id' => 'contract', 'class' => 'hide'], ICON_SIZE_MEDIUM).' ';
}
diff --git a/main/document/edit_draw.php b/main/document/edit_draw.php
index e89273bc04..7d9f682b9a 100755
--- a/main/document/edit_draw.php
+++ b/main/document/edit_draw.php
@@ -53,7 +53,7 @@ $get_file = Security::remove_XSS($file_path);
$file = basename($get_file);
$temp_file = explode(".", $file);
$filename = $temp_file[0];
-$nameTools = get_lang('EditDocument').': '.$filename;
+$nameTools = get_lang('Edit').': '.$filename;
$courseDir = $_course['path'].'/document';
$is_allowed_to_edit = api_is_allowed_to_edit(null, true);
@@ -88,7 +88,7 @@ if (!is_dir($filepath)) {
if (!empty($group_id)) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
- 'name' => get_lang('GroupSpace'),
+ 'name' => get_lang('Group area'),
];
$group_document = true;
}
@@ -103,7 +103,7 @@ if (!$is_certificate_mode) {
} else {
$interbreadcrumb[] = [
'url' => Category::getUrl(),
- 'name' => get_lang('Gradebook'),
+ 'name' => get_lang('Assessments'),
];
}
@@ -133,7 +133,7 @@ Event::event_access_tool(TOOL_DOCUMENT);
Display :: display_header($nameTools, 'Doc');
echo '
';
@@ -167,6 +167,6 @@ if (api_browser_support('svg')) {
echo '';
echo '';
} else {
- echo Display::return_message(get_lang('BrowserDontSupportsSVG'), 'error');
+ echo Display::return_message(get_lang('Your browser does not support SVG files. To use the drawing tool you must have an advanced browser such as Firefox or Chrome'), 'error');
}
Display::display_footer();
diff --git a/main/document/edit_odf.php b/main/document/edit_odf.php
index 2f8c045863..75fe56e84b 100755
--- a/main/document/edit_odf.php
+++ b/main/document/edit_odf.php
@@ -115,7 +115,7 @@ if (!empty($documentInfo['parents'])) {
$actionBack = Display::url(
Display::return_icon(
'back.png',
- get_lang('BackTo').' '.get_lang('DocumentsOverview'),
+ get_lang('Back to').' '.get_lang('Documents overview'),
[],
ICON_SIZE_MEDIUM
),
diff --git a/main/document/edit_paint.php b/main/document/edit_paint.php
index c03e0c4a95..cf1a4b7997 100755
--- a/main/document/edit_paint.php
+++ b/main/document/edit_paint.php
@@ -54,7 +54,7 @@ $get_file = Security::remove_XSS($file_path);
$file = basename($get_file);
$temp_file = explode(".", $file);
$filename = $temp_file[0];
-$nameTools = get_lang('EditDocument').': '.$filename;
+$nameTools = get_lang('Edit').': '.$filename;
$courseDir = $_course['path'].'/document';
$is_allowed_to_edit = api_is_allowed_to_edit(null, true);
/* Other initialization code */
@@ -85,7 +85,7 @@ if (!is_dir($filepath)) {
if (!empty($groupId)) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
- 'name' => get_lang('GroupSpace'),
+ 'name' => get_lang('Group area'),
];
$group_document = true;
}
@@ -100,7 +100,7 @@ if (!$is_certificate_mode) {
} else {
$interbreadcrumb[] = [
'url' => Category::getUrl(),
- 'name' => get_lang('Gradebook'),
+ 'name' => get_lang('Assessments'),
];
}
@@ -128,7 +128,7 @@ Event::event_access_tool(TOOL_DOCUMENT);
Display :: display_header($nameTools, 'Doc');
echo '';
diff --git a/main/document/exit_pixlr.php b/main/document/exit_pixlr.php
index 3c1334a5f3..ff6f7a1dab 100755
--- a/main/document/exit_pixlr.php
+++ b/main/document/exit_pixlr.php
@@ -33,7 +33,7 @@ if (empty($exit)) {
echo '';
api_not_allowed(true);
} else {
- echo ''.get_lang('PleaseStandBy').'
';
+ echo ''.get_lang('Please stand by...').'
';
$location = api_get_path(WEB_CODE_PATH).'document/document.php?id='.Security::remove_XSS($exit).'&'.api_get_cidreq();
echo '';
Session::erase('exit_pixlr');
diff --git a/main/document/record_audio.php b/main/document/record_audio.php
index 92e295ee88..2c645512cf 100755
--- a/main/document/record_audio.php
+++ b/main/document/record_audio.php
@@ -11,7 +11,7 @@ use ChamiloSession as Session;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_COURSES;
$groupRights = Session::read('group_member_with_upload_rights');
-$nameTools = get_lang('VoiceRecord');
+$nameTools = get_lang('Voice record');
api_protect_course_script();
api_block_anonymous_users();
@@ -76,7 +76,7 @@ if (!is_dir($filepath)) {
//groups //TODO: clean
if (!empty($groupId)) {
- $interbreadcrumb[] = ["url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('GroupSpace')];
+ $interbreadcrumb[] = ["url" => "../group/group_space.php?".api_get_cidreq(), "name" => get_lang('Group area')];
$group = GroupManager :: get_group_properties($groupId);
$path = explode('/', $dir);
if ('/'.$path[1] != $group['directory']) {
@@ -141,7 +141,7 @@ $htmlHeadXtra[] = '';
exit;
} else {
- echo ''.get_lang('PleaseStandBy').'
';
+ echo ''.get_lang('Please stand by...').'
';
$location = api_get_path(WEB_CODE_PATH).'document/document.php?id='.Security::remove_XSS($exit).'&'.api_get_cidreq();
echo '';
Session::erase('exit_pixlr');
diff --git a/main/document/showinframes.php b/main/document/showinframes.php
index d53ae552ec..d9c9a1f49b 100755
--- a/main/document/showinframes.php
+++ b/main/document/showinframes.php
@@ -112,7 +112,7 @@ if (isset($group_id) && $group_id != '') {
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
- 'name' => get_lang('GroupSpace').' '.$current_group_name,
+ 'name' => get_lang('Group area').' '.$current_group_name,
];
$name_to_show = explode('/', $name_to_show);
unset($name_to_show[1]);
@@ -297,7 +297,7 @@ if ($execute_iframe) {
$actionsLeft .= Display::url(
Display::return_icon(
'edit.png',
- get_lang('Modify'),
+ get_lang('Edit'),
'',
ICON_SIZE_MEDIUM
),
@@ -325,7 +325,7 @@ if ($execute_iframe) {
]
);
$actionsLeft .= Display::url(
- Display::return_icon('pdf.png', get_lang('Export2PDF'), [], ICON_SIZE_MEDIUM),
+ Display::return_icon('pdf.png', get_lang('Export to PDF format'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq(
).'&action=export_to_pdf&id='.$document_id
);
diff --git a/main/document/slideshow.php b/main/document/slideshow.php
index e93f2d31f9..a30f9f020d 100755
--- a/main/document/slideshow.php
+++ b/main/document/slideshow.php
@@ -39,7 +39,7 @@ $url = 'document.php?curdirpath='.$pathurl.'&'.api_get_cidreq();
$originaltoolname = get_lang('Documents');
$_course = api_get_course_info();
$interbreadcrumb[] = ['url' => Security::remove_XSS($url), 'name' => $originaltoolname];
-$originaltoolname = get_lang('SlideShow');
+$originaltoolname = get_lang('Slideshow');
$sessionId = api_get_session_id();
$groupIid = 0;
@@ -93,7 +93,7 @@ if ($slide_id != 'all') {
} else {
$imgp = 'action_prev.png';
$first = '
- '.Display::return_icon('action_first.png', get_lang('FirstSlide')).'
+ '.Display::return_icon('action_first.png', get_lang('First slide')).'
';
}
@@ -120,11 +120,11 @@ if ($slide_id != 'all') {
}
if ($slide == $total_slides - 1) {
$imgn = 'action_next_na.png';
- $last = Display::return_icon('action_last_na.png', get_lang('LastSlide'));
+ $last = Display::return_icon('action_last_na.png', get_lang('Last slide'));
} else {
$imgn = 'action_next.png';
$last = '
- '.Display::return_icon('action_last.png', get_lang('LastSlide')).'
+ '.Display::return_icon('action_last.png', get_lang('Last slide')).'
';
}
echo Display::return_icon($imgn, get_lang('Next'));
@@ -146,13 +146,13 @@ echo Display::url(
// Show thumbnails
if ($slide_id != 'all') {
echo ''.
- Display::return_icon('thumbnails.png', get_lang('ShowThumbnails'), '', ICON_SIZE_MEDIUM).' ';
+ Display::return_icon('thumbnails.png', get_lang('Show Thumbnails'), '', ICON_SIZE_MEDIUM).'';
} else {
- echo Display::return_icon('thumbnails_na.png', get_lang('ShowThumbnails'), '', ICON_SIZE_MEDIUM);
+ echo Display::return_icon('thumbnails_na.png', get_lang('Show Thumbnails'), '', ICON_SIZE_MEDIUM);
}
// Slideshow options
echo ''.
- Display::return_icon('settings.png', get_lang('SetSlideshowOptions'), '', ICON_SIZE_MEDIUM).' ';
+ Display::return_icon('settings.png', get_lang('Gallery settings'), '', ICON_SIZE_MEDIUM).'';
echo '';
echo ' ';
@@ -490,15 +490,15 @@ if ($slide_id != 'all' && !empty($image_files_only)) {
$aux = explode('.', htmlspecialchars($image_files_only[$slide]));
$ext = $aux[count($aux) - 1];
if ($imageResize == 'resizing') {
- $resize_info = get_lang('Resizing').' ';
+ $resize_info = get_lang('RESIZE').' ';
$resize_width = Session::read('image_resizing_width').' x ';
$resize_height = Session::read('image_resizing_height');
} elseif ($imageResize != 'noresizing') {
- $resize_info = get_lang('Resizing').' ';
+ $resize_info = get_lang('RESIZE').' ';
$resize_width = get_lang('Auto').' x ';
$resize_height = get_lang('Auto');
} else {
- $resize_info = get_lang('NoResizing').' ';
+ $resize_info = get_lang('NoRESIZE').' ';
$resize_width = '';
$resize_height = '';
}
@@ -506,7 +506,7 @@ if ($slide_id != 'all' && !empty($image_files_only)) {
echo '';
echo $image_files_only[$slide].' ';
echo Display::toolbarButton(
- get_lang('Modify'),
+ get_lang('Edit'),
'edit_document.php?'.api_get_cidreq().'&'.http_build_query([
'id' => $row['id'],
'origin' => 'slideshow',
@@ -527,11 +527,11 @@ if ($slide_id != 'all' && !empty($image_files_only)) {
echo '';
}
} else {
- echo Display::return_message(get_lang('FileNotFound'), 'warning');
+ echo Display::return_message(get_lang('The file was not found'), 'warning');
}
} else {
if ($slide_id != 'all') {
- echo Display::return_message(get_lang('NoDataAvailable'), 'warning');
+ echo Display::return_message(get_lang('No data available'), 'warning');
}
}
diff --git a/main/document/slideshowoptions.php b/main/document/slideshowoptions.php
index b8c5eb1517..4acf27559c 100755
--- a/main/document/slideshowoptions.php
+++ b/main/document/slideshowoptions.php
@@ -36,13 +36,13 @@ $originaltoolname = get_lang('Documents');
$interbreadcrumb[] = ['url' => $url, 'name' => $originaltoolname];
$url = 'slideshow.php?curdirpath='.$pathurl;
-$originaltoolname = get_lang('SlideShow');
+$originaltoolname = get_lang('Slideshow');
$interbreadcrumb[] = ['url' => $url, 'name' => $originaltoolname];
// Because $nametools uses $_SERVER['PHP_SELF'] for the breadcrumbs instead of $_SERVER['REQUEST_URI'], I had to
// bypass the $nametools thing and use tags in the $interbreadcrump array
$url = 'slideshowoptions.php?curdirpath='.$pathurl;
-$originaltoolname = ''.get_lang('SlideshowOptions').' ';
+$originaltoolname = ''.get_lang('Slideshow Options').' ';
$interbreadcrumb[] = ['url' => $url, 'name' => $originaltoolname];
Display::display_header($originaltoolname, 'Doc');
@@ -65,14 +65,14 @@ window.onload =
'.Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).'';
-$actions .= ''.Display::return_icon('slideshow.png', get_lang('BackTo').' '.get_lang('SlideShow'), '', ICON_SIZE_MEDIUM).' ';
+$actions = ''.Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), '', ICON_SIZE_MEDIUM).' ';
+$actions .= ''.Display::return_icon('slideshow.png', get_lang('Back to').' '.get_lang('Slideshow'), '', ICON_SIZE_MEDIUM).' ';
echo Display::toolbarAction('toolbar-slideshow', [$actions]);
?>
-
+
>
- '.get_lang('NoResizing').', '.get_lang('NoResizingComment'); ?>
+ '.get_lang('NO RESIZING').', '.get_lang('NO RESIZINGComment'); ?>
@@ -91,7 +91,7 @@ echo Display::toolbarAction('toolbar-slideshow', [$actions]);
}
?>>
- '.get_lang('ResizingAuto').', '.get_lang('ResizingAutoComment'); ?>
+ '.get_lang('AUTO RESIZE (default)').', '.get_lang('AUTO RESIZE (default)Comment'); ?>
@@ -103,7 +103,7 @@ echo Display::toolbarAction('toolbar-slideshow', [$actions]);
}
?>>
- '.get_lang('Resizing').', '.get_lang('ResizingComment'); ?>
+ '.get_lang('RESIZE').', '.get_lang('RESIZEComment'); ?>
diff --git a/main/document/upload.php b/main/document/upload.php
index f71f064c0d..e439179376 100755
--- a/main/document/upload.php
+++ b/main/document/upload.php
@@ -83,7 +83,7 @@ if (!empty($groupId)) {
if ($is_allowed_to_edit || GroupManager::is_user_in_group(api_get_user_id(), $group_properties)) {
$interbreadcrumb[] = [
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(),
- 'name' => get_lang('GroupSpace'),
+ 'name' => get_lang('Group area'),
];
} else {
api_not_allowed(true);
@@ -116,10 +116,10 @@ if ($groupId != 0) {
$add_group_to_title = ' ('.$group_properties['name'].')';
}
if (isset($_REQUEST['certificate'])) {
- $nameTools = get_lang('UploadCertificate').$add_group_to_title;
+ $nameTools = get_lang('Upload certificate').$add_group_to_title;
$is_certificate_mode = true;
} else {
- $nameTools = get_lang('UplUploadDocument').$add_group_to_title;
+ $nameTools = get_lang('Upload documents').$add_group_to_title;
}
$certificateLink = '';
@@ -131,7 +131,7 @@ if ($is_certificate_mode) {
if ($is_certificate_mode) {
$interbreadcrumb[] = [
'url' => '../gradebook/index.php?'.api_get_cidreq().$certificateLink,
- 'name' => get_lang('Gradebook'),
+ 'name' => get_lang('Assessments'),
];
} else {
$interbreadcrumb[] = [
@@ -196,11 +196,11 @@ Display::display_header($nameTools, 'Doc');
// Link back to the documents overview
if ($is_certificate_mode) {
$actions = '
'.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('CertificateOverview'), '', ICON_SIZE_MEDIUM).
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Certificate overview'), '', ICON_SIZE_MEDIUM).
' ';
} else {
$actions = '
'.
- Display::return_icon('back.png', get_lang('BackTo').' '.get_lang('DocumentsOverview'), '', ICON_SIZE_MEDIUM).
+ Display::return_icon('back.png', get_lang('Back to').' '.get_lang('Documents overview'), '', ICON_SIZE_MEDIUM).
' ';
}
@@ -236,8 +236,8 @@ $repo = Container::getDocumentRepository();
$total = $repo->getTotalSpace(api_get_course_int_id());
$courseQuota = format_file_size(DocumentManager::get_course_quota() - $total);
$label =
- get_lang('MaxFileSize').': '.ini_get('upload_max_filesize').'
'.
- get_lang('DocumentQuota').': '.$courseQuota;
+ get_lang('Maximum file size').': '.ini_get('upload_max_filesize').'
'.
+ get_lang('Space Available').': '.$courseQuota;
$form->addElement('file', 'file', [get_lang('File'), $label], 'style="width: 250px" id="user_upload"');
$form->addElement('text', 'title', get_lang('Title'), ['id' => 'title_file']);
@@ -252,21 +252,21 @@ $form->addElement(
'checkbox',
'unzip',
get_lang('Options'),
- get_lang('Uncompress'),
+ get_lang('Uncompress zip'),
'onclick="javascript: check_unzip();" value="1"'
);
if (api_get_setting('search_enabled') === 'true') {
//TODO: include language file
- $supportedFormats = get_lang('SupportedFormatsForIndex').': HTML, PDF, TXT, PDF, Postscript, MS Word, RTF, MS Power Point';
+ $supportedFormats = get_lang('Supported formats for index').': HTML, PDF, TXT, PDF, Postscript, MS Word, RTF, MS Power Point';
$form->addElement(
'checkbox',
'index_document',
'',
- get_lang('SearchFeatureDoIndexDocument').'
'.$supportedFormats.'
'
+ get_lang('Index document text?').'
'.$supportedFormats.'
'
);
$form->addElement('html', '
');
$specific_fields = get_specific_field_list();
@@ -276,14 +276,14 @@ if (api_get_setting('search_enabled') === 'true') {
$form->addElement('html', '
');
}
-$form->addElement('radio', 'if_exists', get_lang('UplWhatIfFileExists'), get_lang('UplDoNothing'), 'nothing');
-$form->addElement('radio', 'if_exists', '', get_lang('UplOverwriteLong'), 'overwrite');
-$form->addElement('radio', 'if_exists', '', get_lang('UplRenameLong'), 'rename');
+$form->addElement('radio', 'if_exists', get_lang('If file exists:'), get_lang('Do nothing'), 'nothing');
+$form->addElement('radio', 'if_exists', '', get_lang('Overwrite the existing file'), 'overwrite');
+$form->addElement('radio', 'if_exists', '', get_lang('Rename the uploaded file if it exists'), 'rename');
// Close the java script and avoid the footer up
$form->addElement('html', '
');
// Button upload document
-$form->addButtonSend(get_lang('SendDocument'), 'submitDocument');
+$form->addButtonSend(get_lang('Upload file'), 'submitDocument');
$form->addProgress('DocumentUpload', 'file');
$fileExistsOption = api_get_setting('document_if_file_exists_option');
diff --git a/main/document/webcam_clip.php b/main/document/webcam_clip.php
index 118740d6ec..d1e64bafdf 100755
--- a/main/document/webcam_clip.php
+++ b/main/document/webcam_clip.php
@@ -17,7 +17,7 @@ require_once __DIR__.'/../inc/global.inc.php';
$_SESSION['whereami'] = 'document/webcamclip';
$this_section = SECTION_COURSES;
-$nameTools = get_lang('WebCamClip');
+$nameTools = get_lang('Webcam Clip');
$htmlHeadXtra[] = api_get_js_simple(api_get_path(WEB_PATH).'web/assets/webcamjs/webcam.js');
$htmlHeadXtra[] = api_get_js('webcam_recorder.js');
$groupRights = Session::read('group_member_with_upload_rights');
@@ -81,7 +81,7 @@ if (!is_dir($filepath)) {
if (!empty($groupId)) {
$interbreadcrumb[] = [
"url" => "../group/group_space.php?".api_get_cidreq(),
- "name" => get_lang('GroupSpace'),
+ "name" => get_lang('Group area'),
];
$noPHP_SELF = true;
$group = GroupManager::get_group_properties($groupId);
@@ -142,7 +142,7 @@ $actions = Display::toolbarAction(
Display::url(
Display::return_icon(
'back.png',
- get_lang('BackTo').' '.get_lang('DocumentsOverview'),
+ get_lang('Back to').' '.get_lang('Documents overview'),
[],
ICON_SIZE_MEDIUM
),
@@ -159,7 +159,7 @@ $template->assign('filename', 'video_clip.jpg');
$layout = $template->get_template('document/webcam.tpl');
$content = $template->fetch($layout);
-$template->assign('header', get_lang('TakeYourPhotos'));
+$template->assign('header', get_lang('Take your photos'));
$template->assign('actions', $actions);
$template->assign('content', $content);
$template->display_one_col_template();
diff --git a/main/document/webcam_receiver.php b/main/document/webcam_receiver.php
index 6660aaf816..1ec9dbf6bd 100755
--- a/main/document/webcam_receiver.php
+++ b/main/document/webcam_receiver.php
@@ -84,4 +84,4 @@ $doc_id = DocumentManager::addDocument(
$title_to_save
);
$url = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI']).'/'.$documentPath;
-echo get_lang('ClipSent');
+echo get_lang('Clip sent');
diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php
index 7641c2af5c..bc131e4a74 100755
--- a/main/inc/introductionSection.inc.php
+++ b/main/inc/introductionSection.inc.php
@@ -90,7 +90,7 @@ if ($intro_editAllowed) {
$em->persist($toolIntro);
$em->flush();
- Display::addFlash(Display::return_message(get_lang('IntroductionTextUpdated'), 'confirmation', false));
+ Display::addFlash(Display::return_message(get_lang('Intro was updated'), 'confirmation', false));
} else {
// got to the delete command
$intro_cmdDel = true;
@@ -105,7 +105,7 @@ if ($intro_editAllowed) {
$em->remove($toolIntro);
$em->flush();
- Display::addFlash(Display::return_message(get_lang('IntroductionTextDeleted'), 'confirmation'));
+ Display::addFlash(Display::return_message(get_lang('Intro was deleted'), 'confirmation'));
}
}
@@ -184,7 +184,7 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
// Show only the current course progress step
$last_done_advance = $thematic->get_last_done_thematic_advance();
$thematic_advance_info = $thematic->get_thematic_advance_list($last_done_advance);
- $subTitle1 = get_lang('CurrentTopic');
+ $subTitle1 = get_lang('Current topic');
$class1 = ' current';
} elseif ($displayMode == '2') {
// Show only the two next course progress steps
@@ -192,20 +192,20 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
$next_advance_not_done = $thematic->get_next_thematic_advance_not_done(2);
$thematic_advance_info = $thematic->get_thematic_advance_list($last_done_advance);
$thematic_advance_info2 = $thematic->get_thematic_advance_list($next_advance_not_done);
- $subTitle1 = $subTitle2 = get_lang('NextTopic');
+ $subTitle1 = $subTitle2 = get_lang('Next topic');
} elseif ($displayMode == '3') {
// Show the current and next course progress steps
$last_done_advance = $thematic->get_last_done_thematic_advance();
$next_advance_not_done = $thematic->get_next_thematic_advance_not_done();
$thematic_advance_info = $thematic->get_thematic_advance_list($last_done_advance);
$thematic_advance_info2 = $thematic->get_thematic_advance_list($next_advance_not_done);
- $subTitle1 = get_lang('CurrentTopic');
- $subTitle2 = get_lang('NextTopic');
+ $subTitle1 = get_lang('Current topic');
+ $subTitle2 = get_lang('Next topic');
$class1 = ' current';
}
if (!empty($thematic_advance_info)) {
- $thematic_advance = get_lang('CourseThematicAdvance');
+ $thematic_advance = get_lang('Course progress');
$thematicScore = $thematic->get_total_average_of_thematic_advances().'%';
$thematicUrl = api_get_path(WEB_CODE_PATH).'course_progress/index.php?action=thematic_details&'.api_get_cidreq();
$thematic_info = $thematic->get_thematic_list($thematic_advance_info['thematic_id']);
@@ -235,7 +235,7 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
'.Display::returnFontAwesomeIcon('book').strip_tags($thematic_info['title']).'
'.Display::returnFontAwesomeIcon('calendar-o').$thematic_advance_info['start_date'].'
'.Display::returnFontAwesomeIcon('file-text-o').strip_tags($thematic_advance_info['content']).'
- '.Display::returnFontAwesomeIcon('clock-o').get_lang('DurationInHours').' : '.$thematic_advance_info['duration'].' - '.get_lang('SeeDetail').'
+ '.Display::returnFontAwesomeIcon('clock-o').get_lang('Duration in hours').' : '.$thematic_advance_info['duration'].' - '.get_lang('See detail').'
';
@@ -251,7 +251,7 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
'.Display::returnFontAwesomeIcon('book').$thematic_info2['title'].'
'.Display::returnFontAwesomeIcon('calendar-o').$thematic_advance_info2['start_date'].'
'.Display::returnFontAwesomeIcon('file-text-o').strip_tags($thematic_advance_info2['content']).'
- '.Display::returnFontAwesomeIcon('clock-o').get_lang('DurationInHours').' : '.$thematic_advance_info2['duration'].' - '.get_lang('SeeDetail').'
+ '.Display::returnFontAwesomeIcon('clock-o').get_lang('Duration in hours').' : '.$thematic_advance_info2['duration'].' - '.get_lang('See detail').'
';
}
@@ -260,7 +260,7 @@ if ($tool == TOOL_COURSE_HOMEPAGE && !isset($_GET['intro_cmdEdit'])) {
$thematicPanel .= ''.$thematicItemOne.$thematicItemTwo.'
';
$thematicPanel .= '';
$thematicPanel .= '';
$thematicProgress = Display::panelCollapse(
@@ -285,7 +285,7 @@ $toolbar = [];
/*if (api_is_allowed_to_edit() && empty($session_id)) {
$tool = [
- 'name' => get_lang('CustomizeIcons'),
+ 'name' => get_lang('Customize icons'),
'url' => api_get_path(WEB_CODE_PATH).'course_info/tools.php?'.api_get_cidreq(),
'icon' => 'fas fa-cog',
];
@@ -316,14 +316,14 @@ if ($intro_dispCommand) {
if (!empty($courseId)) {
$tool = [
- 'name' => get_lang('Modify'),
+ 'name' => get_lang('Edit'),
'url' => api_get_self().'?'.api_get_cidreq().$blogParam.'&intro_cmdEdit=1',
'icon' => 'fas fa-pencil-alt',
];
$toolbar[] = $tool;
$tool = [
- 'name' => addslashes(api_htmlentities(get_lang('ConfirmYourChoice'))),
+ 'name' => addslashes(api_htmlentities(get_lang('Please confirm your choice'))),
'url' => api_get_self()."?".api_get_cidreq().$blogParam."&intro_cmdDel=1",
'icon' => 'fas fa-trash-alt',
'class' => 'delete-swal',
@@ -331,14 +331,14 @@ if ($intro_dispCommand) {
$toolbar[] = $tool;
} else {
$tool = [
- 'name' => get_lang('Modify'),
+ 'name' => get_lang('Edit'),
'url' => api_get_self().'?intro_cmdEdit=1',
'icon' => 'fas fa-pencil-alt',
];
$toolbar[] = $tool;
$tool = [
- 'name' => addslashes(api_htmlentities(get_lang('ConfirmYourChoice'))),
+ 'name' => addslashes(api_htmlentities(get_lang('Please confirm your choice'))),
'url' => api_get_self()."?".api_get_cidreq()."&intro_cmdDel=1",
'icon' => 'fas fa-trash-alt',
'class' => 'delete-swal',
diff --git a/main/inc/lib/formvalidator/Element/SelectAjax.php b/main/inc/lib/formvalidator/Element/SelectAjax.php
index 3f286a64b5..862076b511 100644
--- a/main/inc/lib/formvalidator/Element/SelectAjax.php
+++ b/main/inc/lib/formvalidator/Element/SelectAjax.php
@@ -44,7 +44,7 @@ class SelectAjax extends HTML_QuickForm_select
$plHolder = $this->getAttribute('placeholder');
if (empty($plHolder)) {
- $plHolder = get_lang('SelectAnOption');
+ $plHolder = get_lang('Please select an option');
}
$id = $this->getAttribute('id');
diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php
index d1cdc86002..d13a3e5629 100755
--- a/main/inc/lib/formvalidator/FormValidator.class.php
+++ b/main/inc/lib/formvalidator/FormValidator.class.php
@@ -87,8 +87,8 @@ class FormValidator extends HTML_QuickForm
//When you want to group buttons use something like this
/* $group = array();
- $group[] = $form->createElement('button', 'mark_all', get_lang('MarkAll'));
- $group[] = $form->createElement('button', 'unmark_all', get_lang('UnmarkAll'));
+ $group[] = $form->createElement('button', 'mark_all', get_lang('Select all'));
+ $group[] = $form->createElement('button', 'unmark_all', get_lang('Unselect all'));
$form->addGroup($group, 'buttons_in_action');
*/
$renderer->setElementTemplate($templateSimple, 'buttons_in_action');
@@ -102,7 +102,7 @@ class FormValidator extends HTML_QuickForm
//Set required field template
$this->setRequiredNote(
- '* '.get_lang('ThisFieldIsRequired').' '
+ '* '.get_lang('Required field').' '
);
$noteTemplate = <<applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
return $element;
@@ -229,7 +229,7 @@ EOT;
$this->addElement('hidden', $name.'_end');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
}
@@ -329,7 +329,7 @@ EOT;
$element = $this->addElement('textarea', $name, $label, $attributes);
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
return $element;
@@ -951,7 +951,7 @@ EOT;
- '.get_lang('CropYourPicture').'
+ '.get_lang('Crop your picture').'
@@ -1047,7 +1047,7 @@ EOT;
$this->addElement('html_editor', $name, $label, $attributes, $config);
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
/** @var HtmlEditor $element */
@@ -1122,7 +1122,7 @@ EOT;
*/
public function addButtonAdvancedSettings($name, $label = '')
{
- $label = !empty($label) ? $label : get_lang('AdvancedParameters');
+ $label = !empty($label) ? $label : get_lang('Advanced settings');
return $this->addElement('advanced_settings', $name, $label);
}
@@ -1133,7 +1133,7 @@ EOT;
public function addProgress($delay = 2, $label = '')
{
if (empty($label)) {
- $label = get_lang('PleaseStandBy');
+ $label = get_lang('Please stand by...');
}
$this->with_progress_bar = true;
$id = $this->getAttribute('id');
@@ -1241,10 +1241,10 @@ EOT;
{
$this->addElement('url', $name, $label, $attributes);
$this->applyFilter($name, 'trim');
- $this->addRule($name, get_lang('InsertAValidUrl'), 'url');
+ $this->addRule($name, get_lang('Insert a valid URL'), 'url');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
}
@@ -1267,7 +1267,7 @@ EOT;
$attributes,
[
'pattern' => '[a-zA-ZñÑ]+',
- 'title' => get_lang('OnlyLetters'),
+ 'title' => get_lang('Only letters'),
]
);
@@ -1276,7 +1276,7 @@ EOT;
$name,
[
$label,
- get_lang('OnlyLetters'),
+ get_lang('Only letters'),
],
$attributes
);
@@ -1284,12 +1284,12 @@ EOT;
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
$this->addRule(
$name,
- get_lang('OnlyLetters'),
+ get_lang('Only letters'),
'regex',
'/^[a-zA-ZñÑ]+$/'
);
@@ -1314,7 +1314,7 @@ EOT;
$attributes,
[
'pattern' => '[a-zA-Z0-9ñÑ]+',
- 'title' => get_lang('OnlyLettersAndNumbers'),
+ 'title' => get_lang('Only lettersAndNumbers'),
]
);
@@ -1323,7 +1323,7 @@ EOT;
$name,
[
$label,
- get_lang('OnlyLettersAndNumbers'),
+ get_lang('Only lettersAndNumbers'),
],
$attributes
);
@@ -1331,12 +1331,12 @@ EOT;
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
$this->addRule(
$name,
- get_lang('OnlyLettersAndNumbers'),
+ get_lang('Only lettersAndNumbers'),
'regex',
'/^[a-zA-Z0-9ÑÑ]+$/'
);
@@ -1370,13 +1370,13 @@ EOT;
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
// Rule allows "," and "."
/*$this->addRule(
$name,
- get_lang('OnlyNumbers'),
+ get_lang('Only numbers'),
'regex',
'/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)|(^-?\d\d*\,\d*$)|(^-?\,\d\d*$)/'
);*/
@@ -1384,7 +1384,7 @@ EOT;
if ($allowNegative == false) {
$this->addRule(
$name,
- get_lang('NegativeValue'),
+ get_lang('Negative value'),
'compare',
'>=',
'server',
@@ -1397,7 +1397,7 @@ EOT;
if (!is_null($minValue)) {
$this->addRule(
$name,
- get_lang('UnderMin'),
+ get_lang('Under the minimum.'),
'compare',
'>=',
'server',
@@ -1410,7 +1410,7 @@ EOT;
if (!is_null($maxValue)) {
$this->addRule(
$name,
- get_lang('OverMax'),
+ get_lang('Value exceeds score.'),
'compare',
'<=',
'server',
@@ -1440,7 +1440,7 @@ EOT;
$attributes,
[
'pattern' => '[a-zA-ZñÑ\s]+',
- 'title' => get_lang('OnlyLettersAndSpaces'),
+ 'title' => get_lang('Only lettersAndSpaces'),
]
);
@@ -1449,7 +1449,7 @@ EOT;
$name,
[
$label,
- get_lang('OnlyLettersAndSpaces'),
+ get_lang('Only lettersAndSpaces'),
],
$attributes
);
@@ -1457,12 +1457,12 @@ EOT;
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
$this->addRule(
$name,
- get_lang('OnlyLettersAndSpaces'),
+ get_lang('Only lettersAndSpaces'),
'regex',
'/^[a-zA-ZñÑ\s]+$/'
);
@@ -1487,7 +1487,7 @@ EOT;
$attributes,
[
'pattern' => '[a-zA-Z0-9ñÑ\s]+',
- 'title' => get_lang('OnlyLettersAndNumbersAndSpaces'),
+ 'title' => get_lang('Only lettersAndNumbersAndSpaces'),
]
);
@@ -1496,7 +1496,7 @@ EOT;
$name,
[
$label,
- get_lang('OnlyLettersAndNumbersAndSpaces'),
+ get_lang('Only lettersAndNumbersAndSpaces'),
],
$attributes
);
@@ -1504,12 +1504,12 @@ EOT;
$this->applyFilter($name, 'trim');
if ($required) {
- $this->addRule($name, get_lang('ThisFieldIsRequired'), 'required');
+ $this->addRule($name, get_lang('Required field'), 'required');
}
$this->addRule(
$name,
- get_lang('OnlyLettersAndNumbersAndSpaces'),
+ get_lang('Only lettersAndNumbersAndSpaces'),
'regex',
'/^[a-zA-Z0-9ñÑ\s]+$/'
);
@@ -1526,17 +1526,17 @@ EOT;
$this->addHtml('
- '.get_lang('ClickToSelectOrDragAndDropMultipleFilesOnTheUploadField').'
+ '.get_lang('Click on the box below to select files from your computer (you can use CTRL + clic to select various files at a time), or drag and drop some files from your desktop directly over the box below. The system will handle the rest!').'
- '.get_lang('AddFiles').'
+ '.get_lang('Add files').'
- '.get_lang('UploadFiles').'
+ '.get_lang('Click or drag and drop files here to upload them').'
@@ -1557,7 +1557,7 @@ EOT;
public function addPasswordRule($elementName, $groupName = '')
{
if (api_get_setting('security.check_password') == 'true') {
- $message = get_lang('PassTooEasy').': '.api_generate_password();
+ $message = get_lang('this password is too simple. Use a pass like this').': '.api_generate_password();
if (!empty($groupName)) {
$groupObj = $this->getElement($groupName);
@@ -1786,7 +1786,7 @@ EOT;
// Update file name with new one from Chamilo
$(data.context.children()[index]).parent().find('.file_name').html(file.name);
var message = $('').html(
- $('
').text('".addslashes(get_lang('UplUploadSucceeded'))."')
+ $('').text('".addslashes(get_lang('File upload succeeded!'))."')
);
$(data.context.children()[index]).parent().append(message);
});
@@ -1794,7 +1794,7 @@ EOT;
".$redirectCondition."
}).on('fileuploadfail', function (e, data) {
$.each(data.files, function (index) {
- var failedMessage = '".addslashes(get_lang('UplUploadFailed'))."';
+ var failedMessage = '".addslashes(get_lang('The file upload has failed.'))."';
var error = $('