Menu

ask to translate ahnentafel report

2005-12-14
2013-05-29
  • Juergen Bach

    Juergen Bach - 2005-12-14

    Hi,

    where can i translate the events and more from ahnentafel report in german?
    i didn´t found them.

    Jürgen

     
    • Gerry Kroll

      Gerry Kroll - 2005-12-14

      The Ahnentafel report has the English text hard-coded in it.  This will have to be corrected before you can produce a German translation.

      The problem is that this report tries to produce meaningful sentences.  The word order within sentences can be different from one language to another, so what is meaningful in English, German, French, Dutch, etc. may not be meaningful in Greek, Hungarian, etc. without a major change in word order.

      *** Note:  I don't know Greek or Hungarian.  I'm just using these languages as examples, not as a definitive statement about meaningful word order.

      You will probably find other reports that have English hard coded in them.

       
    • Gerry Kroll

      Gerry Kroll - 2005-12-15

      Jürgen:
      I have modified the Ahnentafel report so that all English text now appears in the language file.

      Download (from CVS):
      ./includes/reportpdf.php
      ./languages/lang.en.php
      ./reports/ahnentafel.php

      You will notice in lang.en.php that there are variables such as $pgv_lang['ahnentafel_birth_m'] and $pgv_lang['ahnentafel_birth_f'] that have the same English text.  This is done so that languages where verbs are different depending on whether the subject is male or female can be translated properly. 

      The Ahnentafel report will use the ..._m variable when the subject is male and the ..._f variable when the subject is female.

      I know that this doesn't matter in English or German ('was born' == 'geboren' for both males and females), but it DOES matter in French ('né' for males, 'née' for females).

      If the sex is unknown, the Ahnentafel report will use the Male form.

       
    • Gerry Kroll

      Gerry Kroll - 2005-12-15

      Sorry, that last file should be
      ./reports/ahnentafel.xml

       

Log in to post a comment.