Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: nickname in quotation marks #7

Open
TheDutchJewel opened this issue Dec 31, 2021 · 1 comment
Open

Request: nickname in quotation marks #7

TheDutchJewel opened this issue Dec 31, 2021 · 1 comment

Comments

@TheDutchJewel
Copy link

TheDutchJewel commented Dec 31, 2021

For individuals with a nickname, it is not clear what the nickname is and what the first name(s).

For example, if a person's name is John Doe and the nickname is Edward, this is shown as John Edward Doe.

It would be clearer if the nickname was put in quotation marks: John "Edward" Doe.

Can you make this possible?

@Neriderc
Copy link

Neriderc commented Mar 2, 2022

I've just been wrestling with this myself, and have managed to get it working.

If you open the file /modules_v4/GVExport/functions_dot.php
Then go to around line 630 and look for:
$name = strip_tags($name)
Then immediately before this line, add this:
$name = str_replace(array('<q class="wt-nickname">','</q>'), array('"','"'), $name);

Then this has fixed it for me (Webtrees 2.0)

I have opened a pull request to have this added to the main code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants