Commit fd6d03b90c6a9414be3ab3dd4acc6962f24b8816

Authored by conradverm
1 parent 8ca27c69

KTS-2395

"Create index migration script"
Updated. Internationalisation.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7366 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/search2/lucene_migration.smarty
1 <P> 1 <P>
2 -Migration to using the new search requires text to be moved from the database full text indexes into the Lucene indexes. This may take some time depending  
3 -on the size of the repository. For this reason, the process is a background task. 2 +{i18n}Migration to using the new search requires text to be moved from the database full text indexes into the Lucene indexes. This may take some time depending
  3 +on the size of the repository. For this reason, the process is a background task.{/i18n}
4 <P> 4 <P>
5 5
6 <table> 6 <table>
7 -<tr><td>Documents processed in a single migration run:</td><td>{$batchDocuments}</td></tr>  
8 -<tr><td>Frequency at which migration batch task runs:</td><td>{$batchPeriod}</td></tr>  
9 -<tr><td>Migration process started on:</td><td>{$migrationStart}</td></tr>  
10 -<tr><td>Migration process has taken:</td><td>{$migrationPeriod}</td></tr>  
11 -<tr><td>Total documents migrated:</td><td>{$migratedDocuments}</td></tr>  
12 -<tr><td>Total documents to be migrated:</td><td>{$migratingDocuments}</td></tr>  
13 -<tr><td>Estimated completion time:</td><td>{$estimatedTime}</td></tr>  
14 -<tr><td>Estimated migration time remaining:</td><td>{$estimatedPeriod}</td></tr> 7 +<tr><td>{i18n}Documents processed in a single migration run:{/i18n}</td><td>{$batchDocuments}</td></tr>
  8 +<tr><td>{i18n}Frequency at which migration batch task runs:{/i18n}</td><td>{$batchPeriod}</td></tr>
  9 +<tr><td>{i18n}Migration process started on:{/i18n}</td><td>{$migrationStart}</td></tr>
  10 +<tr><td>{i18n}Migration process has taken:{/i18n}</td><td>{$migrationPeriod}</td></tr>
  11 +<tr><td>{i18n}Total documents migrated:{/i18n}</td><td>{$migratedDocuments}</td></tr>
  12 +<tr><td>{i18n}Total documents to be migrated:{/i18n}</td><td>{$migratingDocuments}</td></tr>
  13 +<tr><td>{i18n}Estimated completion time:{/i18n}</td><td>{$estimatedTime}</td></tr>
  14 +<tr><td>{i18n}Estimated migration time remaining:{/i18n}</td><td>{$estimatedPeriod}</td></tr>
15 </table> 15 </table>
16 -<B>Note:</b> <i>Search results will not be accurate until the migration process is complete.</i>  
17 -<br>This dashlet will disappear when the migration process is complete. 16 +<B>{i18n}Note:</b> <i>Search results will not be accurate until the migration process is complete.{/i18n}</i>
  17 +<br>{i18n}This dashlet will disappear when the migration process is complete.{/i18n}
18 <br> 18 <br>
19 \ No newline at end of file 19 \ No newline at end of file
templates/ktcore/search2/lucene_statistics.smarty
1 <P> 1 <P>
2 -This dashlet provides some basic statistics on the Lucene index. 2 +{i18n}This dashlet provides some basic statistics on the Lucene index.{/i18n}
3 <P> 3 <P>
4 4
5 <table> 5 <table>
6 -<tr><td>Last optimisation date:</td><td>{$stats.optimisationDate}</td></tr>  
7 -<tr><td>Period since last optimisation:</td><td>{$stats.optimisationPeriod}</td></tr>  
8 -<tr><td>Last indexing date:</td><td>{$stats.indexingDate}</td></tr>  
9 -<tr><td>Period since last indexing:</td><td>{$stats.indexingPeriod}</td></tr>  
10 -<tr><td>Total documents in repository:</td><td>{$stats.docsInRepository}</td></tr>  
11 -<tr><td>Documents in index:</td><td>{$stats.docsInIndex}</td></tr>  
12 -<tr><td>Documents in indexing queue:</td><td>{$stats.docsInQueue}</td></tr>  
13 -<tr><td>Indexing coverage:</td><td>{$stats.indexingCoverage}</td></tr>  
14 -<tr><td>Queue coverage:</td><td>{$stats.queueCoverage}</td></tr> 6 +<tr><td>{i18n}Last optimisation date:{/i18n}</td><td>{$stats.optimisationDate}</td></tr>
  7 +<tr><td>{i18n}Period since last optimisation:{/i18n}</td><td>{$stats.optimisationPeriod}</td></tr>
  8 +<tr><td>{i18n}Last indexing date:{/i18n}</td><td>{$stats.indexingDate}</td></tr>
  9 +<tr><td>{i18n}Period since last indexing:{/i18n}</td><td>{$stats.indexingPeriod}</td></tr>
  10 +<tr><td>{i18n}Total documents in repository:{/i18n}</td><td>{$stats.docsInRepository}</td></tr>
  11 +<tr><td>{i18n}Documents in index:{/i18n}</td><td>{$stats.docsInIndex}</td></tr>
  12 +<tr><td>{i18n}Documents in indexing queue:{/i18n}</td><td>{$stats.docsInQueue}</td></tr>
  13 +<tr><td>{i18n}Indexing coverage:{/i18n}</td><td>{$stats.indexingCoverage}</td></tr>
  14 +<tr><td>{i18n}Queue coverage:{/i18n}</td><td>{$stats.queueCoverage}</td></tr>
15 </table> 15 </table>
16 -<b>Notes:</b><br> 16 +<b>{i18n}Notes:</b><br>
17 <table> 17 <table>
18 -<tr><td valign=top>*<td>Not all documents contain text. This will explain why the indexing coverage percentage my vary.  
19 -<tr><td valign=top>*<td>The queue coverage indicates how many documents are in the queue in relation to the repository size. 18 +<tr><td valign=top>*<td>{i18n}Not all documents contain text. This will explain why the indexing coverage percentage my vary.{/i18n}
  19 +<tr><td valign=top>*<td>{i18n}The queue coverage indicates how many documents are in the queue in relation to the repository size.{/i18n}
20 {if $stats.noOptimisation} 20 {if $stats.noOptimisation}
21 -<tr><td valign=top>*<td><i>To get the best performance out of Lucene, the indexes must be optimised periodically. This is managed by a background task. 21 +<tr><td valign=top>*<td><i>{i18n}To get the best performance out of Lucene, the indexes must be optimised periodically. This is managed by a background task.{/i18n}
22 {/if} 22 {/if}
23 </table> 23 </table>
24 <table width="100%"> 24 <table width="100%">
25 -<tr><td colspan=2 align=right><a href="/search2.php?action=refreshLuceneStats" align=right>Refresh</a></tr> 25 +<tr><td colspan=2 align=right><a href="/search2.php?action=refreshLuceneStats" align=right>{i18n}Refresh{/i18n}</a></tr>
26 </table> 26 </table>
27 \ No newline at end of file 27 \ No newline at end of file