mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-12-14 19:42:53 +00:00
add translation of 'Processing ...', use getMLText()
This commit is contained in:
parent
0186e1af00
commit
61db1313a3
|
|
@ -132,7 +132,7 @@ function check_queue() {
|
||||||
}
|
}
|
||||||
var command = '';
|
var command = '';
|
||||||
docid = funcArray.pop();
|
docid = funcArray.pop();
|
||||||
$('#status_'+docid).html('Processsing ...');
|
$('#status_'+docid).html('<?= getMLText('index_processing') ?>');
|
||||||
if(docid[0] == 'F') {
|
if(docid[0] == 'F') {
|
||||||
command = 'indexfolder';
|
command = 'indexfolder';
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -161,11 +161,11 @@ function check_queue() {
|
||||||
// console.log('success ' + data.data);
|
// console.log('success ' + data.data);
|
||||||
if(data.success) {
|
if(data.success) {
|
||||||
if(data.cmd)
|
if(data.cmd)
|
||||||
$('#status_'+data.data).html('<?php printMLText('index_done'); ?>');
|
$('#status_'+data.data).html('<?= getMLText('index_done') ?>');
|
||||||
else
|
else
|
||||||
$('#status_'+data.data).html('<?= getMLText('index_done').' ('.getMLText('index_no_content').')'; ?>');
|
$('#status_'+data.data).html('<?= getMLText('index_done').' ('.getMLText('index_no_content').')' ?>');
|
||||||
} else {
|
} else {
|
||||||
$('#status_'+data.data).html('<?php printMLText('index_error'); ?>');
|
$('#status_'+data.data).html('<?= getMLText('index_error') ?>');
|
||||||
noty({
|
noty({
|
||||||
text: '<p><strong>Docid: ' + data.data + ' (' + data.mimetype + ')</strong></p>' + '<p>Cmd: ' + data.cmd + '</p>' + data.message,
|
text: '<p><strong>Docid: ' + data.data + ' (' + data.mimetype + ')</strong></p>' + '<p>Cmd: ' + data.cmd + '</p>' + data.message,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|
@ -196,7 +196,7 @@ $(document).ready( function() {
|
||||||
$('.indexme').each(function(index) {
|
$('.indexme').each(function(index) {
|
||||||
var element = $(this);
|
var element = $(this);
|
||||||
var docid = element.data('docid');
|
var docid = element.data('docid');
|
||||||
element.html('<?php printMLText('index_pending'); ?>');
|
element.html('<?= getMLText('index_pending') ?>');
|
||||||
funcArray.push(docid);
|
funcArray.push(docid);
|
||||||
});
|
});
|
||||||
docstoindex = funcArray.length;
|
docstoindex = funcArray.length;
|
||||||
|
|
@ -235,13 +235,13 @@ div.folder {font-weight: bold; line-height: 20px; margin-top: 10px;}
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progress-bar bar total-bar" role="progressbar" style="width: 100%;"></div>
|
<div class="progress-bar bar total-bar" role="progressbar" style="width: 100%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bar-legend"><?php printMLText('overall_indexing_progress'); ?></div>
|
<div class="bar-legend"><?= getMLText('overall_indexing_progress') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="progress-bar bar queue-bar" role="progressbar" style="width: 100%;"></div>
|
<div class="progress-bar bar queue-bar" role="progressbar" style="width: 100%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bar-legend"><?php printMLText('indexing_tasks_in_queue'); ?></div>
|
<div class="bar-legend"><?= getMLText('indexing_tasks_in_queue') ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$folderprocess = new SeedDMS_View_Indexer_Process_Folder($fulltextservice, $forceupdate);
|
$folderprocess = new SeedDMS_View_Indexer_Process_Folder($fulltextservice, $forceupdate);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user