[haiku-bugs] Re: [Haiku] #6808: Drop the checksum field from catkeys file header

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 10 Nov 2010 12:18:58 -0000

#6808: Drop the checksum field from catkeys file header
------------------------------+--------------------------
  Reporter:  rq               |        Owner:  pulkomandy
      Type:  bug              |       Status:  new
  Priority:  normal           |    Milestone:  R1
 Component:  Kits/Locale Kit  |      Version:  R1/alpha2
Resolution:                   |     Keywords:
Blocked By:                   |  Has a Patch:  0
  Platform:  All              |     Blocking:
------------------------------+--------------------------

Comment (by pulkomandy):

 The checksum is computed only on the english strings, so it shouldn't
 change.
 current hta is messing with it and creating problems.

 For reference, here are the reasons I want to keep this checksumming :
  * It's used for symmetry between the .catalog and .catkeys files. This
 way, they share more code
  * It allows to ensure that a catkeys file is correct and was not
 corrupted. Cause of corruption can be bug of hta, or user errors
 (reencoding the file to something else than utf-8, for example)
  * Version matching of catkeys. By comparing the fingerprint in en.catkeys
 and the one in a translation, one can immediately tell wether the
 translation is up to date.

 The first item is a lame developper excuse.
 The two others are more important. Note that the pain you feel as a
 translator for having to updating this field, would be transferred to me,
 for having to check everything by hand, and this, for all languages. My
 goal is to make the process fully automatic from translator to svn. This
 needs some sanity checks on the submitted files, and thecatkey allows to
 check for file validity instantly. If the key isout of sync, it means
 something went wrong somewhere, and this will have consequences down the
 line. Hiding the symptom is not a good cure.

 Now, the reasons mentionned by RQ are also good points in the other
 direction. There are other, more complicated ways of doing these checks,
 but in no case I'm continuing handling this manually. So don't remove the
 catkey until there's a proven, working way of doing the same checks, with
 as much automatisation as possible.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6808#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: