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

Jan Schneider jan@horde.org
Sun Oct 20 21:00:56 PDT 2002


These new commands are also interesting for anybody who updates the help
files with new entries.

If you, after addin an entry, run:
translation.php update-help -m imp
translation.php commit-help -m imp

the new entries will immediately, at least in English, be available in all
translations' help files.

----- Weitergeleitete Nachricht von jan@horde.org -----
    Datum: Sun, 20 Oct 2002 19:57:58 +0200
    Von: Jan Schneider <jan@horde.org>
Antwort an: Jan Schneider <jan@horde.org>
 Betreff: [i18n] Fwd: [cvs] commit: horde/po translation.php
      An: "i18n@lists.horde.org" <i18n@lists.horde.org>

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

-- 
Horde i18n mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: i18n-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 dev mailing list