Menu

I don't want to print out "Unknown" surname

Help
VIP member
2007-04-12
2013-05-30
  • VIP member

    VIP member - 2007-04-12

    Just installed v4.0.2 from Debian stable. I browsed the docs and forums to find out, how to prevent displaying "Unknown" when someone hasn't a surname.

    This configuration option was nearby the thing, at least it seemed to be but wasn't:
    Gedcom Configuration / Display and Layout / Names / Get display name from GEDCOM

    So, how to get only Ida, not Ida (unknown)?

    There's a lot of documentation on producing surnames (patronyms etc), that's one obvious way to handle it.

     
    • Anonymous

      Anonymous - 2007-04-12

      "unknown" is a language variable, so it can be changed to anything, including blank.

      For ver 4.0.2 you should create a file called lang.en.extra.php  (and or lang.xx.extra.php if you use any other languages) and add this:

      <?php
      $pgv_lang["NN"] = "";
      ?>

      This will then over-rule the standard version in lang.en.php, which is
      $pgv_lang["NN"] = "(unknown)";

      Nigel

       
      • VIP member

        VIP member - 2007-04-13

        Thanks!
        I knew about the language files, but wasn't bright enough to find out that the parenthesis were included, too! I have enabled several languages, but that's easy to change them all that way.

        To be able to search for those without surname in the Individual List,
        simply "" wasn't the best, so I put there just "-".

        I don't have individuals with no given name, I think in that case it would be better to have something else than just -, maybe ?? as in French language file.

        Just curious - what is the other unknown line (PN) in the language file?
        $pgv_lang["NN"]       = "-";
        $pgv_lang["PN"]       = "(unknown)";

        vipaja

         
    • Gerry Kroll

      Gerry Kroll - 2007-04-13

      "NN" is for surnames, "PN" is for given names.

       
    • jbtibor

      jbtibor - 2008-05-19

      I have language set to Hungarian, and "Surname first" to "Yes".
      There are 2 errors:
      1) Every name is displayed prefixed with "(unknown)". Sure, I could fix with setting NN and PN to empty string, but that would be a hack.
      2) The names are still displayed in English order (First name Last name).

       
    • jbtibor

      jbtibor - 2008-05-19

      Version 4.1.5.

       
  • MoiGaijin

    MoiGaijin - 2011-02-12

    There has been no answer to this. I also wonder how to disable this behavior, since not everyone has surname, it is inaccurate to say that surname is unknown.

     
  • Stephen Arnold

    Stephen Arnold - 2011-02-12

    @jbtibor
    If you are in fact, still running 4.1.5, you have serious security and privacy problems. Frankly, you are inviting people to hack your site and steal your information.

    As to the 'Unknown", Use your custom language feature and change the output of the variable Unknown to "", but you'll have to do this for every language you have installed.
    This would be the lang.xx.php files - using the EXTRA version, and these lines:

    $pgv_lang = "(unknown)";
    $pgv_lang = "(unknown)";

    I am confused by your quote: "since not everyone has surname". A lack of a surname would be a rarity, not a common situation. In the case of very old, mostly perhaps nobility, maybe.
    -Stephen

     

Log in to post a comment.