Menu

Translating to another language

Help
2003-05-27
2003-05-28
  • Jens Verner Nielsen

    I would like to make a translation into Danish, but what the README.TXT is telling :

    To have phpGedView work in another language that is not currently supported you must
    create a copy of the files "lang.en.php" and "facts.en.php" and translate the variable values.
    Then add the necessary lines to the config.php file.  For example, if you wanted to create
    a Japanese translation, you would translate the above files into "lang.jp.php" and
    "facts.jp.php" and the add the following lines to the config.php file:
         $LANGUAGE = "japanese";
         $language["japanese"] = "lang.jp.php";
         $factsfile["japanese"] = "facts.jp.php";

    is not at all working for me.

    I have made changes in :
    langcodes.php, sissions.php, functions.php og lang.en.php and copied lang.en.php and facts.en.php to lang.dk.php and facts.dk.php.

    But when I try to change to the new danisk language I get an error:

    Fatal error: Failed opening required '' (include_path='.;c:\php4\pear') in c:\phpdev5\www\phpgedview\session.php on line 100

    Where do I make the corrections to get the new language-files working?

     
    • John Finlay

      John Finlay - 2003-05-27

      Sorry those directions are out of date.  First, which version of phpGedView are you using?  I would reccommend downloading the latest Beta version 2.0b3.

      The files you need to translate are:
      lang.en.php --> lang.dk.php
      facts.en.php --> facts.dk.php

      They are in the languages directory.

      You will need to add the following 3 lines to the session.php file:
      $pgv_language["danish"] = "languages/lang.dk.php";
      $factsfile["danish"] = "languages/facts.dk.php";
      $pgv_lang["danish"]    = "Danisk";

      Making changes to the langcodes.php file is only necessary if you want phpGedView to automatically detect Danish from the user's browser settings.  For this add the following line to the langcodes.php file:
      $langcode["da"]="danish";

      --John

       
    • Jens Verner Nielsen

      Thank you for a very quick answer.

      I have just found ver. 1.24 and now I will download ver. 2.0b3 at your advice.

      I cannot find :
      $pgv_lang["danish"] = "Danish";
      in session.php, but all your other advice was what I did with the error-result.

      Thank you for your help. I will try ver. 2 in a couple of days and let you know what happens then.

       

Log in to post a comment.