cvs: peardoc /en/chapters faq.xml

From: Date: Fri, 17 Oct 2003 04:48:31 +0000
Subject: cvs: peardoc /en/chapters faq.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1658@lists.php.net to get a copy of this message
thierry_bo Fri Oct 17 00:48:31 2003 EDT Modified files: /peardoc/en/chapters faq.xml Log: Adding translators section to the FAQ. Index: peardoc/en/chapters/faq.xml diff -u peardoc/en/chapters/faq.xml:1.8 peardoc/en/chapters/faq.xml:1.9 --- peardoc/en/chapters/faq.xml:1.8 Fri Aug 15 17:18:01 2003 +++ peardoc/en/chapters/faq.xml Fri Oct 17 00:48:30 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- [mj] The FAQ needs some heavy revision - don't translate it right now --> <chapter id="faq"> @@ -528,7 +528,153 @@ style. </para> </sect1> - + + <sect1 id="faq.translators-revision-tracking"> + <title> + Is there a tool to help PEAR manual translators to track files changes? + </title> + <titleabbrev> + Revision Tracking + </titleabbrev> + <para> + Working on the translations is not just translating an English file + and commiting the results. Much of the work is needed to update + the already translated ones, to get in sync with the content of + the English files. To follow the modifications in the English tree, + you should subscribe to the PEAR documentation + <ulink url="http://www.pear.php.net/support.php">mailing list</ulink> + to get CVS commit messages, or read the archives. If you never update your + files, the translations can get useless. + </para> + <simpara> + Updating a foreign language file can get difficult, as you may not + know when and who translated that file, so you may not know where + you should look for the updates needed. We have one system + for tracking the revisions and modification dates of the files in <literal>peardoc</literal>. + </simpara> + <sect2 id="faq.translators.revcheck-comments"> + <title>The Revision Comments</title> + <para> + Instead of storing all responsibilities in a central file, the revision + comment system stores them in the files they provide information about. + Information about translator, revision numbers, and status information + is stored in the revision comment. + Let's see what would be in the header of the example file + <filename>bookinfo.xml</filename> file in this case: + <programlisting> +&lt;!-- EN-Revision: 1.16 Maintainer: jane Status: ready --&gt; + </programlisting> + </para> + <para> + We can see the revision number for the translated file (EN-Revision: + 1.16), the translator cvs account name. + But we can also add some other status information in the case it is + needed (eg. "partial" for incomplete translations). This revision + comment system is basically about storing the information in + the XML files, and not in a central place. This is extremely + convenient now, as there are more than 1300 files in the + English tree. + </para> + <para> + Currently, all three fields (English revision, Maintainer, Status) + are needed. Maintainer is intended to be a CVS user name, or some + nickname without a space, status can be anything without a space. + Note, that this header is not updated by CVS (in contrast with + <literal>$Revision</literal>, which is updated automatically). + This is only updated when you edit the contents of the comment + yourself. + </para> + <para> + You may see this as a good thing, but using these comments, + you lose the quick look on the whole list of your + files. + No, you do not lose this, but get much more! + If you would like to build a full list of you files, you + can go to the /peardoc/ directory and run: + <programlisting> +./scripts/revcheck_pear.php xx > revcheck.html + </programlisting> + Here <literal>xx</literal> is the imaginary language code. + After running this script you'll get a + <filename>revcheck.html</filename> in the same directory. + You can find revision comparisions and links to diffs + for all the files in this language. + You can also add a further restriction parameter, the maintainer name, + so the script will only list the files corresponding to + the given maintainer. + </para> + <para> + There are some optional extensions introduced for this script, + to be available in this generated HTML page. + This is why the <filename>translation.xml</filename> files are + introduced. + Here comes a simple <filename>translation.xml</filename> file + for the imaginary xx language : + <programlisting> +<![CDATA[ +<?xml version="1.0" encoding="iso-8859-1" ?> +<!DOCTYPE translation SYSTEM "../dtds/translation.dtd"> + +<translation> + + <intro> + This is some introductory text for the xx language translators + about who is the manager of the translation, and where to find + more information. This paragraph is printed on the top of the + generated revcheck.html page. + </intro> + + <translators> + <person name="Joe Doe" email="joe@hotmail.com" nick="joedoe" cvs="yes" editor="yes"/> + <person name="Jane Smith" email="jsmith@yahoo.com" nick="jane" cvs="yes"/> + <person name="Joe Forever" email="joe@forever.net" nick="joefo" cvs="no"/> + </translators> + + <work-in-progress> + <file name="appendices/aliases.xml" person="joedoe" type="working"/> + <file name="functions/dbx.xml" person="joefo" type="working"/> + </work-in-progress> + +</translation> +]]> + </programlisting> + In this file, you can add users without a CVS account, and can + assign ready documents or work-in-progress files to them. + The biggest advantage of using this addon is that all this information + is used to generate dynamic tables of translators and files in + the <filename>revcheck.html</filename> file. + All translators are linked to from the individual files they are assigned + to, and there is a nice table showing the state of files for + all the translators. + Assigning ready files may be needed if a time consuming update is + in progress on that file. + </para> + <para> + There are two optional parameters you can add to a &lt;file&gt;, + if you would like to record it: the <literal>date</literal> + and <literal>revision</literal>. + Date is assumed to be the date when the work was started, revision + is the checked out revision of the English file used to start the work + (denoted as CO-Revision in the generated table). + There is currently no fixed format for the <literal>date</literal> + parameter. + </para> + <para> + Another addon to this system is just to give credit to all people + who worked on one file, and not just the current maintainer. To achieve + this goal, we added the credit comments. One credit comment in + eg. <filename>history.xml</filename> may look like this (in case + Joe Doe translated the file initially, but Jane followed him to + be the maintainer): + <programlisting> +&lt;!-- CREDITS: joedoe --&gt; + </programlisting> + The credits comment can contain a comma-separated list. These + comments only affect the display of the translators table in + <filename>revcheck.html</filename>. + </para> + </sect2> + </sect1> </chapter> <!-- Keep this comment at the end of the file Local variables:

« previous php.pear.doc (#1658) next »