[i18n] Fwd: [cvs] commit: horde/po translation.php

Jan Schneider jan@horde.org
Sun Oct 20 18:57:58 PDT 2002


I just added three new commands (two interesting for you) to the translation
command line tool.

These are used to update the translated help files. There always was the
problem that you never knew if you help file translations were still
up-to-date and often enough you just forgot to take a look at them.

You now can easily execute:
translation.php update-help -l de_DE -m imp
and (in this example) IMP's German help file will get merged with the
original (English) help file.

All entries will have a new attribute "state". It can have the following values:
- "new": this entry was found in the original help file but not in the
translation.
- "changed": the according entry in the original help file has changed since
the make-help command was run the last time.
- "unknown": should only occur before the make-help command was run the
first time.

Changed and unknown entries also contain an xml comment at their end
containing the according entry from the original help file. Thus you can
easily compare if your entries are still up-to-date or if and what has
changed in the original file.

If you are sure that all your entries are up-to-date with the original help
file, you can run the make-help command. This command will mark all entries
up-to-date, remove all comments with the original entries and calculate a
checksum of the original entries, so that the next time you run update-help
the tool knows which entries have changed since your last update.

A final note: These features need the domxml extension being compiled into
the PHP command line binary. I only tested the new commands with the the
latest PHP from CVS so ymmv.

Any feedback is welcome - as always.

----- Weitergeleitete Nachricht von jan@ammma.de -----
    Datum: Sun, 20 Oct 2002 09:29:07 -0700 (PDT)
    Von: Jan Schneider <jan@ammma.de>
Antwort an: dev@lists.horde.org
 Betreff: [cvs] commit: horde/po translation.php
      An: cvs@lists.horde.org

jan         2002/10/20 09:29:07 PDT

  Modified files:
    po                   translation.php 
  Log:
  Add update-help, make-help and commit-help commands to maintain the help
  file translations.
  
  Revision  Changes    Path
  1.16      +309 -18   horde/po/translation.php

  Chora Links:
  http://cvs.horde.org/diff.php/horde/po/translation.php?r1=1.15&r2=1.16&ty=u

-- 
To unsubscribe, mail: cvs-unsubscribe@lists.horde.org

----- Ende der weitergeleiteten Nachricht -----


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the i18n mailing list