From: Alex R. <sh...@al...> - 2003-08-11 01:19:16
|
On Wed, Aug 06, 2003 at 11:22:24PM -0500, Alex Roitman wrote: > Do nothing vs always translate vs look at the version? Hi all, Just to bring everybody up to date: we used to have a problem in that the family relations, the event types and the attributes, both personal and family, were saved in XML in $LANG. The correct functionality would be English for all the standard events, relations, and attributes. Previously, the thing was fixed for the newly created data. The question was open as to what to do with the data created by prior versions of gramps, which still has $LANG in place of English for all standard relations/events/attributes (referred to as "rea" in the following text for brevity :-). I just checked in a solution which attempts to translate the data upon reading. It probably slows down the parsing process somewhat, but I don't think it is a considerable slowdown because these data usually constitute a small portion of the overall data. I might be wrong here, so if more people can try reading their XML data with current CVS and with the latest release and provide a clue to the performance price, it would be of great help. Another remark concerning these issues. If everything is done right, the standard "rea" should be in English after they are read from the file. Various editing points convert them to $LANG and then back, so that all the data in database (in memory) should be in English. This means the conversion on save is not necessary anymore. Right now we still have it enabled, but it probably is an overkill. If we remove conversion on save, we would expose places where we still have holes (i.e. where the memory data is not English). This way we may correct the issues which presently would go unnoticed. On the other hand, present approach safely creates proper datafiles which can be shared between languages. I would love to hear opinions from interested parties on this matter :-) Alex -- Alexander Roitman http://ebner.neuroscience.umn.edu/people/alex.html Dept. of Neuroscience, Lions Research Building 2001 6th Street SE, Minneapolis, MN 55455 Tel (612) 625-7566 FAX (612) 626-9201 |