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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
"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
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
"NN" is for surnames, "PN" is for given names.
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).
Version 4.1.5.
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.
@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