Translate a site via database dump - searchable words?

Author Message

Zoltan Szabo

Thursday 06 November 2003 10:45:31 am

I would like to ask one of my friends to translate my website (eZp 3.2). He don't has cheap internet-access, so that was my idea: I create a "translation" of the nodes (in the admin interface), and I put a QQQ (or something unique) before every sentence to be translated. Then I send the database dump to my friend, he searches for QQQ-s, makes the translation, and finally I fill back the database.

The problem is that the ezsearch_word table won't be filled this way. I tried to modify some words after this "reload" - in hope that the system will recognize some new words - but there was no change in the ezsearch_word table.

What is the way to make eZp to generate records in ezsearch_word?

(I tried to examine kernel/search/plugins/ezsearchengine/ezsearchengine.php, but I couldn't find out, how it works. array_diff( $indexArrayOnlyWords, $existingWordArray) must be some important moment, but why was not I able to make it generate new records...?)

Marco Zinn

Thursday 06 November 2003 1:18:37 pm

Hi Zoltan,

there is a php script in the distribution called updatesearchindex.php (in update/common/scripts). I think, when you run this script from your ezpublish document root folder, it should re-index all objects.

Marco
http://www.hyperroad-design.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:28:53
Script start
Timing: Jan 31 2025 01:28:53
Module start 'layout'
Timing: Jan 31 2025 01:28:53
Module start 'content'
Timing: Jan 31 2025 01:28:53
Module end 'content'
Timing: Jan 31 2025 01:28:53
Script end

Main resources:

Total runtime0.0255 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2578151.2266
Module start 'layout' 0.00550.0046 739.4844220.7344
Module start 'content' 0.01010.0135 960.2188997.7109
Module end 'content' 0.02360.0019 1,957.929729.9922
Script end 0.0255  1,987.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003212.6860140.0002
Check MTime0.00155.9077140.0001
Mysql Total
Database connection0.00083.051510.0008
Mysqli_queries0.003011.752030.0010
Looping result0.00000.073810.0000
Template Total0.00145.610.0014
Template load0.00124.666410.0012
Template processing0.00020.874310.0002
Override
Cache load0.00093.478310.0009
General
dbfile0.00031.091980.0000
String conversion0.00000.027140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs